Table of Contents

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

limit int

The maximum number of children in the queue

Properties

limit

The currently configured limit for this queue area.

public int limit { get; }

Property Value

int

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

child UIComponent

The child to add

setTheme bool

Whether 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

limit int

The new limit to use