Class Group
A group element to be used inside of a UiSystem. A group is an element that has no rendering or interaction on its own, but that can aid with automatic placement of child elements. If a grouping whose children scroll, and which has a ScrollBar, is desired, a Panel with its Texture set to null can be used.
public class Group : Element, IGenericDataHolder, ILayoutItem
- Inheritance
-
Group
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Group(Anchor, Vector2, bool)
Creates a new group with the given settings
public Group(Anchor anchor, Vector2 size, bool setHeightBasedOnChildren = true)
Parameters
anchorAnchorThe group's anchor
sizeVector2The group's size
setHeightBasedOnChildrenboolWhether the group's height should be based on its children's height, see SetHeightBasedOnChildren.
Group(Anchor, Vector2, bool, bool)
Creates a new group with the given settings
public Group(Anchor anchor, Vector2 size, bool setWidthBasedOnChildren, bool setHeightBasedOnChildren)
Parameters
anchorAnchorThe group's anchor
sizeVector2The group's size
setWidthBasedOnChildrenboolWhether the group's width should be based on its children's width, see SetWidthBasedOnChildren.
setHeightBasedOnChildrenboolWhether the group's height should be based on its children's height, see SetHeightBasedOnChildren.