diff options
author | Sebastian Geerken <devnull@localhost> | 2016-02-27 13:59:00 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-02-27 13:59:00 +0100 |
commit | ec1fc5e6aec8d4020eef89df8cf22235059ef11e (patch) | |
tree | fd9604030fe5b9bfad41a66845c187be04a8bb33 /dw/ooffloatsmgr.hh | |
parent | 382392aad21b6ade257e813aa836457d94af1b8f (diff) |
Optimzie OOFFloatsMgr::markSizeChange.
Diffstat (limited to 'dw/ooffloatsmgr.hh')
-rw-r--r-- | dw/ooffloatsmgr.hh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/ooffloatsmgr.hh b/dw/ooffloatsmgr.hh index 27d296a9..87cdc866 100644 --- a/dw/ooffloatsmgr.hh +++ b/dw/ooffloatsmgr.hh @@ -126,7 +126,18 @@ private: class TBInfo: public WidgetInfo { public: + class ComparePosition: public lout::object::Comparator + { + private: + int oofmIndex; + + public: + inline ComparePosition (int oofmIndex) { this->oofmIndex = oofmIndex; } + int compare (Object *o1, Object *o2); + }; + int index; // position within "tbInfos" + int y; // used for sorting TBInfo *parent; int parentExtIndex; @@ -157,6 +168,7 @@ private: void moveExternalIndices (lout::container::typed::Vector<Float> *list, int oldStartIndex, int diff); Float *findFloatByWidget (core::Widget *widget); + int findTBInfo (int y); void sizeAllocateFloats (Side side); int getGBWidthForAllocation (Float *vloat); |