TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
Manages various UI controls, automatically updating and drawing them to the screen. More...
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... | |
Manages various UI controls, automatically updating and drawing them to the screen.
Adds a new control to this control manager.
control | The control to add. |
Implemented in TriDevs.TriEngine.UI.ControlManager.
bool TriDevs.TriEngine.UI.IControlManager.HasControl | ( | IControl | control | ) |
Returns whether this control manager contains the specified control.
control | The control to check. |
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.
type | The type to check. |
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.
func | The predicate function. |
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.
type | The 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.
func | The 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.
control | The control to remove. |
Implemented in TriDevs.TriEngine.UI.ControlManager.