TriEngine  v0.0.16
General-purpose engine in C#/OpenGL
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
TriDevs.TriEngine.UI.IControlManager Interface Reference

Manages various UI controls, automatically updating and drawing them to the screen. More...

Inheritance diagram for TriDevs.TriEngine.UI.IControlManager:
[legend]
Collaboration diagram for TriDevs.TriEngine.UI.IControlManager:
[legend]

Public Member Functions

IControl AddControl (IControl control)
 Adds a new control to this control manager. More...
 
void RemoveControl (IControl control)
 Removes a control from this control manager. More...
 
void RemoveAllControls (Type type)
 Removes all controls of a specific type from this control manager. More...
 
void RemoveAllControls (Func< IControl, bool > func)
 Removes all controls matching the supplied predicate function. More...
 
bool HasControl (IControl control)
 Returns whether this control manager contains the specified control. More...
 
bool HasControl (Type type)
 Returns whether this control manager contains any control of the specified type. More...
 
bool HasControl (Func< IControl, bool > func)
 Returns whether this control manager contains any control matching the supplied predicate function. More...
 

Additional Inherited Members

- Properties inherited from TriDevs.TriEngine.Interfaces.IGameComponent
bool Enabled [get, set]
 Gets or sets a value indicating whether this component is enabled or not. More...
 

Detailed Description

Manages various UI controls, automatically updating and drawing them to the screen.

Member Function Documentation

IControl TriDevs.TriEngine.UI.IControlManager.AddControl ( IControl  control)

Adds a new control to this control manager.

Parameters
controlThe control to add.
Returns
The control that was added.

Implemented in TriDevs.TriEngine.UI.ControlManager.

bool TriDevs.TriEngine.UI.IControlManager.HasControl ( IControl  control)

Returns whether this control manager contains the specified control.

Parameters
controlThe control to check.
Returns
True if the specified control exists in this control manager, false otherwise.

Implemented in TriDevs.TriEngine.UI.ControlManager.

bool TriDevs.TriEngine.UI.IControlManager.HasControl ( Type  type)

Returns whether this control manager contains any control of the specified type.

Parameters
typeThe type to check.
Returns
True if this control manager contains a control of the specified type, false otherwise.

Implemented in TriDevs.TriEngine.UI.ControlManager.

bool TriDevs.TriEngine.UI.IControlManager.HasControl ( Func< IControl, bool >  func)

Returns whether this control manager contains any control matching the supplied predicate function.

Parameters
funcThe predicate function.
Returns
True if this control manager contains a control matching the specified predicate, false otherwise.

Implemented in TriDevs.TriEngine.UI.ControlManager.

void TriDevs.TriEngine.UI.IControlManager.RemoveAllControls ( Type  type)

Removes all controls of a specific type from this control manager.

Parameters
typeThe type of control to remove.

Implemented in TriDevs.TriEngine.UI.ControlManager.

void TriDevs.TriEngine.UI.IControlManager.RemoveAllControls ( Func< IControl, bool >  func)

Removes all controls matching the supplied predicate function.

Parameters
funcThe predicate function to use.

Implemented in TriDevs.TriEngine.UI.ControlManager.

void TriDevs.TriEngine.UI.IControlManager.RemoveControl ( IControl  control)

Removes a control from this control manager.

Parameters
controlThe control to remove.

Implemented in TriDevs.TriEngine.UI.ControlManager.


The documentation for this interface was generated from the following file: