#include <GUILayouterReposition.h>
|
static const eC_UInt | LAYOUTER_REPOSITION_CLASS_VERSION |
| Class version of reposition layouter class.
|
|
static const eC_UInt | GROUP_LAYOUTER_CLASS_VERSION |
| Class version of group layouter class.
|
|
static const eC_Char | XMLTAG_LAYOUTERCLASSID [] |
| XML tag to be used when writing a layouter class ID into a stream.
|
|
static const eC_Char | XMLTAG_CLASSVERSION [] |
|
This is a layouter, which implements repositioning of the children like CGUIRepositionCompositeObject does.
◆ CGUILayouterReposition()
Constructs a Reposition-Layouter.
- Parameters
-
pkObject | Pointer to the object to which the layouter is attached. |
eBasePoint | The base point on which the repositioning is based. |
vGap | The gap between the children. |
bTakeOverParentLayout | True if LayoutAction() shall take over the size of the associated object's parent to the associated object and set the x and y position of the associated to zero. |
◆ DoLayout()
virtual void CGUILayouterReposition::DoLayout |
( |
eMovedEdges_t |
eMovedEdges | ) |
|
|
virtual |
Repositions child objects and resizes associated object.
- Parameters
-
eMovedEdges | Reason for layouter call |
Implements CGUILayouter.
◆ GetGap()
eC_Value CGUILayouterReposition::GetGap |
( |
| ) |
const |
|
inline |
Get Gap between child objects
- Returns
- gap
◆ InitLayouter()
virtual void CGUILayouterReposition::InitLayouter |
( |
eMovedEdges_t |
eMovedEdges | ) |
|
|
inlinevirtual |
This function is useful for child layouters. Called when the layout of the associated object itself has changed. It is called by the framework every time the width or height or x or y relative position of the associated object is changed. That is, for example when the new distance to parent's border(s) shall be set in a child layouter to base upcoming layouting on this data the framework calls this method.
InitLayouter() is only called on the layouter of the associated object for one change of the position or size of the associated object. DoLayout() in contrast is called on the layouter of the associated object and on the layouters of all decendants of the associated object for one change of the size of the associated object.
This function usually does not implement changes to any layout. It is typically used to remember layout data to be used in DoLayout() later on (useful for child layouters that depend on changes of their associated object's parent).
- Parameters
-
eMovedEdges | Reason for layouter call |
Reimplemented from CGUILayouter.
◆ ReadFromStream()
virtual void CGUILayouterReposition::ReadFromStream |
( |
| ) |
|
|
virtual |
◆ SetBasePoint()
Sets BasePoint on which repositioning is based.
- Parameters
-
◆ SetBorder()
void CGUILayouterReposition::SetBorder |
( |
const eC_Value |
vBorder | ) |
|
|
inline |
Set Border spacing
- Parameters
-
◆ SetGap()
void CGUILayouterReposition::SetGap |
( |
const eC_Value |
vGap | ) |
|
|
inline |
Set Gap between child objects
- Parameters
-
◆ SetResizeObject()
void CGUILayouterReposition::SetResizeObject |
( |
const eC_Bool |
bResize | ) |
|
|
inline |
Specifies if the associated object shall automatically be resized to be exactly large enough to contain its children
- Parameters
-
◆ WriteToStream()
virtual void CGUILayouterReposition::WriteToStream |
( |
const eC_Bool |
bWriteClassID = false | ) |
|
|
virtual |
Writes attributes to the streaming file. A CGUIStreamWriter has to be initialized.
- Parameters
-
bWriteClassID | This flag is used to switch writing of the class ID, leading and trailing tags. When implementing a new streamable object, check this flag. If it is true, first write the class ID, then continue with this object's attributes, and finally call the base class implementation with this flag set to false (this is the default). |
Reimplemented from CGUIGroupLayouter.
The documentation for this class was generated from the following file: