nux-0.9.48

nux::ActionItem Class Reference

#include <Nux/ActionItem.h>

Inheritance diagram for nux::ActionItem:
nux::Object nux::Trackable

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 TCHARGetLabel () const
int GetUserValue () const
void SetFont (ObjectPtr< FontTexture > font)
void SetIcon (const BaseTexture *icon)
const BaseTextureGetIcon ()

Data Fields

sigc::signal< void > sigAction

Friends

class MenuBar
class MenuPage

Constructor & Destructor Documentation

nux::ActionItem::ActionItem ( const TCHAR label = 0,
int  UserValue = 0,
NUX_FILE_LINE_PROTO   
)
nux::ActionItem::~ActionItem ( )

Member Function Documentation

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

Friends And Related Function Documentation

friend class MenuBar [friend]
friend class MenuPage [friend]

Field Documentation

sigc::signal<void> nux::ActionItem::sigAction

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