|
Ultralight C++ API 2.0.0
|
#include <AppCore/layout/Options.h>
Position relative to an existing sibling in a container.
An InsertPosition places a node before or after an existing sibling instead of appending to the end of the container. You pass it when adding panels or rearranging children.
The helper functions Before() and After() position nodes around an existing child:
Container methods accept helper functions or default construction:
When the anchor sibling isn't a direct child of the container, the library logs a warning and appends the node at the end.
Public Attributes | |
| RefPtr< LayoutNode > | anchor |
| The sibling the position is relative to. | |
| bool | after = false |
| Whether or not the position is after the anchor (Before() when false). | |
| bool after = false |
Whether or not the position is after the anchor (Before() when false).
| RefPtr<LayoutNode> anchor |
The sibling the position is relative to.
Null means append at the end.