Crazy Eddie's GUI System
0.8.4
|
Base class for the ColourPicker widget. More...
Public Member Functions | |
ColourPicker (const String &type, const String &name) | |
Constructor for ColourPicker class. | |
~ColourPicker (void) | |
Destructor for ColourPicker class. | |
void | setColour (const Colour &newColour) |
Set the current colour of the colour picker manually and refresh the ColourPicker elements accordingly. | |
Colour | getColour () |
Return the current colour of the colour picker. | |
void | initialiseComponents (void) |
Initialises the Window based object ready for use. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | WidgetTypeName |
Window factory name. | |
static const String | EventOpenedPicker |
static const String | EventClosedPicker |
static const String | EventAcceptedColour |
Protected Member Functions | |
void | initialiseColourPickerControlsWindow () |
Initialises the properties for the creation of the ColourPickerControls window and decides if a new window of this type is necessary. | |
void | createColourPickerControlsWindow (const String &colourPickerControlsStyle) |
Creates the ColourPickerControls window. | |
Window * | getColourRect (void) |
Return a Window pointer to the ColourRect component widget for this ColourPicker. | |
bool | colourRect_ColourRectClickedHandler (const EventArgs &e) |
virtual void | onColourRectClicked (WindowEventArgs &e) |
Protected Attributes | |
bool | d_shareColourPickerControlsWindow |
ColourPickerControls * | d_colourPickerControlsWindow |
Colour | d_selectedColour |
selected colour of the ColourPickerControls | |
Static Protected Attributes | |
static const String | ColourRectName |
Widget name for the open button (colour rect) component. | |
static std::map< Window *, int > | s_colourPickerWindows |
Base class for the ColourPicker widget.
void CEGUI::ColourPicker::createColourPickerControlsWindow | ( | const String & | colourPickerControlsStyle | ) | [protected] |
Creates the ColourPickerControls window.
colourPickerControlsStyle | The window type of the window that will be created. |
Window* CEGUI::ColourPicker::getColourRect | ( | void | ) | [protected] |
Return a Window pointer to the ColourRect component widget for this ColourPicker.
UnknownObjectException | Thrown if the colour rectangle component does not exist. |
void CEGUI::ColourPicker::initialiseColourPickerControlsWindow | ( | ) | [protected] |
Initialises the properties for the creation of the ColourPickerControls window and decides if a new window of this type is necessary.
void CEGUI::ColourPicker::initialiseComponents | ( | void | ) | [virtual] |
Initialises the Window based object ready for use.
Reimplemented from CEGUI::Window.
void CEGUI::ColourPicker::setColour | ( | const Colour & | newColour | ) |
Set the current colour of the colour picker manually and refresh the ColourPicker elements accordingly.
setting | newColour the selected Colour for the ColourPicker |
const String CEGUI::ColourPicker::EventAcceptedColour [static] |
Event fired when a new colour is set and accepted by the colour picker. Handlers are passed a const WindowEventArgs reference with WindowEventArgs::window set to the Window that triggered this event.
const String CEGUI::ColourPicker::EventClosedPicker [static] |
Event fired when the ColourPickerControls window is closed. Handlers are passed a const WindowEventArgs reference with WindowEventArgs::window set to the Window that triggered this event.
const String CEGUI::ColourPicker::EventOpenedPicker [static] |
Event fired when the ColourPickerControls window is opened. Handlers are passed a const WindowEventArgs reference with WindowEventArgs::window set to the Window that triggered this event.