A Button control that represents a state.
More...
#include <Nux/Button.h>
Public Member Functions |
| Button (const TCHAR *Caption=TEXT(""), NUX_FILE_LINE_PROTO) |
| ~Button () |
virtual void | SetCaption (const TCHAR *Caption) |
virtual const NString & | GetCaption () const |
virtual void | SetState (bool State) |
virtual void | SetState (bool State, bool EmitSignal) |
virtual bool | GetState () const |
Data Fields |
sigc::signal< void > | sigClick |
sigc::signal< void > | sigToggled |
sigc::signal< void, bool > | sigStateChanged |
Protected Member Functions |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
void | RecvMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseMove (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseEnter (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseLeave (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvClick (int x, int y, unsigned long button_flags, unsigned long key_flags) |
Detailed Description
A Button control that represents a state.
Constructor & Destructor Documentation
nux::Button::Button |
( |
const TCHAR * |
Caption = TEXT("") , |
|
|
NUX_FILE_LINE_PROTO |
|
|
) |
| |
Member Function Documentation
virtual void nux::Button::Draw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [protected, virtual] |
virtual void nux::Button::DrawContent |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [protected, virtual] |
virtual const NString& nux::Button::GetCaption |
( |
| ) |
const [virtual] |
virtual bool nux::Button::GetState |
( |
| ) |
const [virtual] |
virtual void nux::Button::PostDraw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [protected, virtual] |
virtual long nux::Button::ProcessEvent |
( |
IEvent & |
ievent, |
|
|
long |
TraverseInfo, |
|
|
long |
ProcessEventInfo |
|
) |
| [protected, virtual] |
void nux::Button::RecvClick |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
void nux::Button::RecvMouseDown |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
void nux::Button::RecvMouseEnter |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
void nux::Button::RecvMouseLeave |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
void nux::Button::RecvMouseMove |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
dx, |
|
|
int |
dy, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
void nux::Button::RecvMouseUp |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
virtual void nux::Button::SetCaption |
( |
const TCHAR * |
Caption | ) |
[virtual] |
virtual void nux::Button::SetState |
( |
bool |
State, |
|
|
bool |
EmitSignal |
|
) |
| [virtual] |
virtual void nux::Button::SetState |
( |
bool |
State | ) |
[virtual] |
Field Documentation
The documentation for this class was generated from the following file: