Alignment


Object Hierarchy:

Object hierarchy for Alignment

Description:

[ CCode ( type_id = "gtk_alignment_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "3.14" ) ]
public class Alignment : Bin, Implementor, Buildable

Warning: Alignment is deprecated since 3.14.

The Alignment 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 Alignment. 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.

GtkAlignment has been deprecated in 3.14 and should not be used in newly-written code. The desired effect can be achieved by using the halign, valign and margin properties on the child widget.


Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor