Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- Main Page
- Classes
- Files

- File List

# colourpicker.h

    00001 /*
    00002  * Copyright Mark Adamson 2010
    00003  */
    00004
    00005 #ifndef _COLOUR_PICKER_H_
    00006 #define _COLOUR_PICKER_H_
    00007
    00008 #include "amigawindow.h"
    00009 #include "gadgetstyle.h"
    00010
    00011 namespace WoopsiUI {
    00012
    00013         class Button;
    00014         class SliderHorizontal;
    00015
    00019         class ColourPicker : public AmigaWindow {
    00020         public:
    00021
    00033                 ColourPicker(s16 x, s16 y, u16 width, u16 height, const WoopsiString& title, u16 colour, u32 flags, GadgetStyle* style = NULL);
    00034
    00039                 virtual u16 getColour() const;
    00040
    00045                 virtual void setColour(u16 colour);
    00046
    00051                 virtual void handleReleaseEvent(const GadgetEventArgs& e);
    00052
    00057                 virtual void handleValueChangeEvent(const GadgetEventArgs& e);
    00058
    00059         protected:
    00060                 Button* _okButton;
    00061                 Button* _cancelButton;
    00062                 Button* _colourButton;
    00063                 SliderHorizontal* _redSlider;
    00064                 SliderHorizontal* _greenSlider;
    00065                 SliderHorizontal* _blueSlider;
    00072                 virtual void onResize(u16 width, u16 height);
    00073
    00077                 virtual ~ColourPicker() { };
    00078
    00082                 inline ColourPicker(const ColourPicker& colourPicker) : AmigaWindow(colourPicker) { };
    00083         };
    00084 }
    00085
    00086 #endif