#include <MenuItemAccelerator.h>
Public Member Functions | |
TextMenuItemAccelerator (const std::string &label, const std::string &accelLabel, GdkPixbuf *icon, bool isToggle) | |
virtual | ~TextMenuItemAccelerator () |
virtual | operator GtkWidget * () |
void | setLabel (const std::string &newLabel) |
void | setAccelerator (const std::string &newAccel) |
void | setIcon (GdkPixbuf *icon) |
void | setIsToggle (bool isToggle) |
Private Attributes | |
std::string | _labelText |
GtkWidget * | _label |
std::string | _accelLabelText |
GtkWidget * | _accel |
GdkPixbuf * | _icon |
GtkWidget * | _iconImage |
bool | _isToggle |
Definition at line 12 of file MenuItemAccelerator.h.
gtkutil::TextMenuItemAccelerator::TextMenuItemAccelerator | ( | const std::string & | label, | |
const std::string & | accelLabel, | |||
GdkPixbuf * | icon, | |||
bool | isToggle | |||
) |
Construct a menu item with the given label, accelerator and icon. The icon may be the empty string if no icon is required.
virtual gtkutil::TextMenuItemAccelerator::~TextMenuItemAccelerator | ( | ) | [inline, virtual] |
Definition at line 42 of file MenuItemAccelerator.h.
virtual gtkutil::TextMenuItemAccelerator::operator GtkWidget * | ( | ) | [virtual] |
void gtkutil::TextMenuItemAccelerator::setAccelerator | ( | const std::string & | newAccel | ) |
void gtkutil::TextMenuItemAccelerator::setIcon | ( | GdkPixbuf * | icon | ) |
void gtkutil::TextMenuItemAccelerator::setIsToggle | ( | bool | isToggle | ) |
void gtkutil::TextMenuItemAccelerator::setLabel | ( | const std::string & | newLabel | ) |
Definition at line 22 of file MenuItemAccelerator.h.
Definition at line 20 of file MenuItemAccelerator.h.
GdkPixbuf* gtkutil::TextMenuItemAccelerator::_icon [private] |
Definition at line 25 of file MenuItemAccelerator.h.
Definition at line 27 of file MenuItemAccelerator.h.
bool gtkutil::TextMenuItemAccelerator::_isToggle [private] |
Definition at line 30 of file MenuItemAccelerator.h.
Definition at line 17 of file MenuItemAccelerator.h.
Definition at line 15 of file MenuItemAccelerator.h.