aboutsummaryrefslogtreecommitdiff
path: root/dw/oofpositionedmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-31 01:13:01 +0100
committerSebastian Geerken <devnull@localhost>2015-01-31 01:13:01 +0100
commit6a0a8f19b52f80132ae431db1341ca1971b06981 (patch)
treecbdecdc63055f83406f9cebbec7764563bdeb707 /dw/oofpositionedmgr.hh
parent3238f21d277704723582ebaf7f5c9d6e0b042bf9 (diff)
Relative positions, part 3: more on OOFPosAbsLikeMgr; incomplete implementation of OOFPosRelMgr.
Diffstat (limited to 'dw/oofpositionedmgr.hh')
-rw-r--r--dw/oofpositionedmgr.hh44
1 files changed, 0 insertions, 44 deletions
diff --git a/dw/oofpositionedmgr.hh b/dw/oofpositionedmgr.hh
index 9fa80cf5..00941da5 100644
--- a/dw/oofpositionedmgr.hh
+++ b/dw/oofpositionedmgr.hh
@@ -25,29 +25,14 @@ protected:
};
virtual bool isReference (core::Widget *widget) = 0;
- virtual int containerBoxOffsetX () = 0;
- virtual int containerBoxOffsetY () = 0;
- virtual int containerBoxRestWidth () = 0;
- virtual int containerBoxRestHeight () = 0;
-
- inline int containerBoxDiffWidth ()
- { return containerBoxOffsetX () + containerBoxRestWidth (); }
- inline int containerBoxDiffHeight ()
- { return containerBoxOffsetY () + containerBoxRestHeight (); }
OOFAwareWidget *container;
- enum { NOT_ALLOCATED, IN_ALLOCATION, WAS_ALLOCATED }
- containerAllocationState;
core::Allocation containerAllocation;
lout::container::typed::Vector<Child> *children;
lout::container::typed::HashTable<lout::object::TypedPointer
<dw::core::Widget>,
Child> *childrenByWidget;
-
- bool doChildrenExceedContainer ();
- bool haveExtremesChanged ();
- void sizeAllocateChildren ();
inline int getPosLeft (core::Widget *child, int availWidth)
{ return getPosBorder (child->getStyle()->left, availWidth); }
@@ -60,32 +45,10 @@ protected:
int getPosBorder (core::style::Length cssValue, int refLength);
- bool isHPosComplete (Child *child);
- bool isVPosComplete (Child *child);
-
- bool isHPosCalculable (Child *child, bool allocated);
- bool isVPosCalculable (Child *child, bool allocated);
-
- bool isPosCalculable (Child *child, bool allocated);
-
- void calcPosAndSizeChildOfChild (Child *child, int refWidth, int refHeight,
- int *xPtr, int *yPtr, int *widthPtr,
- int *ascentPtr, int *descentPtr);
- void calcHPosAndSizeChildOfChild (Child *child, int refWidth,
- int origChildWidth, int *xPtr,
- int *widthPtr);
- void calcVPosAndSizeChildOfChild (Child *child, int refHeight,
- int origChildAscent, int origChildDescent,
- int *yPtr, int *ascentPtr,
- int *descentPtr);
-
public:
OOFPositionedMgr (OOFAwareWidget *container);
~OOFPositionedMgr ();
- void sizeAllocateStart (OOFAwareWidget *caller,
- core::Allocation *allocation);
- void sizeAllocateEnd (OOFAwareWidget *caller);
void containerSizeChangedForChildren ();
void draw (core::View *view, core::Rectangle *area,
core::DrawingContext *context);
@@ -99,17 +62,12 @@ public:
int externalIndex);
int addWidgetOOF (core::Widget *widget, OOFAwareWidget *generator,
int externalIndex);
- void calcWidgetRefSize (core::Widget *widget, core::Requisition *size);
void moveExternalIndices (OOFAwareWidget *generator, int oldStartIndex,
int diff);
void tellPosition (core::Widget *widget, int x, int y);
- void getSize (core::Requisition *containerReq, int *oofWidth,
- int *oofHeight);
bool containerMustAdjustExtraSpace ();
- void getExtremes (core::Extremes *containerExtr,
- int *oofMinWidth, int *oofMaxWidth);
int getLeftBorder (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex);
@@ -133,8 +91,6 @@ public:
bool mayAffectBordersAtAll ();
bool dealingWithSizeOfChild (core::Widget *child);
- int getAvailWidthOfChild (core::Widget *child, bool forceValue);
- int getAvailHeightOfChild (core::Widget *child, bool forceValue);
int getNumWidgets ();
core::Widget *getWidget (int i);