gtk.AccelLabel.AccelLabel Class Reference

Inheritance diagram for gtk.AccelLabel.AccelLabel:

gtk.Label.Label gtk.Misc.Misc gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkAccelLabelgetAccelLabelStruct ()
 this (GtkAccelLabel *gtkAccelLabel)
 Sets our main struct and passes it to the parent class.
 this (char[] string)
 Creates a new GtkAccelLabel.
void setAccelClosure (Closure accelClosure)
 Sets the closure to be monitored by this accelerator label.
Widget getAccelWidget ()
 Fetches the widget monitored by this accelerator label.
void setAccelWidget (Widget accelWidget)
 Sets the widget to be monitored by this accelerator label.
uint getAccelWidth ()
 Returns the width needed to display the accelerator key(s).
int refetch ()
 Recreates the string representing the accelerator keys.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkAccelLabelgtkAccelLabel
 the main Gtk struct

Constructor & Destructor Documentation

gtk.AccelLabel.AccelLabel.this ( GtkAccelLabel gtkAccelLabel  ) 

Sets our main struct and passes it to the parent class.

gtk.AccelLabel.AccelLabel.this ( char[]  string  ) 

Creates a new GtkAccelLabel.

string: the label string. Must be non-NULL. Returns: a new GtkAccelLabel.


Member Function Documentation

GtkAccelLabel* gtk.AccelLabel.AccelLabel.getAccelLabelStruct (  ) 

Widget gtk.AccelLabel.AccelLabel.getAccelWidget (  ) 

Fetches the widget monitored by this accelerator label.

See gtk_accel_label_set_accel_widget(). accel_label: a GtkAccelLabel Returns: the object monitored by the accelerator label, or NULL.

uint gtk.AccelLabel.AccelLabel.getAccelWidth (  ) 

Returns the width needed to display the accelerator key(s).

This is used by menus to align all of the GtkMenuItem widgets, and shouldn't be needed by applications. accel_label: a GtkAccelLabel. Returns: the width needed to display the accelerator key(s).

void* gtk.AccelLabel.AccelLabel.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Label.Label.

int gtk.AccelLabel.AccelLabel.refetch (  ) 

Recreates the string representing the accelerator keys.

This should not be needed since the string is automatically updated whenever accelerators are added or removed from the associated widget. accel_label: a GtkAccelLabel. Returns: always returns FALSE. Property Details The "accel-closure" property "accel-closure" GClosure : Read / Write The closure to be monitored for accelerator changes.

void gtk.AccelLabel.AccelLabel.setAccelClosure ( Closure  accelClosure  ) 

Sets the closure to be monitored by this accelerator label.

The closure must be connected to an accelerator group; see gtk_accel_group_connect(). accel_label: a GtkAccelLabel accel_closure: the closure to monitor for accelerator changes.

void gtk.AccelLabel.AccelLabel.setAccelWidget ( Widget  accelWidget  ) 

Sets the widget to be monitored by this accelerator label.

accel_label: a GtkAccelLabel accel_widget: the widget to be monitored.


Member Data Documentation

GtkAccelLabel* gtk.AccelLabel.AccelLabel.gtkAccelLabel [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo