index
gtk-- homepage



Description:
Gtk_Alignment

#include <gtk--/alignment.h>
Base classes: Gtk_Bin

Alignment Container
Normally, a widget is allocated at least as much size as it requests. When a widget is allocated more size than it requests there is a question of how the widget should expand. By convention, most GTK widgets expand to fill their allocated space. Sometimes this behavior is not desired. The alignment widget allows the programmer to specify how a widget should expand and position itself to fill the area it is allocated.



Properties:

NameTypeGetSetDescription
xalign gfloat   set() Specify how to position the child widget when it is not allocated all the space available to it. A value of 0.0 positions the widget to the left or top of its allocated space. A value of 1.0 positions the widget to the right or bottom of its allocated space. Specifying 0.5 will center the widget in its allocated space.

Range: 0.0 to 1.0

yalign gfloat   set() see xalign
xscale gfloat   set() Specify how to scale the child widget. If the scale value is 0.0, the child widget is allocated exactly the size it requested in that dimension. If the scale value is 1.0, the child widget is allocated all of the space in a dimension. A scale value of 1.0 for both x and y is equivalent to not using an alignment widget.

Range: 0.0 to 1.0

yscale gfloat   set() see xscale


Public member index:


Gtk_Alignment(gfloat xalign,gfloat yalign,gfloat xscale,gfloat yscale);
Gtk_Alignment(GtkAlignment *castitem);
void set(gfloat xalign,gfloat yalign,gfloat xscale,gfloat yscale);
Sets the properties for this widget.

GtkAlignment *gtkobj();
const GtkAlignment *gtkobj()const;
static bool isGtkAlignment(Gtk_Object *checkcast);
Protected member index:


virtual void *get_parent_class();
Private member index:


GtkType get_type();

Public member details:


set
void Gtk_Alignment::set(gfloat xalign,gfloat yalign,gfloat xscale,gfloat yscale);

Sets the properties for this widget.
Sets both the alignment and scale of the window.

See properties xalign and xscale for more detail.


Protected member details:



Private member details:



Examples:





(pages generated by PERCEPS -script.)