MGUI::CTRL_TOGGLEBUTTON_T< _CT > Class Template Reference

Convenience template for Toggle button to allow method in container class to be called. More...

#include <mgui/ctrl.h>

Inheritance diagram for MGUI::CTRL_TOGGLEBUTTON_T< _CT >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, ICONID iconid, const MISTRING &tooltip, _CT *pContainer, void(_CT::*pfOnPressed)(), STYLE style=STYLE_Check, bool dftvalue=false, int iconsize=0)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, ICONID iconid, const char *tooltip, _CT *pContainer, void(_CT::*pfOnPressed)(), STYLE style=STYLE_Check, bool dftvalue=false, int iconsize=0)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, _CT *pContainer, void(_CT::*pfOnPressed)(), STYLE style=STYLE_Check, bool dftvalue=false, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const char *label, _CT *pContainer, void(_CT::*pfOnPressed)(), STYLE style=STYLE_Check, bool dftvalue=false, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
 CTRL_TOGGLEBUTTON_T ()

Detailed Description

template<class _CT>
class MGUI::CTRL_TOGGLEBUTTON_T< _CT >

Convenience template for Toggle button to allow method in container class to be called.

Definition at line 984 of file ctrl.h.


Constructor & Destructor Documentation

template<class _CT>
MGUI::CTRL_TOGGLEBUTTON_T< _CT >::CTRL_TOGGLEBUTTON_T  )  [inline, explicit]
 

Constructor.

Definition at line 988 of file ctrl.h.


Member Function Documentation

template<class _CT>
void MGUI::CTRL_TOGGLEBUTTON_T< _CT >::Create MGUI::LAYOUT_PANE_BASE ParentPane,
ICONID  iconid,
const MISTRING tooltip,
_CT *  pContainer,
void(_CT::*  pfOnPressed)(),
STYLE  style = STYLE_Check,
bool  dftvalue = false,
int  iconsize = 0
[inline]
 

Create icon with Unicode ToolTip.

Parameters:
ParentPane  Parent pane
iconid  Icon ID
tooltip  ToolTip string
pContainer  Pointer to callback container class
style  Callback function pointer Toggle style
dftvalue  Default value
iconsize  Icon size, 0 for default

Definition at line 1038 of file ctrl.h.

template<class _CT>
void MGUI::CTRL_TOGGLEBUTTON_T< _CT >::Create MGUI::LAYOUT_PANE_BASE ParentPane,
ICONID  iconid,
const char *  tooltip,
_CT *  pContainer,
void(_CT::*  pfOnPressed)(),
STYLE  style = STYLE_Check,
bool  dftvalue = false,
int  iconsize = 0
[inline]
 

Create icon with ToolTip from resource lookup.

Parameters:
ParentPane  Parent pane
iconid  Icon ID
tooltip  ToolTip string
pContainer  Pointer to callback container class
style  Callback function pointer Toggle style
dftvalue  Default value
iconsize  Icon size, 0 for default

Definition at line 1022 of file ctrl.h.

template<class _CT>
void MGUI::CTRL_TOGGLEBUTTON_T< _CT >::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
_CT *  pContainer,
void(_CT::*  pfOnPressed)(),
STYLE  style = STYLE_Check,
bool  dftvalue = false,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize
[inline]
 

Create with Unicode label.

Parameters:
ParentPane  Parent pane
label  Label string
pContainer  Pointer to callback container class
style  Callback function pointer Toggle style
dftvalue  Default value

Definition at line 1007 of file ctrl.h.

template<class _CT>
void MGUI::CTRL_TOGGLEBUTTON_T< _CT >::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const char *  label,
_CT *  pContainer,
void(_CT::*  pfOnPressed)(),
STYLE  style = STYLE_Check,
bool  dftvalue = false,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize
[inline]
 

Create with label from resource lookup.

Parameters:
ParentPane  Parent pane
label  Label string for resource lookup
pContainer  Pointer to callback container class
style  Callback function pointer Toggle style
dftvalue  Default value

Definition at line 992 of file ctrl.h.


The documentation for this class was generated from the following file:
Generated on Wed May 31 15:29:51 2006 for TNTsdk by  doxygen 1.3.8-20040913