Synopsis
#include <gtk/gtk.h>
GtkAlignment;
GtkWidget* gtk_alignment_new (gfloat xalign,
gfloat yalign,
gfloat xscale,
gfloat yscale);
void gtk_alignment_set (GtkAlignment *alignment,
gfloat xalign,
gfloat yalign,
gfloat xscale,
gfloat yscale);
void gtk_alignment_get_padding (GtkAlignment *alignment,
guint *padding_top,
guint *padding_bottom,
guint *padding_left,
guint *padding_right);
void gtk_alignment_set_padding (GtkAlignment *alignment,
guint padding_top,
guint padding_bottom,
guint padding_left,
guint padding_right);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkAlignment
Properties"bottom-padding" guint : Read / Write "left-padding" guint : Read / Write "right-padding" guint : Read / Write "top-padding" guint : Read / Write "xalign" gfloat : Read / Write "xscale" gfloat : Read / Write "yalign" gfloat : Read / Write "yscale" gfloat : Read / Write DescriptionThe GtkAlignment widget controls the alignment and size of its child widget. It has four settings: xscale, yscale, xalign, and yalign. The scale settings are used to specify how much the child widget should expand to fill the space allocated to the GtkAlignment. The values can range from 0 (meaning the child doesn't expand at all) to 1 (meaning the child expands to fill all of the available space). The align settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect. DetailsGtkAlignmenttypedef struct _GtkAlignment GtkAlignment; The GtkAlignment struct contains private data only, and should be accessed using the functions below. gtk_alignment_new ()GtkWidget* gtk_alignment_new (gfloat xalign, gfloat yalign, gfloat xscale, gfloat yscale); Creates a new GtkAlignment.
gtk_alignment_set ()void gtk_alignment_set (GtkAlignment *alignment, gfloat xalign, gfloat yalign, gfloat xscale, gfloat yscale); Sets the GtkAlignment values.
gtk_alignment_get_padding ()void gtk_alignment_get_padding (GtkAlignment *alignment, guint *padding_top, guint *padding_bottom, guint *padding_left, guint *padding_right);
Gets the padding on the different sides of the widget.
See
Since 2.4 gtk_alignment_set_padding ()void gtk_alignment_set_padding (GtkAlignment *alignment, guint padding_top, guint padding_bottom, guint padding_left, guint padding_right); 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.
Since 2.4 Property DetailsThe
| ||||||||||||||||||||||||||||||||||||||||||||||||||