gtk.Alignment.Alignment Class Reference

Inheritance diagram for gtk.Alignment.Alignment:

gtk.Bin.Bin gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkAlignmentgetAlignmentStruct ()
 this (GtkAlignment *gtkAlignment)
 Sets our main struct and passes it to the parent class.
 this (float xalign, float yalign, float xscale, float yscale)
 Creates a new GtkAlignment.
void set (float xalign, float yalign, float xscale, float yscale)
 Sets the GtkAlignment values.
void getPadding (uint *paddingTop, uint *paddingBottom, uint *paddingLeft, uint *paddingRight)
 Gets the padding on the different sides of the widget.
void setPadding (uint paddingTop, uint paddingBottom, uint paddingLeft, uint paddingRight)
 Sets the padding on the different sides of the widget.

Static Public Member Functions

static Alignment center (Widget widget)
static Alignment north (Widget widget)
static Alignment south (Widget widget)
static Alignment east (Widget widget)
static Alignment west (Widget widget)
static Alignment northWest (Widget widget)
static Alignment southWest (Widget widget)
static Alignment northEast (Widget widget)
static Alignment southEast (Widget widget)

Protected Member Functions

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

Protected Attributes

GtkAlignmentgtkAlignment
 the main Gtk struct

Constructor & Destructor Documentation

gtk.Alignment.Alignment.this ( GtkAlignment gtkAlignment  ) 

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

gtk.Alignment.Alignment.this ( float  xalign,
float  yalign,
float  xscale,
float  yscale 
)

Creates a new GtkAlignment.

xalign: the horizontal alignment of the child widget, from 0 (left) to 1 (right). yalign: the vertical alignment of the child widget, from 0 (top) to 1 (bottom). xscale: the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GtkAlignment. yscale: the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale. Returns: the new GtkAlignment.


Member Function Documentation

static Alignment gtk.Alignment.Alignment.center ( Widget  widget  )  [static]

static Alignment gtk.Alignment.Alignment.east ( Widget  widget  )  [static]

GtkAlignment* gtk.Alignment.Alignment.getAlignmentStruct (  ) 

void gtk.Alignment.Alignment.getPadding ( uint paddingTop,
uint paddingBottom,
uint paddingLeft,
uint paddingRight 
)

Gets the padding on the different sides of the widget.

See gtk_alignment_set_padding(). alignment: a GtkAlignment padding_top: location to store the padding for the top of the widget, or NULL padding_bottom: location to store the padding for the bottom of the widget, or NULL padding_left: location to store the padding for the left of the widget, or NULL padding_right: location to store the padding for the right of the widget, or NULL Since 2.4

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

the main Gtk struct as a void*

Reimplemented from gtk.Bin.Bin.

static Alignment gtk.Alignment.Alignment.north ( Widget  widget  )  [static]

static Alignment gtk.Alignment.Alignment.northEast ( Widget  widget  )  [static]

static Alignment gtk.Alignment.Alignment.northWest ( Widget  widget  )  [static]

void gtk.Alignment.Alignment.set ( float  xalign,
float  yalign,
float  xscale,
float  yscale 
)

Sets the GtkAlignment values.

alignment: a GtkAlignment. xalign: the horizontal alignment of the child widget, from 0 (left) to 1 (right). yalign: the vertical alignment of the child widget, from 0 (top) to 1 (bottom). xscale: the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GtkAlignment. yscale: the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.

void gtk.Alignment.Alignment.setPadding ( uint  paddingTop,
uint  paddingBottom,
uint  paddingLeft,
uint  paddingRight 
)

Sets the padding on the different sides of the widget.

The padding adds blank space to the sides of the widget. For instance, this can be used to indent the child widget towards the right by adding padding on the left. alignment: a GtkAlignment padding_top: the padding at the top of the widget padding_bottom: the padding at the bottom of the widget padding_left: the padding at the left of the widget padding_right: the padding at the right of the widget. Since 2.4 Property Details The "bottom-padding" property "bottom-padding" guint : Read / Write The padding to insert at the bottom of the widget. Allowed values: <= G_MAXINT Default value: 0 Since 2.4

static Alignment gtk.Alignment.Alignment.south ( Widget  widget  )  [static]

static Alignment gtk.Alignment.Alignment.southEast ( Widget  widget  )  [static]

static Alignment gtk.Alignment.Alignment.southWest ( Widget  widget  )  [static]

static Alignment gtk.Alignment.Alignment.west ( Widget  widget  )  [static]


Member Data Documentation

GtkAlignment* gtk.Alignment.Alignment.gtkAlignment [protected]

the main Gtk struct


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