#include <GuiComponent.h>
Inherits OrthographicCamera.
Inherited by ColorCubePanel, and Histogram.
Public Types | |
enum | State |
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 |
Definition at line 11 of file GuiComponent.h.
|
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.
Definition at line 32 of file GuiComponent.h. |
|
Create an orthographic projection space and a viewport using the camera class. So each component exists into its own space. Definition at line 6 of file GuiComponent.cpp. |
|
Set the state to DISABLED Definition at line 22 of file GuiComponent.cpp. References state. Referenced by ColorCubePanel::onMouseDown(). |
|
Set the state to ENABLED Definition at line 17 of file GuiComponent.cpp. References state. Referenced by Histogram::update(). |
|
Set the state to HIDDEN Definition at line 26 of file GuiComponent.cpp. References state. Referenced by Histogram::update(). |
|
Find out if the component had been picked by the mouse. This will always return false, if the state is not equal to ENABLED Definition at line 55 of file GuiComponent.cpp. Referenced by Histogram::onLeftMouseClick(), ColorCubePanel::onMouseDown(), and Histogram::onMouseDrag(). |
|
Return if the current state is DISABLED Definition at line 45 of file GuiComponent.cpp. |
|
Return if the current state is ENABLED Definition at line 35 of file GuiComponent.cpp. |
|
Return if the current state is HIDDEN Definition at line 40 of file GuiComponent.cpp. |
|
Return if the current state is BUSY Definition at line 50 of file GuiComponent.cpp. |
|
Update the lower left position of the components viewport. Definition at line 12 of file GuiComponent.cpp. |
|
Set the state to BUSY Definition at line 31 of file GuiComponent.cpp. References state. |
|
The current state of the component. Definition at line 35 of file GuiComponent.h. Referenced by disable(), enable(), hide(), and updating(). |