![]() |
![]() |
Used for menu item labels, for instance.
Public Member Functions | ||||
AccelLabel (const Glib::ustring& label, bool mnemonic=false) | ||||
Constructor to create an AccelLabel object with a default label. | ||||
AccelLabel () | ||||
Default constructor to create an AccelLabel object. | ||||
const Widget* | get_accel_widget () const | |||
Fetches the widget monitored by this accelerator label. | ||||
Widget* | get_accel_widget () | |||
Fetches the widget monitored by this accelerator label. | ||||
guint | get_accel_width () const | |||
Gets the width needed to display this accelerator label. | ||||
const GtkAccelLabel* | gobj () const | |||
Provides access to the underlying C GtkObject. | ||||
GtkAccelLabel* | gobj () | |||
Provides access to the underlying C GtkObject. | ||||
bool | refetch () | |||
Recreates the string representing the accelerator keys. | ||||
void | set_accel_widget (const Widget& accel_widget) | |||
Sets the widget to be monitored by this accelerator label. | ||||
void | unset_accel_widget () | |||
Forget the accel widget previously set by set_accel_widget(). | ||||
virtual | ~AccelLabel () | |||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Gtk::AccelLabel* | wrap (GtkAccelLabel* object, bool take_copy=false) | |||
|
virtual Gtk::AccelLabel::~AccelLabel | ( | ) | [virtual] |
Gtk::AccelLabel::AccelLabel | ( | ) |
Default constructor to create an AccelLabel object.
Gtk::AccelLabel::AccelLabel | ( | const Glib::ustring & | label, | |
bool | mnemonic = false | |||
) | [explicit] |
Constructor to create an AccelLabel object with a default label.
label | The label string. | |
mnemonic | If true, characters preceded by an underscore (_) will be underlined and used as a keyboard accelerator. |
const Widget* Gtk::AccelLabel::get_accel_widget | ( | ) | const |
Fetches the widget monitored by this accelerator label.
See set_accel_widget().
0
. Widget* Gtk::AccelLabel::get_accel_widget | ( | ) |
Fetches the widget monitored by this accelerator label.
See set_accel_widget().
0
. guint Gtk::AccelLabel::get_accel_width | ( | ) | const |
Gets the width needed to display this accelerator label.
This is used by menus to align all of the Gtk::MenuItem widgets, and shouldn't be needed by applications.
const GtkAccelLabel* Gtk::AccelLabel::gobj | ( | ) | const [inline] |
GtkAccelLabel* Gtk::AccelLabel::gobj | ( | ) | [inline] |
bool Gtk::AccelLabel::refetch | ( | ) |
Recreates the string representing the accelerator keys.
false
. void Gtk::AccelLabel::set_accel_widget | ( | const Widget& | accel_widget | ) |
Sets the widget to be monitored by this accelerator label.
accel_widget | The widget to be monitored. |
void Gtk::AccelLabel::unset_accel_widget | ( | ) |
Forget the accel widget previously set by set_accel_widget().
Gtk::AccelLabel* wrap | ( | GtkAccelLabel * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |