gtk.Misc.Misc Class Reference

Inheritance diagram for gtk.Misc.Misc:

gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.Arrow.Arrow gtk.Image.Image gtk.Label.Label gtk.AccelLabel.AccelLabel List of all members.

Public Member Functions

GtkMiscgetMiscStruct ()
 this (GtkMisc *gtkMisc)
 Sets our main struct and passes it to the parent class.
void setAlignment (float xalign, float yalign)
 Sets the alignment of the widget.
void setPadding (int xpad, int ypad)
 Sets the amount of space to add around the widget.
void getAlignment (float *xalign, float *yalign)
 Gets the X and Y alignment of the widget within its allocation.
void getPadding (int *xpad, int *ypad)
 Gets the padding in the X and Y directions of the widget.

Protected Member Functions

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

Protected Attributes

GtkMiscgtkMisc
 the main Gtk struct

Constructor & Destructor Documentation

gtk.Misc.Misc.this ( GtkMisc gtkMisc  ) 

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


Member Function Documentation

void gtk.Misc.Misc.getAlignment ( float *  xalign,
float *  yalign 
)

Gets the X and Y alignment of the widget within its allocation.

See gtk_misc_set_alignment(). misc: a GtkMisc xalign: location to store X alignment of misc, or NULL yalign: location to store Y alignment of misc, or NULL

GtkMisc* gtk.Misc.Misc.getMiscStruct (  ) 

void gtk.Misc.Misc.getPadding ( int xpad,
int ypad 
)

Gets the padding in the X and Y directions of the widget.

See gtk_misc_set_padding(). misc: a GtkMisc xpad: location to store padding in the X direction, or NULL ypad: location to store padding in the Y direction, or NULL Property Details The "xalign" property "xalign" gfloat : Read / Write The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts. Allowed values: [0,1] Default value: 0.5

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

the main Gtk struct as a void*

Reimplemented from gtk.Widget.Widget.

Reimplemented in gtk.AccelLabel.AccelLabel, gtk.Arrow.Arrow, gtk.Image.Image, and gtk.Label.Label.

void gtk.Misc.Misc.setAlignment ( float  xalign,
float  yalign 
)

Sets the alignment of the widget.

misc: a GtkMisc. xalign: the horizontal alignment, from 0 (left) to 1 (right). yalign: the vertical alignment, from 0 (top) to 1 (bottom).

void gtk.Misc.Misc.setPadding ( int  xpad,
int  ypad 
)

Sets the amount of space to add around the widget.

misc: a GtkMisc. xpad: the amount of space to add on the left and right of the widget, in pixels. ypad: the amount of space to add on the top and bottom of the widget, in pixels.


Member Data Documentation

GtkMisc* gtk.Misc.Misc.gtkMisc [protected]

the main Gtk struct


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