A Button control that performs and action when clicked.
More...
#include <Nux/PushButton.h>
Public Member Functions |
| | PushButton (const TCHAR *Caption=TEXT(""), NUX_FILE_LINE_PROTO) |
| | ~PushButton () |
| 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 |
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 performs and action when clicked.
Constructor & Destructor Documentation
| nux::PushButton::PushButton |
( |
const TCHAR * |
Caption = TEXT(""), |
|
|
NUX_FILE_LINE_PROTO |
|
|
) |
| |
| nux::PushButton::~PushButton |
( |
| ) |
|
Member Function Documentation
| virtual void nux::PushButton::Draw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [protected, virtual] |
| virtual void nux::PushButton::DrawContent |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [protected, virtual] |
| virtual const NString& nux::PushButton::GetCaption |
( |
| ) |
const [virtual] |
| virtual bool nux::PushButton::GetState |
( |
| ) |
const [virtual] |
| virtual void nux::PushButton::PostDraw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [protected, virtual] |
| virtual long nux::PushButton::ProcessEvent |
( |
IEvent & |
ievent, |
|
|
long |
TraverseInfo, |
|
|
long |
ProcessEventInfo |
|
) |
| [protected, virtual] |
| void nux::PushButton::RecvClick |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
| void nux::PushButton::RecvMouseDown |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
| void nux::PushButton::RecvMouseEnter |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
| void nux::PushButton::RecvMouseLeave |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
| void nux::PushButton::RecvMouseMove |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
dx, |
|
|
int |
dy, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
| void nux::PushButton::RecvMouseUp |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| [protected] |
| virtual void nux::PushButton::SetCaption |
( |
const TCHAR * |
Caption | ) |
[virtual] |
| virtual void nux::PushButton::SetState |
( |
bool |
State, |
|
|
bool |
EmitSignal |
|
) |
| [virtual] |
| virtual void nux::PushButton::SetState |
( |
bool |
State | ) |
[virtual] |
Field Documentation
The documentation for this class was generated from the following file: