TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
Base control class that all other controls inherits from. Defines basic UI control behaviour. More...
Public Member Functions | |
virtual void | Enable () |
Enables the control. More... | |
virtual void | Disable () |
Disables the control. More... | |
virtual void | Show () |
Shows the control. More... | |
virtual void | Hide () |
Hides the control. More... | |
virtual void | Update () |
Updates the object. More... | |
virtual void | Draw () |
Draw the object to screen. More... | |
Protected Member Functions | |
virtual void | OnClicked () |
virtual void | Draw (Point< int > position) |
Properties | |
virtual bool | Enabled [get, set] |
virtual bool | Visible [get, set] |
virtual Color | Color [get, set] |
virtual Point< int > | Position [get, set] |
virtual Point< int > | Size [get, set] |
virtual Rectangle | Rectangle [get, set] |
virtual string | Text [get, set] |
Properties inherited from TriDevs.TriEngine.UI.IControl | |
bool | Enabled [get, set] |
Gets or sets a value indicating whether this control can be interacted with. More... | |
bool | Visible [get, set] |
Gets or sets a value indicating whether this control should be drawn to the screen. More... | |
Color | Color [get, set] |
The color of this control. More... | |
Point< int > | Position [get, set] |
The position of this control, in pixel coordinates. More... | |
Point< int > | Size [get, set] |
Gets or sets the size of this control, in pixels. More... | |
Rectangle | Rectangle [get, set] |
Gets the rectangular area on the screen that this control is occupying. More... | |
string | Text [get, set] |
Gets or sets the text associated with this control. More... | |
Events | |
ControlClickedEventHandler | Clicked |
Raised when this control is clicked on by the user. More... | |
Events inherited from TriDevs.TriEngine.UI.IControl | |
ControlClickedEventHandler | Clicked |
Raised when this control is clicked on by the user. More... | |
Base control class that all other controls inherits from. Defines basic UI control behaviour.
|
virtual |
|
virtual |
Draw the object to screen.
Implements TriDevs.TriEngine.Interfaces.IDrawable.
Reimplemented in TriDevs.TriEngine.UI.Label.
|
protectedvirtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
virtual |
|
virtual |
Updates the object.
Implements TriDevs.TriEngine.Interfaces.IUpdatable.
Reimplemented in TriDevs.TriEngine.UI.Label.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
ControlClickedEventHandler TriDevs.TriEngine.UI.Control.Clicked |
Raised when this control is clicked on by the user.