nux-0.9.46
|
#include <Nux/ActionItem.h>
Public Member Functions | |
NUX_DECLARE_OBJECT_TYPE (ActionItem, Object) | |
ActionItem (const TCHAR *label=0, int UserValue=0, NUX_FILE_LINE_PROTO) | |
~ActionItem () | |
void | Activate (bool b) |
void | Trigger () const |
void | DrawAsMenuItem (GraphicsEngine &GfxContext, InputArea &area, bool is_highlighted, bool draw_icone) |
void | DrawAsToolButton (GraphicsEngine &GfxContext, InputArea &area) |
void | Enable (bool b) |
bool | isEnabled () const |
void | SetLabel (const TCHAR *label) |
const TCHAR * | GetLabel () const |
int | GetUserValue () const |
void | SetFont (ObjectPtr< FontTexture > font) |
void | SetIcon (const BaseTexture *icon) |
const BaseTexture * | GetIcon () |
Data Fields | |
sigc::signal< void > | sigAction |
Friends | |
class | MenuBar |
class | MenuPage |
nux::ActionItem::ActionItem | ( | const TCHAR * | label = 0 , |
int | UserValue = 0 , |
||
NUX_FILE_LINE_PROTO | |||
) |
nux::ActionItem::~ActionItem | ( | ) |
void nux::ActionItem::Activate | ( | bool | b | ) |
void nux::ActionItem::DrawAsMenuItem | ( | GraphicsEngine & | GfxContext, |
InputArea & | area, | ||
bool | is_highlighted, | ||
bool | draw_icone | ||
) |
void nux::ActionItem::DrawAsToolButton | ( | GraphicsEngine & | GfxContext, |
InputArea & | area | ||
) |
void nux::ActionItem::Enable | ( | bool | b | ) |
const BaseTexture* nux::ActionItem::GetIcon | ( | ) |
const TCHAR* nux::ActionItem::GetLabel | ( | ) | const |
int nux::ActionItem::GetUserValue | ( | ) | const [inline] |
bool nux::ActionItem::isEnabled | ( | ) | const |
nux::ActionItem::NUX_DECLARE_OBJECT_TYPE | ( | ActionItem | , |
Object | |||
) |
void nux::ActionItem::SetFont | ( | ObjectPtr< FontTexture > | font | ) |
void nux::ActionItem::SetIcon | ( | const BaseTexture * | icon | ) |
void nux::ActionItem::SetLabel | ( | const TCHAR * | label | ) |
void nux::ActionItem::Trigger | ( | ) | const |
friend class MenuBar [friend] |
friend class MenuPage [friend] |
sigc::signal<void> nux::ActionItem::sigAction |