Woopsi 1.3
Nintendo DS Gui Framework
Public Member Functions | Protected Member Functions | Protected Attributes
WoopsiUI::ColourPicker Class Reference

#include <libwoopsi/include/colourpicker.h>

Inheritance diagram for WoopsiUI::ColourPicker:
WoopsiUI::AmigaWindow WoopsiUI::Window WoopsiUI::GadgetEventHandler WoopsiUI::Gadget

List of all members.

Public Member Functions

 ColourPicker (s16 x, s16 y, u16 width, u16 height, const WoopsiString &title, u16 colour, GadgetStyle *style=NULL)
virtual u16 getColour () const
virtual void setColour (u16 colour)
virtual void handleReleaseEvent (const GadgetEventArgs &e)
virtual void handleValueChangeEvent (const GadgetEventArgs &e)

Protected Member Functions

virtual void onResize (u16 width, u16 height)
virtual ~ColourPicker ()
 ColourPicker (const ColourPicker &colourPicker)

Protected Attributes

Button_okButton
Button_cancelButton
Button_colourButton
SliderHorizontal_redSlider
SliderHorizontal_greenSlider
SliderHorizontal_blueSlider

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,
GadgetStyle style = NULL 
)

Constructor.

Parameters:
xThe x co-ordinate of the window.
yThe y co-ordinate of the window.
widthThe width of the window.
heightThe height of the window.
titleThe title of the window.
colourThe default colour to show.
styleOptional gadget style.
virtual WoopsiUI::ColourPicker::~ColourPicker ( ) [inline, protected, virtual]

Destructor.

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]

Handles events raised by its sub-gadgets.

Parameters:
eEvent arguments.

Reimplemented from WoopsiUI::AmigaWindow.

virtual void WoopsiUI::ColourPicker::handleValueChangeEvent ( const GadgetEventArgs e) [virtual]

Handles events raised by its sub-gadgets.

Parameters:
eEvent arguments.

Reimplemented from WoopsiUI::GadgetEventHandler.

virtual void WoopsiUI::ColourPicker::onResize ( u16  width,
u16  height 
) [protected, virtual]

Resize the textbox to the new dimensions.

Parameters:
widthThe new width.
heightThe new height.

Reimplemented from WoopsiUI::AmigaWindow.

virtual void WoopsiUI::ColourPicker::setColour ( u16  colour) [virtual]

Sets the colour shown by the gadget.

Parameters:
colourThe 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:
 All Classes Functions Variables Enumerations Enumerator