PushButton control for showing and selecting a "color". More...
#include <mgui/colorbtn.h>

Public Types | |
| enum | STYLE { STYLE_Default = 0x0000, STYLE_OutputOnly = 0x0001, STYLE_AllowTransparent = 0x0002, STYLE_AllowTransparency = 0x0004 } |
Public Member Functions | |
| CTRL_COLORBUTTON () | |
| virtual | ~CTRL_COLORBUTTON () |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const COLOR &dftcolor, STYLE style=STYLE_Default, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize) |
| const COLOR & | GetColor () const |
| COLORREF | GetColorRef () const |
| void | SetColor (const COLORREF color, bool notify=true) |
| void | SetColor (const COLOR &color, bool notify=true) |
| void | SetDelegateOnChangeColor (DELEGATE_VOID_NOPARMS delegate) |
PushButton control for showing and selecting a "color".
The button will be shown in the selected color and contains no visible text.
| MGUI::CTRL_COLORBUTTON::CTRL_COLORBUTTON | ( | ) |
Constructor.
| virtual MGUI::CTRL_COLORBUTTON::~CTRL_COLORBUTTON | ( | ) | [virtual] |
Destructor.
| void MGUI::CTRL_COLORBUTTON::Create | ( | MGUI::LAYOUT_PANE_BASE & | ParentPane, | |
| const COLOR & | dftcolor, | |||
| STYLE | style = STYLE_Default, |
|||
| MGUI::LAYOUT_SIZEALIGN | sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize | |||
| ) |
Create control.
| ParentPane | Parent pane | |
| dftcolor | Default color | |
| style | Control style |
| const COLOR& MGUI::CTRL_COLORBUTTON::GetColor | ( | ) | const [inline] |
Get current color.
| COLORREF MGUI::CTRL_COLORBUTTON::GetColorRef | ( | ) | const [inline] |
Get current color.
| void MGUI::CTRL_COLORBUTTON::SetColor | ( | const COLORREF | color, | |
| bool | notify = true | |||
| ) | [inline] |
Set color.
| color | New color value to set | |
| notify | Call OnChangeColor() if 'true' |
| void MGUI::CTRL_COLORBUTTON::SetColor | ( | const COLOR & | color, | |
| bool | notify = true | |||
| ) |
Set color.
| color | New color value to set | |
| notify | Call OnChangeColor() if 'true' |
| void MGUI::CTRL_COLORBUTTON::SetDelegateOnChangeColor | ( | DELEGATE_VOID_NOPARMS | delegate | ) | [inline] |
Set delegate to call when color is changed.
1.6.1