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

Contents

Description

The CellAreaBox renders cell renderers into a row or a column depending on its Orientation.

GtkCellAreaBox uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in a CellAreaBox. There are two reference positions: the start and the end of the box. When the CellAreaBox is oriented in the OrientationVertical orientation, the start is defined as the top of the box and the end is defined as the bottom. In the OrientationHorizontal orientation start is defined as the left side and the end is defined as the right side.

Alignments of GtkCellRenderers rendered in adjacent rows can be configured by configuring the CellAreaBox align child cell property with cellAreaCellSetProperty or by specifying the "align" argument to cellAreaBoxPackStart and cellAreaBoxPackEnd.

Synopsis

Exported types

Methods

getSpacing

cellAreaBoxGetSpacing Source #

Arguments

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

box: a CellAreaBox

-> m Int32

Returns: the space added between cell renderers in box.

Gets the spacing added between cell renderers.

Since: 3.0

new

cellAreaBoxNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m CellAreaBox

Returns: a newly created CellAreaBox

Creates a new CellAreaBox.

Since: 3.0

packEnd

data CellAreaBoxPackEndMethodInfo Source #

Instances

((~) * signature (b -> Bool -> Bool -> Bool -> m ()), MonadIO m, IsCellAreaBox a, IsCellRenderer b) => MethodInfo * CellAreaBoxPackEndMethodInfo a signature Source # 

cellAreaBoxPackEnd Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellAreaBox a, IsCellRenderer b) 
=> a

box: a CellAreaBox

-> b

renderer: the CellRenderer to add

-> Bool

expand: whether renderer should receive extra space when the area receives more than its natural size

-> Bool

align: whether renderer should be aligned in adjacent rows

-> Bool

fixed: whether renderer should have the same size in all rows

-> m () 

Adds renderer to box, packed with reference to the end of box.

The renderer is packed after (away from end of) any other CellRenderer packed with reference to the end of box.

Since: 3.0

packStart

cellAreaBoxPackStart Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellAreaBox a, IsCellRenderer b) 
=> a

box: a CellAreaBox

-> b

renderer: the CellRenderer to add

-> Bool

expand: whether renderer should receive extra space when the area receives more than its natural size

-> Bool

align: whether renderer should be aligned in adjacent rows

-> Bool

fixed: whether renderer should have the same size in all rows

-> m () 

Adds renderer to box, packed with reference to the start of box.

The renderer is packed after any other CellRenderer packed with reference to the start of box.

Since: 3.0

setSpacing

cellAreaBoxSetSpacing Source #

Arguments

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

box: a CellAreaBox

-> Int32

spacing: the space to add between GtkCellRenderers

-> m () 

Sets the spacing to add between cell renderers in box.

Since: 3.0

Properties

spacing

data CellAreaBoxSpacingPropertyInfo Source #

Instances

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