#include <UICButton.h>
Inheritance diagram for Moteur3D::UICButton:
Public Member Functions | |
UICButton (UIBaseWindow *window) | |
Constructor. Needs the window that will embed the instance. | |
~UICButton () | |
Destructor. | |
Protected Member Functions | |
bool | OnMouseButton (const MouseInformations *mouseInfo, MouseButton button, bool buttonDown) |
This function is called when a mouse button is pressed or released inside the window's borders. When this happens, the user interface will check (in focus order) if one of the windows can handle the event. Each window will check, if the mouse is in its bounds, if it affects a component. | |
bool | OnMouseMove (const MouseInformations *mouseInfo) |
This function is called when the mouse moves inside the window's borders. When this happens, the user interface will check (in focus order) if one of the windows can handle the event. Each window will check, if the mouse is in its bounds, if it affects a component. | |
virtual void | OnButtonDown () |
This event is triggered when the button is pressed with left click, but no click is yet triggered. Typically you'll want to change the button's display here. | |
virtual void | OnButtonUp () |
This event is triggered when the button is released but no click event is generated. | |
virtual void | OnClick () |
This function is called when the button has been pressed and released, and the click is valid. It does nothing by default. | |
virtual void | OnDisplay () |
Event called when the component needs to be displayed. Override it if you want custom graphics for your component (and you probably will). | |
Protected Attributes | |
bool | m_IsDown |
Friends | |
class | Window |
|
Constructor. Needs the window that will embed the instance.
|
|
Destructor.
|
|
This event is triggered when the button is pressed with left click, but no click is yet triggered. Typically you'll want to change the button's display here.
|
|
This event is triggered when the button is released but no click event is generated.
|
|
This function is called when the button has been pressed and released, and the click is valid. It does nothing by default.
Reimplemented in Moteur3D::UICCloseButton. |
|
Event called when the component needs to be displayed. Override it if you want custom graphics for your component (and you probably will).
Implements Moteur3D::UIBaseComponent. Reimplemented in Moteur3D::UICCloseButton. |
|
This function is called when a mouse button is pressed or released inside the window's borders. When this happens, the user interface will check (in focus order) if one of the windows can handle the event. Each window will check, if the mouse is in its bounds, if it affects a component.
Reimplemented from Moteur3D::UIBaseComponent. |
|
This function is called when the mouse moves inside the window's borders. When this happens, the user interface will check (in focus order) if one of the windows can handle the event. Each window will check, if the mouse is in its bounds, if it affects a component.
Reimplemented from Moteur3D::UIBaseComponent. |
|
Reimplemented in Moteur3D::UICCloseButton. |
|
Is the button currently down ? (i.e. OnButtonDown() already called but neither OnButtonUp() nor OnClick() has been called. |