
@c %start of fragment

@deftp Class <gtk-alignment>
Derives from @code{<gtk-bin>}.

This class defines the following properties:

@table @code
@item xalign
Horizontal position of child in available space. 0.0 is left aligned, 1.0 is
right aligned

@item yalign
Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom
aligned

@item xscale
If available horizontal space is bigger than needed for the child, how much of
it to use for the child. 0.0 means none, 1.0 means all

@item yscale
If available vertical space is bigger than needed for the child, how much of it
to use for the child. 0.0 means none, 1.0 means all

@item top-padding
The padding to insert at the top of the widget.

@item bottom-padding
The padding to insert at the bottom of the widget.

@item left-padding
The padding to insert at the left of the widget.

@item right-padding
The padding to insert at the right of the widget.

@end table

@end deftp

@deffn Function gtk-alignment-new  (xalign@tie{}@code{float}) (yalign@tie{}@code{float}) (xscale@tie{}@code{float}) (yscale@tie{}@code{float}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
Creates a new @code{<gtk-alignment>}.

@table @var
@item xalign
the horizontal alignment of the child widget, from 0 (left) to 1 (right).

@item yalign
the vertical alignment of the child widget, from 0 (top) to 1 (bottom).

@item 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 @code{<gtk-alignment>}.

@item yscale
the amount that the child widget expands vertically to fill up unused space,
from 0 to 1. The values are similar to @var{xscale}.

@item ret
the new @code{<gtk-alignment>}.

@end table

@end deffn

@deffn Function gtk-alignment-set  (self@tie{}@code{<gtk-alignment>}) (xalign@tie{}@code{float}) (yalign@tie{}@code{float}) (xscale@tie{}@code{float}) (yscale@tie{}@code{float})
@deffnx Method set
Sets the @code{<gtk-alignment>} values.

@table @var
@item alignment
a @code{<gtk-alignment>}.

@item xalign
the horizontal alignment of the child widget, from 0 (left) to 1 (right).

@item yalign
the vertical alignment of the child widget, from 0 (top) to 1 (bottom).

@item 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 @code{<gtk-alignment>}.

@item yscale
the amount that the child widget expands vertically to fill up unused space,
from 0 to 1. The values are similar to @var{xscale}.

@end table

@end deffn

@deffn Function gtk-alignment-get-padding  (self@tie{}@code{<gtk-alignment>}) @result{}@tie{} (padding_top@tie{}@code{unsigned-int}) (padding_bottom@tie{}@code{unsigned-int}) (padding_left@tie{}@code{unsigned-int}) (padding_right@tie{}@code{unsigned-int})
@deffnx Method get-padding
Gets the padding on the different sides of the widget. See
@code{gtk-alignment-set-padding}.

@table @var
@item alignment
a @code{<gtk-alignment>}

@item padding-top
location to store the padding for the top of the widget, or @samp{@code{#f}}

@item padding-bottom
location to store the padding for the bottom of the widget, or @samp{@code{#f}}

@item padding-left
location to store the padding for the left of the widget, or @samp{@code{#f}}

@item padding-right
location to store the padding for the right of the widget, or @samp{@code{#f}}

@end table

Since 2.4

@end deffn

@deffn Function gtk-alignment-set-padding  (self@tie{}@code{<gtk-alignment>}) (padding_top@tie{}@code{unsigned-int}) (padding_bottom@tie{}@code{unsigned-int}) (padding_left@tie{}@code{unsigned-int}) (padding_right@tie{}@code{unsigned-int})
@deffnx Method set-padding
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.

@table @var
@item alignment
a @code{<gtk-alignment>}

@item padding-top
the padding at the top of the widget

@item padding-bottom
the padding at the bottom of the widget

@item padding-left
the padding at the left of the widget

@item padding-right
the padding at the right of the widget.

@end table

Since 2.4

@end deffn


@c %end of fragment
