gi-clutter-1.0.5: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Objects.GridLayout

Description

The GridLayout structure contains only private data and should be accessed using the provided API

Since: 1.12

Synopsis

Exported types

newtype GridLayout Source #

Memory-managed wrapper type.

Constructors

GridLayout (ManagedPtr GridLayout) 

Instances

Instances details
Eq GridLayout Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

GObject GridLayout Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

ManagedPtrNewtype GridLayout Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

Methods

toManagedPtr :: GridLayout -> ManagedPtr GridLayout

TypedObject GridLayout Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

Methods

glibType :: IO GType

HasParentTypes GridLayout Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

IsGValue (Maybe GridLayout) Source #

Convert GridLayout to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Objects.GridLayout

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe GridLayout -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe GridLayout)

type ParentTypes GridLayout Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

type ParentTypes GridLayout = '[LayoutManager, Object]

class (GObject o, IsDescendantOf GridLayout o) => IsGridLayout o Source #

Type class for types which can be safely cast to GridLayout, for instance with toGridLayout.

Instances

Instances details
(GObject o, IsDescendantOf GridLayout o) => IsGridLayout o Source # 
Instance details

Defined in GI.Clutter.Objects.GridLayout

toGridLayout :: (MonadIO m, IsGridLayout o) => o -> m GridLayout Source #

Cast to GridLayout, for types for which this is known to be safe. For general casts, use castTo.

Methods

attach

gridLayoutAttach Source #

Arguments

:: (HasCallStack, MonadIO m, IsGridLayout a, IsActor b) 
=> a

layout: a GridLayout

-> b

child: the Actor to add

-> Int32

left: the column number to attach the left side of child to

-> Int32

top: the row number to attach the top side of child to

-> Int32

width: the number of columns that child will span

-> Int32

height: the number of rows that child will span

-> m () 

Adds a widget to the grid.

The position of child is determined by left and top. The number of 'cells' that child will occupy is determined by width and height.

Since: 1.12

attachNextTo

gridLayoutAttachNextTo Source #

Arguments

:: (HasCallStack, MonadIO m, IsGridLayout a, IsActor b, IsActor c) 
=> a

layout: a GridLayout

-> b

child: the actor to add

-> Maybe c

sibling: the child of layout that child will be placed next to, or Nothing to place child at the beginning or end

-> GridPosition

side: the side of sibling that child is positioned next to

-> Int32

width: the number of columns that child will span

-> Int32

height: the number of rows that child will span

-> m () 

Adds a actor to the grid.

The actor is placed next to sibling, on the side determined by side. When sibling is Nothing, the actor is placed in row (for left or right placement) or column 0 (for top or bottom placement), at the end indicated by side.

Attaching widgets labeled [1], [2], [3] with sibling == Nothing and side == GridPositionLeft yields a layout of [3][2][1].

Since: 1.12

getChildAt

gridLayoutGetChildAt Source #

Arguments

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

layout: a GridLayout

-> Int32

left: the left edge of the cell

-> Int32

top: the top edge of the cell

-> m Actor

Returns: the child at the given position, or Nothing

Gets the child of layout whose area covers the grid cell whose upper left corner is at left, top.

Since: 1.12

getColumnHomogeneous

gridLayoutGetColumnHomogeneous Source #

Arguments

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

layout: a GridLayout

-> m Bool

Returns: whether all columns of layout have the same width.

Returns whether all columns of layout have the same width.

getColumnSpacing

gridLayoutGetColumnSpacing Source #

Arguments

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

layout: a GridLayout

-> m Word32

Returns: the spacing between coluns of layout

Retrieves the spacing set using gridLayoutSetColumnSpacing

Since: 1.12

getOrientation

gridLayoutGetOrientation Source #

Arguments

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

layout: a GridLayout

-> m Orientation

Returns: the orientation of the layout

Retrieves the orientation of the layout.

Since: 1.12

getRowHomogeneous

gridLayoutGetRowHomogeneous Source #

Arguments

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

layout: a GridLayout

-> m Bool

Returns: whether all rows of layout have the same height.

Returns whether all rows of layout have the same height.

Since: 1.12

getRowSpacing

gridLayoutGetRowSpacing Source #

Arguments

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

layout: a GridLayout

-> m Word32

Returns: the spacing between rows of layout

Retrieves the spacing set using gridLayoutSetRowSpacing

Since: 1.12

insertColumn

gridLayoutInsertColumn Source #

Arguments

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

layout: a GridLayout

-> Int32

position: the position to insert the column at

-> m () 

Inserts a column at the specified position.

Children which are attached at or to the right of this position are moved one column to the right. Children which span across this position are grown to span the new column.

Since: 1.12

insertNextTo

gridLayoutInsertNextTo Source #

Arguments

:: (HasCallStack, MonadIO m, IsGridLayout a, IsActor b) 
=> a

layout: a GridLayout

-> b

sibling: the child of layout that the new row or column will be placed next to

-> GridPosition

side: the side of sibling that child is positioned next to

-> m () 

Inserts a row or column at the specified position.

The new row or column is placed next to sibling, on the side determined by side. If side is GridPositionLeft or GridPositionBottom, a row is inserted. If side is GridPositionLeft of GridPositionRight, a column is inserted.

Since: 1.12

insertRow

gridLayoutInsertRow Source #

