gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.Alignment

Contents

Description

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 Widget:halign, Widget:valign and Widget:margin properties on the child widget.

Synopsis

Exported types

Methods

getPadding

alignmentGetPadding Source #

Arguments

:: (HasCallStack, MonadIO m, IsAlignment a) 
=> a

alignment: a Alignment

-> m (Word32, Word32, Word32, Word32) 

Deprecated: (Since version 3.14)Use Widget alignment and margin properties

Gets the padding on the different sides of the widget. See gtk_alignment_set_padding ().

Since: 2.4

new

alignmentNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Float

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

-> Float

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

-> Float

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

-> Float

yscale: the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.

-> m Alignment

Returns: the new Alignment

Deprecated: (Since version 3.14)Use Widget alignment and margin properties

Creates a new Alignment.

set

data AlignmentSetMethodInfo Source #

Instances

((~) * signature (Float -> Float -> Float -> Float -> m ()), MonadIO m, IsAlignment a) => MethodInfo * AlignmentSetMethodInfo a signature Source # 

alignmentSet Source #

Arguments

:: (HasCallStack, MonadIO m, IsAlignment a) 
=> a

alignment: a Alignment.

-> Float

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

-> Float

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

-> Float

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

-> Float

yscale: the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.

-> m () 

Deprecated: (Since version 3.14)Use Widget alignment and margin properties

Sets the Alignment values.

setPadding

alignmentSetPadding Source #

Arguments

:: (HasCallStack, MonadIO m, IsAlignment a) 
=> a

alignment: a Alignment

-> Word32

paddingTop: the padding at the top of the widget

-> Word32

paddingBottom: the padding at the bottom of the widget

-> Word32

paddingLeft: the padding at the left of the widget

-> Word32

paddingRight: the padding at the right of the widget.

-> m () 

Deprecated: (Since version 3.14)Use Widget alignment and margin properties

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.

Since: 2.4

Properties

bottomPadding

data AlignmentBottomPaddingPropertyInfo Source #

Instances

AttrInfo AlignmentBottomPaddingPropertyInfo Source # 
type AttrOrigin AlignmentBottomPaddingPropertyInfo Source # 
type AttrLabel AlignmentBottomPaddingPropertyInfo Source # 
type AttrGetType AlignmentBottomPaddingPropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentBottomPaddingPropertyInfo Source # 
type AttrSetTypeConstraint AlignmentBottomPaddingPropertyInfo Source # 
type AttrAllowedOps AlignmentBottomPaddingPropertyInfo Source # 

leftPadding

data AlignmentLeftPaddingPropertyInfo Source #

Instances

AttrInfo AlignmentLeftPaddingPropertyInfo Source # 
type AttrOrigin AlignmentLeftPaddingPropertyInfo Source # 
type AttrLabel AlignmentLeftPaddingPropertyInfo Source # 
type AttrGetType AlignmentLeftPaddingPropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentLeftPaddingPropertyInfo Source # 
type AttrSetTypeConstraint AlignmentLeftPaddingPropertyInfo Source # 
type AttrAllowedOps AlignmentLeftPaddingPropertyInfo Source # 

rightPadding

data AlignmentRightPaddingPropertyInfo Source #

Instances

AttrInfo AlignmentRightPaddingPropertyInfo Source # 
type AttrOrigin AlignmentRightPaddingPropertyInfo Source # 
type AttrLabel AlignmentRightPaddingPropertyInfo Source # 
type AttrGetType AlignmentRightPaddingPropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentRightPaddingPropertyInfo Source # 
type AttrSetTypeConstraint AlignmentRightPaddingPropertyInfo Source # 
type AttrAllowedOps AlignmentRightPaddingPropertyInfo Source # 

topPadding

data AlignmentTopPaddingPropertyInfo Source #

Instances

AttrInfo AlignmentTopPaddingPropertyInfo Source # 
type AttrOrigin AlignmentTopPaddingPropertyInfo Source # 
type AttrLabel AlignmentTopPaddingPropertyInfo Source # 
type AttrGetType AlignmentTopPaddingPropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentTopPaddingPropertyInfo Source # 
type AttrSetTypeConstraint AlignmentTopPaddingPropertyInfo Source # 
type AttrAllowedOps AlignmentTopPaddingPropertyInfo Source # 

xalign

data AlignmentXalignPropertyInfo Source #

Instances

AttrInfo AlignmentXalignPropertyInfo Source # 
type AttrOrigin AlignmentXalignPropertyInfo Source # 
type AttrLabel AlignmentXalignPropertyInfo Source # 
type AttrGetType AlignmentXalignPropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentXalignPropertyInfo Source # 
type AttrSetTypeConstraint AlignmentXalignPropertyInfo Source # 
type AttrAllowedOps AlignmentXalignPropertyInfo Source # 

xscale

data AlignmentXscalePropertyInfo Source #

Instances

AttrInfo AlignmentXscalePropertyInfo Source # 
type AttrOrigin AlignmentXscalePropertyInfo Source # 
type AttrLabel AlignmentXscalePropertyInfo Source # 
type AttrGetType AlignmentXscalePropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentXscalePropertyInfo Source # 
type AttrSetTypeConstraint AlignmentXscalePropertyInfo Source # 
type AttrAllowedOps AlignmentXscalePropertyInfo Source # 

yalign

data AlignmentYalignPropertyInfo Source #

Instances

AttrInfo AlignmentYalignPropertyInfo Source # 
type AttrOrigin AlignmentYalignPropertyInfo Source # 
type AttrLabel AlignmentYalignPropertyInfo Source # 
type AttrGetType AlignmentYalignPropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentYalignPropertyInfo Source # 
type AttrSetTypeConstraint AlignmentYalignPropertyInfo Source # 
type AttrAllowedOps AlignmentYalignPropertyInfo Source # 

yscale

data AlignmentYscalePropertyInfo Source #

Instances

AttrInfo AlignmentYscalePropertyInfo Source # 
type AttrOrigin AlignmentYscalePropertyInfo Source # 
type AttrLabel AlignmentYscalePropertyInfo Source # 
type AttrGetType AlignmentYscalePropertyInfo Source # 
type AttrBaseTypeConstraint AlignmentYscalePropertyInfo Source # 
type AttrSetTypeConstraint AlignmentYscalePropertyInfo Source # 
type AttrAllowedOps AlignmentYscalePropertyInfo Source #