TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
Control manager to manage various UI controls for a game. More...
Public Member Functions | |
ControlManager () | |
Initializes a new instance of this control manager. More... | |
void | Enable () |
Enables this game component. More... | |
void | Disable () |
Disables this game component. More... | |
void | Update () |
Updates the object. More... | |
void | Draw () |
Draw the object to screen. More... | |
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... | |
Properties | |
bool | Enabled [get, set] |
TriDevs.TriEngine.UI.ControlManager.ControlManager | ( | ) |
Adds a new control to this control manager.
control | The control to add. |
Implements TriDevs.TriEngine.UI.IControlManager.
void TriDevs.TriEngine.UI.ControlManager.Disable | ( | ) |
Disables this game component.
Implements TriDevs.TriEngine.Interfaces.IGameComponent.
void TriDevs.TriEngine.UI.ControlManager.Draw | ( | ) |
Draw the object to screen.
Implements TriDevs.TriEngine.Interfaces.IDrawable.
void TriDevs.TriEngine.UI.ControlManager.Enable | ( | ) |
Enables this game component.
Implements TriDevs.TriEngine.Interfaces.IGameComponent.
bool TriDevs.TriEngine.UI.ControlManager.HasControl | ( | IControl | control | ) |
Returns whether this control manager contains the specified control.
control | The control to check. |
Implements TriDevs.TriEngine.UI.IControlManager.
bool TriDevs.TriEngine.UI.ControlManager.HasControl | ( | Type | type | ) |
Returns whether this control manager contains any control of the specified type.
type | The type to check. |
Implements TriDevs.TriEngine.UI.IControlManager.
bool TriDevs.TriEngine.UI.ControlManager.HasControl | ( | Func< IControl, bool > | func | ) |
Returns whether this control manager contains any control matching the supplied predicate function.
func | The predicate function. |
Implements TriDevs.TriEngine.UI.IControlManager.
void TriDevs.TriEngine.UI.ControlManager.RemoveAllControls | ( | Type | type | ) |
Removes all controls of a specific type from this control manager.
type | The type of control to remove. |
Implements TriDevs.TriEngine.UI.IControlManager.
void TriDevs.TriEngine.UI.ControlManager.RemoveAllControls | ( | Func< IControl, bool > | func | ) |
Removes all controls matching the supplied predicate function.
func | The predicate function to use. |
Implements TriDevs.TriEngine.UI.IControlManager.
void TriDevs.TriEngine.UI.ControlManager.RemoveControl | ( | IControl | control | ) |
Removes a control from this control manager.
control | The control to remove. |
Implements TriDevs.TriEngine.UI.IControlManager.
void TriDevs.TriEngine.UI.ControlManager.Update | ( | ) |
Updates the object.
Implements TriDevs.TriEngine.Interfaces.IUpdatable.
|
getset |