WoopsiUI::ColourPicker Class Reference
#include <colourpicker.h>
List of all members.
Detailed Description
Provides a window with RGB colour selection sliders.
Constructor & Destructor Documentation
WoopsiUI::ColourPicker::ColourPicker |
( |
s16 |
x, |
|
|
s16 |
y, |
|
|
u16 |
width, |
|
|
u16 |
height, |
|
|
const WoopsiString & |
title, |
|
|
u16 |
colour, |
|
|
u32 |
flags, |
|
|
GadgetStyle * |
style = NULL | |
|
) |
| | |
Constructor.
- Parameters:
-
| x | The x co-ordinate of the window. |
| y | The y co-ordinate of the window. |
| width | The width of the window. |
| height | The height of the window. |
| title | The title of the window. |
| flags | Standard flags. |
| style | Optional gadget style. |
virtual WoopsiUI::ColourPicker::~ColourPicker |
( |
|
) |
[inline, protected, virtual] |
WoopsiUI::ColourPicker::ColourPicker |
( |
const ColourPicker & |
colourPicker |
) |
[inline, protected] |
Copy constructor is protected to prevent usage.
Member Function Documentation
virtual u16 WoopsiUI::ColourPicker::getColour |
( |
|
) |
const [virtual] |
Get the colour currently shown by the gadget.
- Returns:
- The colour currently shown by the gadget.
virtual void WoopsiUI::ColourPicker::handleReleaseEvent |
( |
const GadgetEventArgs & |
e |
) |
[virtual] |
virtual void WoopsiUI::ColourPicker::handleValueChangeEvent |
( |
const GadgetEventArgs & |
e |
) |
[virtual] |
virtual void WoopsiUI::ColourPicker::onResize |
( |
u16 |
width, |
|
|
u16 |
height | |
|
) |
| | [protected, virtual] |
Resize the textbox to the new dimensions.
- Parameters:
-
| width | The new width. |
| height | The new height. |
Reimplemented from WoopsiUI::AmigaWindow.
virtual void WoopsiUI::ColourPicker::setColour |
( |
u16 |
colour |
) |
[virtual] |
Sets the colour shown by the gadget.
- Parameters:
-
| colour | The new colour to display. |
Member Data Documentation
Pointer to the Blue value slider
Pointer to the cancel button.
Displays the current colour.
Pointer to the Green value slider
Pointer to the OK button.
Pointer to the Red value slider
The documentation for this class was generated from the following file: