Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The FlowLayout
structure contains only private data
and should be accessed using the provided API
Since: 1.2
Synopsis
- newtype FlowLayout = FlowLayout (ManagedPtr FlowLayout)
- class (GObject o, IsDescendantOf FlowLayout o) => IsFlowLayout o
- toFlowLayout :: (MonadIO m, IsFlowLayout o) => o -> m FlowLayout
- flowLayoutGetColumnSpacing :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m Float
- flowLayoutGetColumnWidth :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m (Float, Float)
- flowLayoutGetHomogeneous :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m Bool
- flowLayoutGetOrientation :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m FlowOrientation
- flowLayoutGetRowHeight :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m (Float, Float)
- flowLayoutGetRowSpacing :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m Float
- flowLayoutGetSnapToGrid :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> m Bool
- flowLayoutNew :: (HasCallStack, MonadIO m) => FlowOrientation -> m FlowLayout
- flowLayoutSetColumnSpacing :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> Float -> m ()
- flowLayoutSetColumnWidth :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> Float -> Float -> m ()
- flowLayoutSetHomogeneous :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> Bool -> m ()
- flowLayoutSetOrientation :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> FlowOrientation -> m ()
- flowLayoutSetRowHeight :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> Float -> Float -> m ()
- flowLayoutSetRowSpacing :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> Float -> m ()
- flowLayoutSetSnapToGrid :: (HasCallStack, MonadIO m, IsFlowLayout a) => a -> Bool -> m ()
- constructFlowLayoutColumnSpacing :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o)
- getFlowLayoutColumnSpacing :: (MonadIO m, IsFlowLayout o) => o -> m Float
- setFlowLayoutColumnSpacing :: (MonadIO m, IsFlowLayout o) => o -> Float -> m ()
- constructFlowLayoutHomogeneous :: (IsFlowLayout o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlowLayoutHomogeneous :: (MonadIO m, IsFlowLayout o) => o -> m Bool
- setFlowLayoutHomogeneous :: (MonadIO m, IsFlowLayout o) => o -> Bool -> m ()
- constructFlowLayoutMaxColumnWidth :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o)
- getFlowLayoutMaxColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> m Float
- setFlowLayoutMaxColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> Float -> m ()
- constructFlowLayoutMaxRowHeight :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o)
- getFlowLayoutMaxRowHeight :: (MonadIO m, IsFlowLayout o) => o -> m Float
- setFlowLayoutMaxRowHeight :: (MonadIO m, IsFlowLayout o) => o -> Float -> m ()
- constructFlowLayoutMinColumnWidth :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o)
- getFlowLayoutMinColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> m Float
- setFlowLayoutMinColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> Float -> m ()
- constructFlowLayoutMinRowHeight :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o)
- getFlowLayoutMinRowHeight :: (MonadIO m, IsFlowLayout o) => o -> m Float
- setFlowLayoutMinRowHeight :: (MonadIO m, IsFlowLayout o) => o -> Float -> m ()
- constructFlowLayoutOrientation :: (IsFlowLayout o, MonadIO m) => FlowOrientation -> m (GValueConstruct o)
- getFlowLayoutOrientation :: (MonadIO m, IsFlowLayout o) => o -> m FlowOrientation
- setFlowLayoutOrientation :: (MonadIO m, IsFlowLayout o) => o -> FlowOrientation -> m ()
- constructFlowLayoutRowSpacing :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o)
- getFlowLayoutRowSpacing :: (MonadIO m, IsFlowLayout o) => o -> m Float
- setFlowLayoutRowSpacing :: (MonadIO m, IsFlowLayout o) => o -> Float -> m ()
- constructFlowLayoutSnapToGrid :: (IsFlowLayout o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlowLayoutSnapToGrid :: (MonadIO m, IsFlowLayout o) => o -> m Bool
- setFlowLayoutSnapToGrid :: (MonadIO m, IsFlowLayout o) => o -> Bool -> m ()
Exported types
newtype FlowLayout Source #
Memory-managed wrapper type.
FlowLayout (ManagedPtr FlowLayout) |
Instances
Eq FlowLayout Source # | |
Defined in GI.Clutter.Objects.FlowLayout (==) :: FlowLayout -> FlowLayout -> Bool # (/=) :: FlowLayout -> FlowLayout -> Bool # | |
GObject FlowLayout Source # | |
Defined in GI.Clutter.Objects.FlowLayout | |
ManagedPtrNewtype FlowLayout Source # | |
Defined in GI.Clutter.Objects.FlowLayout toManagedPtr :: FlowLayout -> ManagedPtr FlowLayout | |
TypedObject FlowLayout Source # | |
Defined in GI.Clutter.Objects.FlowLayout | |
HasParentTypes FlowLayout Source # | |
Defined in GI.Clutter.Objects.FlowLayout | |
IsGValue (Maybe FlowLayout) Source # | Convert |
Defined in GI.Clutter.Objects.FlowLayout gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe FlowLayout -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe FlowLayout) | |
type ParentTypes FlowLayout Source # | |
Defined in GI.Clutter.Objects.FlowLayout |
class (GObject o, IsDescendantOf FlowLayout o) => IsFlowLayout o Source #
Type class for types which can be safely cast to FlowLayout
, for instance with toFlowLayout
.
Instances
(GObject o, IsDescendantOf FlowLayout o) => IsFlowLayout o Source # | |
Defined in GI.Clutter.Objects.FlowLayout |
toFlowLayout :: (MonadIO m, IsFlowLayout o) => o -> m FlowLayout Source #
Cast to FlowLayout
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
allocate, beginAnimation, bindProperty, bindPropertyFull, childGetProperty, childSetProperty, endAnimation, findChildProperty, forceFloating, freezeNotify, getv, isFloating, layoutChanged, listChildProperties, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAnimationProgress, getChildMeta, getColumnSpacing, getColumnWidth, getData, getHomogeneous, getOrientation, getPreferredHeight, getPreferredWidth, getProperty, getQdata, getRowHeight, getRowSpacing, getSnapToGrid.
Setters
setColumnSpacing, setColumnWidth, setContainer, setData, setDataFull, setHomogeneous, setOrientation, setProperty, setRowHeight, setRowSpacing, setSnapToGrid.
getColumnSpacing
flowLayoutGetColumnSpacing Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m Float | Returns: the spacing between columns of the |
Retrieves the spacing between columns
Since: 1.2
getColumnWidth
flowLayoutGetColumnWidth Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m (Float, Float) |
Retrieves the minimum and maximum column widths
Since: 1.2
getHomogeneous
flowLayoutGetHomogeneous Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves whether the layout
is homogeneous
Since: 1.2
getOrientation
flowLayoutGetOrientation Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m FlowOrientation | Returns: the orientation of the |
Retrieves the orientation of the layout
Since: 1.2
getRowHeight
flowLayoutGetRowHeight Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m (Float, Float) |
Retrieves the minimum and maximum row heights
Since: 1.2
getRowSpacing
flowLayoutGetRowSpacing Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m Float | Returns: the spacing between rows of the |
Retrieves the spacing between rows
Since: 1.2
getSnapToGrid
flowLayoutGetSnapToGrid Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves the value of FlowLayout:snapToGrid property
Since: 1.16
new
:: (HasCallStack, MonadIO m) | |
=> FlowOrientation |
|
-> m FlowLayout | Returns: the newly created |
Creates a new FlowLayout
with the given orientation
Since: 1.2
setColumnSpacing
flowLayoutSetColumnSpacing Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> Float |
|
-> m () |
Sets the space between columns, in pixels
Since: 1.2
setColumnWidth
flowLayoutSetColumnWidth Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> Float |
|
-> Float |
|
-> m () |
Sets the minimum and maximum widths that a column can have
Since: 1.2
setHomogeneous
flowLayoutSetHomogeneous Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the layout
should allocate the same space for
each child
Since: 1.2
setOrientation
flowLayoutSetOrientation Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> FlowOrientation |
|
-> m () |
Sets the orientation of the flow layout
The orientation controls the direction used to allocate the children: either horizontally or vertically. The orientation also controls the direction of the overflowing
Since: 1.2
setRowHeight
flowLayoutSetRowHeight Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> Float |
|
-> Float |
|
-> m () |
Sets the minimum and maximum heights that a row can have
Since: 1.2
setRowSpacing
flowLayoutSetRowSpacing Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> Float |
|
-> m () |
Sets the spacing between rows, in pixels
Since: 1.2
setSnapToGrid
flowLayoutSetSnapToGrid Source #
:: (HasCallStack, MonadIO m, IsFlowLayout a) | |
=> a |
|
-> Bool |
|
-> m () |
Whether the layout
should place its children on a grid.
Since: 1.16
Properties
columnSpacing
The spacing between columns, in pixels; the value of this property is honoured by horizontal non-overflowing layouts and by vertical overflowing layouts
Since: 1.2
constructFlowLayoutColumnSpacing :: (IsFlowLayout o, MonadIO m) => Float -> 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
.
getFlowLayoutColumnSpacing :: (MonadIO m, IsFlowLayout o) => o -> m Float Source #
Get the value of the “column-spacing
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #columnSpacing
setFlowLayoutColumnSpacing :: (MonadIO m, IsFlowLayout o) => o -> Float -> m () Source #
Set the value of the “column-spacing
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #columnSpacing:=
value ]
homogeneous
Whether each child inside the FlowLayout
should receive
the same allocation
Since: 1.2
constructFlowLayoutHomogeneous :: (IsFlowLayout o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “homogeneous
” property. This is rarely needed directly, but it is used by new
.
getFlowLayoutHomogeneous :: (MonadIO m, IsFlowLayout o) => o -> m Bool Source #
Get the value of the “homogeneous
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #homogeneous
setFlowLayoutHomogeneous :: (MonadIO m, IsFlowLayout o) => o -> Bool -> m () Source #
Set the value of the “homogeneous
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #homogeneous:=
value ]
maxColumnWidth
Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width
Since: 1.2
constructFlowLayoutMaxColumnWidth :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “max-column-width
” property. This is rarely needed directly, but it is used by new
.
getFlowLayoutMaxColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> m Float Source #
Get the value of the “max-column-width
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #maxColumnWidth
setFlowLayoutMaxColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> Float -> m () Source #
Set the value of the “max-column-width
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #maxColumnWidth:=
value ]
maxRowHeight
Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height
Since: 1.2
constructFlowLayoutMaxRowHeight :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “max-row-height
” property. This is rarely needed directly, but it is used by new
.
getFlowLayoutMaxRowHeight :: (MonadIO m, IsFlowLayout o) => o -> m Float Source #
Get the value of the “max-row-height
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #maxRowHeight
setFlowLayoutMaxRowHeight :: (MonadIO m, IsFlowLayout o) => o -> Float -> m () Source #
Set the value of the “max-row-height
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #maxRowHeight:=
value ]
minColumnWidth
Minimum width for each column in the layout, in pixels
Since: 1.2
constructFlowLayoutMinColumnWidth :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “min-column-width
” property. This is rarely needed directly, but it is used by new
.
getFlowLayoutMinColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> m Float Source #
Get the value of the “min-column-width
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #minColumnWidth
setFlowLayoutMinColumnWidth :: (MonadIO m, IsFlowLayout o) => o -> Float -> m () Source #
Set the value of the “min-column-width
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #minColumnWidth:=
value ]
minRowHeight
Minimum height for each row in the layout, in pixels
Since: 1.2
constructFlowLayoutMinRowHeight :: (IsFlowLayout o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “min-row-height
” property. This is rarely needed directly, but it is used by new
.
getFlowLayoutMinRowHeight :: (MonadIO m, IsFlowLayout o) => o -> m Float Source #
Get the value of the “min-row-height
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #minRowHeight
setFlowLayoutMinRowHeight :: (MonadIO m, IsFlowLayout o) => o -> Float -> m () Source #
Set the value of the “min-row-height
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #minRowHeight:=
value ]
orientation
The orientation of the FlowLayout
. The children
of the layout will be layed out following the orientation.
This property also controls the overflowing directions
Since: 1.2
constructFlowLayoutOrientation :: (IsFlowLayout o, MonadIO m) => FlowOrientation -> 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
.
getFlowLayoutOrientation :: (MonadIO m, IsFlowLayout o) => o -> m FlowOrientation Source #
Get the value of the “orientation
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #orientation
setFlowLayoutOrientation :: (MonadIO m, IsFlowLayout o) => o -> FlowOrientation -> m () Source #
Set the value of the “orientation
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #orientation:=
value ]
rowSpacing
The spacing between rows, in pixels; the value of this property is honoured by vertical non-overflowing layouts and by horizontal overflowing layouts
Since: 1.2
constructFlowLayoutRowSpacing :: (IsFlowLayout o, MonadIO m) => Float -> 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
.
getFlowLayoutRowSpacing :: (MonadIO m, IsFlowLayout o) => o -> m Float Source #
Get the value of the “row-spacing
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #rowSpacing
setFlowLayoutRowSpacing :: (MonadIO m, IsFlowLayout o) => o -> Float -> m () Source #
Set the value of the “row-spacing
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #rowSpacing:=
value ]
snapToGrid
Whether the FlowLayout
should arrange its children
on a grid
Since: 1.16
constructFlowLayoutSnapToGrid :: (IsFlowLayout o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “snap-to-grid
” property. This is rarely needed directly, but it is used by new
.
getFlowLayoutSnapToGrid :: (MonadIO m, IsFlowLayout o) => o -> m Bool Source #
Get the value of the “snap-to-grid
” property.
When overloading is enabled, this is equivalent to
get
flowLayout #snapToGrid
setFlowLayoutSnapToGrid :: (MonadIO m, IsFlowLayout o) => o -> Bool -> m () Source #
Set the value of the “snap-to-grid
” property.
When overloading is enabled, this is equivalent to
set
flowLayout [ #snapToGrid:=
value ]