Form for color selection. More...
#include <mgui/colorsel.h>

Public Types | |
| enum | FORMSTYLE { FORMSTYLE_Default = 0x00, FORMSTYLE_EditTransparency = 0x01 } |
Public Member Functions | |
| FORM_COLORSELECTOR () | |
| virtual | ~FORM_COLORSELECTOR () |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, FORMSTYLE formstyle=FORMSTYLE_Default) |
| const COLOR & | GetColor () const |
| void | SetColor (const COLOR &color, bool notify=true) |
| void | SetDelegateOnChangeColor (DELEGATE_VOID_NOPARMS delegate) |
| void | SetTransparency (UINT8 transparency, bool notify=true) |
Form for color selection.
This form includes a "mini-palette", a pushbutton for choosing color, and an optional "edit" control for tranparency.
| MGUI::FORM_COLORSELECTOR::FORM_COLORSELECTOR | ( | ) |
Constructor.
| virtual MGUI::FORM_COLORSELECTOR::~FORM_COLORSELECTOR | ( | ) | [virtual] |
Destructor.
| void MGUI::FORM_COLORSELECTOR::Create | ( | MGUI::LAYOUT_PANE_BASE & | ParentPane, | |
| FORMSTYLE | formstyle = FORMSTYLE_Default | |||
| ) |
Create the form.
| const COLOR& MGUI::FORM_COLORSELECTOR::GetColor | ( | ) | const [inline] |
Get current color.
| void MGUI::FORM_COLORSELECTOR::SetColor | ( | const COLOR & | color, | |
| bool | notify = true | |||
| ) |
Set color.
| void MGUI::FORM_COLORSELECTOR::SetDelegateOnChangeColor | ( | DELEGATE_VOID_NOPARMS | delegate | ) | [inline] |
Set delegate to call when color changed.
| void MGUI::FORM_COLORSELECTOR::SetTransparency | ( | UINT8 | transparency, | |
| bool | notify = true | |||
| ) |
Set transparency factor.
| transparency | 0 = opaque, 255 = invisible. |
1.6.1