Table of Contents

Class Group

Namespace
MLEM.Ui.Elements
Assembly
MLEM.Ui.dll

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

anchor Anchor

The group's anchor

size Vector2

The group's size

setHeightBasedOnChildren bool

Whether 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

anchor Anchor

The group's anchor

size Vector2

The group's size

setWidthBasedOnChildren bool

Whether the group's width should be based on its children's width, see SetWidthBasedOnChildren.

setHeightBasedOnChildren bool

Whether the group's height should be based on its children's height, see SetHeightBasedOnChildren.