[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gtk.Alignment

A Gtk_Alignment controls the size and alignment of its single child inside the area allocated to the alignment widget.

The scale/size settings indicate how much the child will expand to fill the container. The values should be in the range 0.0 (no expansion) to 1.0 (full expansion). Note that the scale only indicates the minimal size for the child, it does not force an absolute size.

The alignment settings indicate where in the alignment widget the child should be located. The values are in the range 0.0 (top or left) to 1.0 (bottom or right). These settings are irrelevant if the child is fully expanded.

- Gtk.Alignment Widget Hierarchy
- Gtk.Alignment Subprograms

## Widget Hierarchy

    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Container      (see section Package Gtk.Container)
             \___ Gtk_Bin         (see section Package Gtk.Bin)
                \___ Gtk_Alignment (see section Package Gtk.Alignment)

## Subprograms

    procedure Gtk_New
      (Alignment          : out    Gtk_Alignment;
       Xalign             : in     Gfloat;
       Yalign             : in     Gfloat;
       Xscale             : in     Gfloat;
       Yscale             : in     Gfloat);

| Create a new alignment widget, with initial values for the settings. See the description of the settings above.

    function Get_Type              return Gtk.Gtk_Type;

| Return the internal value associated with a Gtk_Alignment.

    procedure Set
      (Alignment          : access Gtk_Alignment_Record;
       Xalign             : in     Gfloat;
       Yalign             : in     Gfloat;
       Xscale             : in     Gfloat;
       Yscale             : in     Gfloat);

| Modify the settings for the alignment. See the description of the settings above.

    function Get_Xalign
      (Alignment          : access Gtk_Alignment_Record)
       return Gfloat;

| Return the X alignment value. Its value is in the range 0.0 .. 1.0, from left to right.

    function Get_Yalign
      (Alignment          : access Gtk_Alignment_Record)
       return Gfloat;

| Return the Y alignment value. Its value is in the range 0.0 .. 1.0, from top to bottom.

    function Get_Xscale
      (Alignment          : access Gtk_Alignment_Record)
       return Gfloat;

| Return the X expansion value, in the range 0.0 .. 1.0. 0.0 means no expansion while 1.0 means full expansion.

    function Get_Yscale
      (Alignment          : access Gtk_Alignment_Record)
       return Gfloat;

| Return the Y expansion value, in the range 0.0 .. 1.0 0.0 means no expansion while 1.0 means full expansion.

[Contents] [Back] [Prev] [Up] [Next] [Forward]