Arguments

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

layout: a GridLayout

-> Int32

position: the position to insert the row at

-> m () 

Inserts a row at the specified position.

Children which are attached at or below this position are moved one row down. Children which span across this position are grown to span the new row.

Since: 1.12

new

gridLayoutNew Source #

Arguments

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

Returns: the new GridLayout

Creates a new GridLayout

setColumnHomogeneous

gridLayoutSetColumnHomogeneous Source #

Arguments

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

layout: a GridLayout

-> Bool

homogeneous: True to make columns homogeneous

-> m () 

Sets whether all columns of layout will have the same width.

Since: 1.12

setColumnSpacing

gridLayoutSetColumnSpacing Source #

Arguments

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

layout: a GridLayout

-> Word32

spacing: the spacing between columns of the layout, in pixels

-> m () 

Sets the spacing between columns of layout

Since: 1.12

setOrientation

gridLayoutSetOrientation Source #

Arguments

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

layout: a GridLayout

-> Orientation

orientation: the orientation of the GridLayout

-> m () 

Sets the orientation of the layout.

GridLayout uses the orientation as a hint when adding children to the Actor using it as a layout manager via actorAddChild; changing this value will not have any effect on children that are already part of the layout.

Since: 1.12

setRowHomogeneous

gridLayoutSetRowHomogeneous Source #

Arguments

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

layout: a GridLayout

-> Bool

homogeneous: True to make rows homogeneous

-> m () 

Sets whether all rows of layout will have the same height.

Since: 1.12

setRowSpacing

gridLayoutSetRowSpacing Source #

Arguments

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

layout: a GridLayout

-> Word32

spacing: the spacing between rows of the layout, in pixels

-> m () 

Sets the spacing between rows of layout

Since: 1.12

Properties

columnHomogeneous

Whether all columns of the layout should have the same width

Since: 1.12

constructGridLayoutColumnHomogeneous :: (IsGridLayout o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “column-homogeneous” property. This is rarely needed directly, but it is used by new.

getGridLayoutColumnHomogeneous :: (MonadIO m, IsGridLayout o) => o -> m Bool Source #

Get the value of the “column-homogeneous” property. When overloading is enabled, this is equivalent to

get gridLayout #columnHomogeneous

setGridLayoutColumnHomogeneous :: (MonadIO m, IsGridLayout o) => o -> Bool -> m () Source #

Set the value of the “column-homogeneous” property. When overloading is enabled, this is equivalent to

set gridLayout [ #columnHomogeneous := value ]

columnSpacing

The amount of space in pixels between two consecutive columns

Since: 1.12

constructGridLayoutColumnSpacing :: (IsGridLayout o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “column-spacing” property. This is rarely needed directly, but it is used by new.

getGridLayoutColumnSpacing :: (MonadIO m, IsGridLayout o) => o -> m Word32 Source #

Get the value of the “column-spacing” property. When overloading is enabled, this is equivalent to

get gridLayout #columnSpacing

setGridLayoutColumnSpacing :: (MonadIO m, IsGridLayout o) => o -> Word32 -> m () Source #

Set the value of the “column-spacing” property. When overloading is enabled, this is equivalent to

set gridLayout [ #columnSpacing := value ]

orientation

The orientation of the layout, either horizontal or vertical

Since: 1.12

constructGridLayoutOrientation :: (IsGridLayout o, MonadIO m) => Orientation -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “orientation” property. This is rarely needed directly, but it is used by new.

getGridLayoutOrientation :: (MonadIO m, IsGridLayout o) => o -> m Orientation Source #

Get the value of the “orientation” property. When overloading is enabled, this is equivalent to

get gridLayout #orientation

setGridLayoutOrientation :: (MonadIO m, IsGridLayout o) => o -> Orientation -> m () Source #

Set the value of the “orientation” property. When overloading is enabled, this is equivalent to

set gridLayout [ #orientation := value ]

rowHomogeneous

Whether all rows of the layout should have the same height

Since: 1.12

constructGridLayoutRowHomogeneous :: (IsGridLayout o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “row-homogeneous” property. This is rarely needed directly, but it is used by new.

getGridLayoutRowHomogeneous :: (MonadIO m, IsGridLayout o) => o -> m Bool Source #

Get the value of the “row-homogeneous” property. When overloading is enabled, this is equivalent to

get gridLayout #rowHomogeneous

setGridLayoutRowHomogeneous :: (MonadIO m, IsGridLayout o) => o -> Bool -> m () Source #

Set the value of the “row-homogeneous” property. When overloading is enabled, this is equivalent to

set gridLayout [ #rowHomogeneous := value ]

rowSpacing

The amount of space in pixels between two consecutive rows

Since: 1.12

constructGridLayoutRowSpacing :: (IsGridLayout o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “row-spacing” property. This is rarely needed directly, but it is used by new.

getGridLayoutRowSpacing :: (MonadIO m, IsGridLayout o) => o -> m Word32 Source #

Get the value of the “row-spacing” property. When overloading is enabled, this is equivalent to

get gridLayout #rowSpacing

setGridLayoutRowSpacing :: (MonadIO m, IsGridLayout o) => o -> Word32 -> m () Source #

Set the value of the “row-spacing” property. When overloading is enabled, this is equivalent to

set gridLayout [ #rowSpacing := value ]