#include <GuiComponent.h>
Inheritance diagram for GuiComponent:
Public Types | |
enum | State { HIDDEN, ENABLED, DISABLED, UPDATING } |
Public Member Functions | |
GuiComponent (int left, int right, int bottom, int top, int x, int y, int width, int height) | |
void | moveTo (int newX, int newY) |
bool | hit (int x, int y) |
void | enable () |
void | disable () |
void | hide () |
void | updating () |
bool | isEnabled () |
bool | isUpdating () |
bool | isHidden () |
bool | isDisabled () |
Public Attributes | |
State | state |
|
This enumeration holds the possible states of the self made GUI components (e.g. the Histogram, the Colorselector). The States can be set without restrictions.
|
|
Create an orthographic projection space and a viewport using the camera class. So each component exists into its own space. |
|
Set the state to DISABLED |
|
Set the state to ENABLED |
|
Set the state to HIDDEN |
|
Find out if the component had been picked by the mouse. This will always return false, if the state is not equal to ENABLED |
|
Return if the current state is DISABLED |
|
Return if the current state is ENABLED |
|
Return if the current state is HIDDEN |
|
Return if the current state is BUSY |
|
Update the lower left position of the components viewport. |
|
Set the state to BUSY |
|
The current state of the component. |