gtk.alignment
Module for [Alignment] class
Types 3
The #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.
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 #GtkWidget:halign, #GtkWidget:valign and #GtkWidget:margin properties on the child widget.
AlignmentGidBuilder builder()Get builder for [gtk.alignment.Alignment] Returns: New builder objectuint bottomPadding() @propertyGet `bottomPadding` property. Returns: The padding to insert at the bottom of the widget.void bottomPadding(uint propval) @propertySet `bottomPadding` property. Params: propval = The padding to insert at the bottom of the widget.uint leftPadding() @propertyGet `leftPadding` property. Returns: The padding to insert at the left of the widget.void leftPadding(uint propval) @propertySet `leftPadding` property. Params: propval = The padding to insert at the left of the widget.uint rightPadding() @propertyGet `rightPadding` property. Returns: The padding to insert at the right of the widget.void rightPadding(uint propval) @propertySet `rightPadding` property. Params: propval = The padding to insert at the right of the widget.uint topPadding() @propertyGet `topPadding` property. Returns: The padding to insert at the top of the widget.void topPadding(uint propval) @propertySet `topPadding` property. Params: propval = The padding to insert at the top of the widget.float xalign() @propertyGet `xalign` property. Returns: Horizontal position of child in available space. A value of 0.0 will flush the child left (or right, in RTL locales); a value of 1.0 will flush the child right (or l...void xalign(float propval) @propertySet `xalign` property. Params: propval = Horizontal position of child in available space. A value of 0.0 will flush the child left (or right, in RTL locales); a value of 1.0 will flush the child ri...float xscale() @propertyGet `xscale` property. Returns: If available horizontal space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.void xscale(float propval) @propertySet `xscale` property. Params: propval = If available horizontal space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.float yalign() @propertyGet `yalign` property. Returns: Vertical position of child in available space. A value of 0.0 will flush the child to the top; a value of 1.0 will flush the child to the bottom.void yalign(float propval) @propertySet `yalign` property. Params: propval = Vertical position of child in available space. A value of 0.0 will flush the child to the top; a value of 1.0 will flush the child to the bottom.float yscale() @propertyGet `yscale` property. Returns: If available vertical space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.void yscale(float propval) @propertySet `yscale` property. Params: propval = If available vertical space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.void getPadding(out uint paddingTop, out uint paddingBottom, out uint paddingLeft, out uint paddingRight)Gets the padding on the different sides of the widget. See gtkalignmentset_padding ().void set(float xalign, float yalign, float xscale, float yscale)Sets the #GtkAlignment values.void setPadding(uint paddingTop, uint paddingBottom, uint paddingLeft, uint paddingRight)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...T bottomPadding(uint propval)Set `bottomPadding` property. Params: propval = The padding to insert at the bottom of the widget. Returns: Builder instance for fluent chainingT leftPadding(uint propval)Set `leftPadding` property. Params: propval = The padding to insert at the left of the widget. Returns: Builder instance for fluent chainingT rightPadding(uint propval)Set `rightPadding` property. Params: propval = The padding to insert at the right of the widget. Returns: Builder instance for fluent chainingT topPadding(uint propval)Set `topPadding` property. Params: propval = The padding to insert at the top of the widget. Returns: Builder instance for fluent chainingT xalign(float propval)Set `xalign` property. Params: propval = Horizontal position of child in available space. A value of 0.0 will flush the child left (or right, in RTL locales); a value of 1.0 will flush the child ri...T xscale(float propval)Set `xscale` property. Params: propval = If available horizontal space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all. Returns: Buil...T yalign(float propval)Set `yalign` property. Params: propval = Vertical position of child in available space. A value of 0.0 will flush the child to the top; a value of 1.0 will flush the child to the bottom. Returns: B...T yscale(float propval)Set `yscale` property. Params: propval = If available vertical space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all. Returns: Builde...