/* * Xournal++ * * Position entry for undo / redo handling * * @author Xournal++ Team * https://github.com/xournalpp/xournalpp * * @license GNU GPLv2 or later */ #pragma once template class PageLayerPosEntry { public: PageLayerPosEntry(Layer* layer, T* element, int pos) { this->element = element; this->pos = pos; this->layer = layer; } ~PageLayerPosEntry() {} private: public: Layer* layer; T* element; int pos; static int cmp(PageLayerPosEntry* a, PageLayerPosEntry* b) { return a->pos - b->pos; } };