MGUI::CTRL_COLORBUTTON Class Reference

PushButton control for showing and selecting a "color". More...

#include <mgui/colorbtn.h>

Inheritance diagram for MGUI::CTRL_COLORBUTTON:
Inheritance graph
[legend]

List of all members.

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 COLORGetColor () 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)

Detailed Description

PushButton control for showing and selecting a "color".

The button will be shown in the selected color and contains no visible text.


Member Enumeration Documentation

Enumerator:
STYLE_Default 
STYLE_OutputOnly 

User cannot change value.

STYLE_AllowTransparent 

Allow transparent settings.

STYLE_AllowTransparency 

Allow transparency (and transparent) settings.


Constructor & Destructor Documentation

MGUI::CTRL_COLORBUTTON::CTRL_COLORBUTTON (  ) 

Constructor.

virtual MGUI::CTRL_COLORBUTTON::~CTRL_COLORBUTTON (  )  [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
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.

Parameters:
color New color value to set
notify Call OnChangeColor() if 'true'
void MGUI::CTRL_COLORBUTTON::SetColor ( const COLOR color,
bool  notify = true 
)

Set color.

Parameters:
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.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:29 2012 for TNTsdk 2012 by  doxygen 1.6.1