Class QueueArea
- Namespace
- UILib.Components
- Assembly
- UILib.dll
Like an Area, but also adds functionality to remove the oldest children once a certain limit is reached.
public class QueueArea : Area
- Inheritance
-
QueueArea
- Inherited Members
Constructors
QueueArea(int)
Initializes a queue area.
public QueueArea(int limit)
Parameters
limitintThe maximum number of children in the queue
Properties
limit
The currently configured limit for this queue area.
public int limit { get; }
Property Value
Methods
AddContent(UIComponent, bool)
Adds a child to this area.
If the number of children exceeds the set limit,
they will be pruned (oldest removed first).
See Add(UIComponent, bool) as this would probably be the method you'd want to call instead.
public override void AddContent(UIComponent child, bool setTheme = true)
Parameters
childUIComponentThe child to add
setThemeboolWhether the child should inherit this object's theme
SetLimit(int)
Sets this queue area to use a new limit.
If the number of children exceeds the newly set limit, they will be pruned (oldest removed first).
public void SetLimit(int limit)
Parameters
limitintThe new limit to use