| 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 |
GI.Clutter.Objects.TableLayout
Contents
Description
The TableLayout structure contains only private data
and should be accessed using the provided API
Since: 1.4
Synopsis
- newtype TableLayout = TableLayout (ManagedPtr TableLayout)
- class (GObject o, IsDescendantOf TableLayout o) => IsTableLayout o
- toTableLayout :: (MonadIO m, IsTableLayout o) => o -> m TableLayout
- tableLayoutGetAlignment :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> m (TableAlignment, TableAlignment)
- tableLayoutGetColumnCount :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m Int32
- tableLayoutGetColumnSpacing :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m Word32
- tableLayoutGetEasingDuration :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m Word32
- tableLayoutGetEasingMode :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m CULong
- tableLayoutGetExpand :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> m (Bool, Bool)
- tableLayoutGetFill :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> m (Bool, Bool)
- tableLayoutGetRowCount :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m Int32
- tableLayoutGetRowSpacing :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m Word32
- tableLayoutGetSpan :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> m (Int32, Int32)
- tableLayoutGetUseAnimations :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> m Bool
- tableLayoutNew :: (HasCallStack, MonadIO m) => m TableLayout
- tableLayoutPack :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> Int32 -> Int32 -> m ()
- tableLayoutSetAlignment :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> TableAlignment -> TableAlignment -> m ()
- tableLayoutSetColumnSpacing :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> Word32 -> m ()
- tableLayoutSetEasingDuration :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> Word32 -> m ()
- tableLayoutSetEasingMode :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> CULong -> m ()
- tableLayoutSetExpand :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> Bool -> Bool -> m ()
- tableLayoutSetFill :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> Bool -> Bool -> m ()
- tableLayoutSetRowSpacing :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> Word32 -> m ()
- tableLayoutSetSpan :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) => a -> b -> Int32 -> Int32 -> m ()
- tableLayoutSetUseAnimations :: (HasCallStack, MonadIO m, IsTableLayout a) => a -> Bool -> m ()
- constructTableLayoutColumnSpacing :: (IsTableLayout o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getTableLayoutColumnSpacing :: (MonadIO m, IsTableLayout o) => o -> m Word32
- setTableLayoutColumnSpacing :: (MonadIO m, IsTableLayout o) => o -> Word32 -> m ()
- constructTableLayoutEasingDuration :: (IsTableLayout o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getTableLayoutEasingDuration :: (MonadIO m, IsTableLayout o) => o -> m Word32
- setTableLayoutEasingDuration :: (MonadIO m, IsTableLayout o) => o -> Word32 -> m ()
- constructTableLayoutEasingMode :: (IsTableLayout o, MonadIO m) => CULong -> m (GValueConstruct o)
- getTableLayoutEasingMode :: (MonadIO m, IsTableLayout o) => o -> m CULong
- setTableLayoutEasingMode :: (MonadIO m, IsTableLayout o) => o -> CULong -> m ()
- constructTableLayoutRowSpacing :: (IsTableLayout o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getTableLayoutRowSpacing :: (MonadIO m, IsTableLayout o) => o -> m Word32
- setTableLayoutRowSpacing :: (MonadIO m, IsTableLayout o) => o -> Word32 -> m ()
- constructTableLayoutUseAnimations :: (IsTableLayout o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTableLayoutUseAnimations :: (MonadIO m, IsTableLayout o) => o -> m Bool
- setTableLayoutUseAnimations :: (MonadIO m, IsTableLayout o) => o -> Bool -> m ()
Exported types
newtype TableLayout Source #
Memory-managed wrapper type.
Constructors
| TableLayout (ManagedPtr TableLayout) |
Instances
| Eq TableLayout Source # | |
Defined in GI.Clutter.Objects.TableLayout | |
| GObject TableLayout Source # | |
Defined in GI.Clutter.Objects.TableLayout | |
| ManagedPtrNewtype TableLayout Source # | |
Defined in GI.Clutter.Objects.TableLayout Methods toManagedPtr :: TableLayout -> ManagedPtr TableLayout | |
| TypedObject TableLayout Source # | |
Defined in GI.Clutter.Objects.TableLayout | |
| HasParentTypes TableLayout Source # | |
Defined in GI.Clutter.Objects.TableLayout | |
| IsGValue (Maybe TableLayout) Source # | Convert |
Defined in GI.Clutter.Objects.TableLayout Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TableLayout -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TableLayout) | |
| type ParentTypes TableLayout Source # | |
Defined in GI.Clutter.Objects.TableLayout | |
class (GObject o, IsDescendantOf TableLayout o) => IsTableLayout o Source #
Type class for types which can be safely cast to TableLayout, for instance with toTableLayout.
Instances
| (GObject o, IsDescendantOf TableLayout o) => IsTableLayout o Source # | |
Defined in GI.Clutter.Objects.TableLayout | |
toTableLayout :: (MonadIO m, IsTableLayout o) => o -> m TableLayout Source #
Cast to TableLayout, 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, pack, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAlignment, getAnimationProgress, getChildMeta, getColumnCount, getColumnSpacing, getData, getEasingDuration, getEasingMode, getExpand, getFill, getPreferredHeight, getPreferredWidth, getProperty, getQdata, getRowCount, getRowSpacing, getSpan, getUseAnimations.
Setters
setAlignment, setColumnSpacing, setContainer, setData, setDataFull, setEasingDuration, setEasingMode, setExpand, setFill, setProperty, setRowSpacing, setSpan, setUseAnimations.
getAlignment
tableLayoutGetAlignment Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> m (TableAlignment, TableAlignment) |
Deprecated: (Since version 1.12)Use actorGetXAlign and actorGetYAlign instead.
Retrieves the horizontal and vertical alignment policies for actor
as set using tableLayoutPack or
tableLayoutSetAlignment.
Since: 1.4
getColumnCount
tableLayoutGetColumnCount Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m Int32 | Returns: the number of columns |
Deprecated: (Since version 1.18)No direct replacement is available
Retrieve the current number of columns in layout
Since: 1.4
getColumnSpacing
tableLayoutGetColumnSpacing Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m Word32 | Returns: the spacing between columns of the |
Deprecated: (Since version 1.18)Use GridLayout:columnSpacing
Retrieves the spacing set using tableLayoutSetColumnSpacing
Since: 1.4
getEasingDuration
tableLayoutGetEasingDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m Word32 | Returns: the duration of the animations, in milliseconds |
Deprecated: (Since version 1.12)tTableLayout will honour the easing state of the children when allocating them. See actorSetEasingMode and actorSetEasingDuration.
Retrieves the duration set using tableLayoutSetEasingDuration
Since: 1.4
getEasingMode
tableLayoutGetEasingMode Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m CULong | Returns: an easing mode |
Deprecated: (Since version 1.12)tTableLayout will honour the easing state of the children when allocating them. See actorSetEasingMode and actorSetEasingDuration.
Retrieves the easing mode set using tableLayoutSetEasingMode
Since: 1.4
getExpand
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> m (Bool, Bool) |
Deprecated: (Since version 1.12)Use actorGetXExpand and actorGetYExpand instead.
Retrieves the horizontal and vertical expand policies for actor
as set using tableLayoutPack or tableLayoutSetExpand
Since: 1.4
getFill
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> m (Bool, Bool) |
Deprecated: (Since version 1.12)Use actorGetXAlign and actorGetYAlign instead.
Retrieves the horizontal and vertical fill policies for actor
as set using tableLayoutPack or tableLayoutSetFill
Since: 1.4
getRowCount
tableLayoutGetRowCount Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m Int32 | Returns: the number of rows |
Deprecated: (Since version 1.18)No direct replacement is available
Retrieve the current number rows in the layout
Since: 1.4
getRowSpacing
tableLayoutGetRowSpacing Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m Word32 | Returns: the spacing between rows of the |
Deprecated: (Since version 1.18)Use GridLayout:rowSpacing instead
Retrieves the spacing set using tableLayoutSetRowSpacing
Since: 1.4
getSpan
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> m (Int32, Int32) |
Deprecated: (Since version 1.18)Use the width and height layout properties of GridLayout instead
Retrieves the row and column span for actor as set using
tableLayoutPack or tableLayoutSetSpan
Since: 1.4
getUseAnimations
tableLayoutGetUseAnimations Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> m Bool | Returns: |
Deprecated: (Since version 1.12)tTableLayout will honour the easing state of the children when allocating them. See actorSetEasingMode and actorSetEasingDuration.
Retrieves whether layout should animate changes in the layout properties
Since tableLayoutSetUseAnimations
Since: 1.4
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m TableLayout | Returns: the newly created |
Deprecated: (Since version 1.18)Use GridLayout instead
Creates a new TableLayout layout manager
Since: 1.4
pack
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m () |
Deprecated: (Since version 1.18)Use gridLayoutAttach instead
Packs actor inside the Container associated to layout
at the given row and column.
Since: 1.4
setAlignment
tableLayoutSetAlignment Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> TableAlignment |
|
| -> TableAlignment |
|
| -> m () |
Deprecated: (Since version 1.12)Use actorSetXAlign and actorSetYAlign instead.
Sets the horizontal and vertical alignment policies for actor
inside layout
Since: 1.4
setColumnSpacing
tableLayoutSetColumnSpacing Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Deprecated: (Since version 1.18)Use GridLayout:columnSpacing instead
Sets the spacing between columns of layout
Since: 1.4
setEasingDuration
tableLayoutSetEasingDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Deprecated: (Since version 1.12)tTableLayout will honour the easing state of the children when allocating them. See actorSetEasingMode and actorSetEasingDuration.
Sets the duration of the animations used by layout when animating changes
in the layout properties
Use tableLayoutSetUseAnimations to enable and disable the
animations
Since: 1.4
setEasingMode
tableLayoutSetEasingMode Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> CULong |
|
| -> m () |
Deprecated: (Since version 1.12)tTableLayout will honour the easing state of the children when allocating them. See actorSetEasingMode and actorSetEasingDuration.
Sets the easing mode to be used by layout when animating changes in layout
properties
Use tableLayoutSetUseAnimations to enable and disable the
animations
Since: 1.4
setExpand
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> Bool |
|
| -> Bool |
|
| -> m () |
Deprecated: (Since version 1.12)Use actorSetXExpand or actorSetYExpand instead.
Sets the horizontal and vertical expand policies for actor
inside layout
Since: 1.4
setFill
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> Bool |
|
| -> Bool |
|
| -> m () |
Deprecated: (Since version 1.12)Use actorSetXAlign and actorSetYAlign instead.
Sets the horizontal and vertical fill policies for actor
inside layout
Since: 1.4
setRowSpacing
tableLayoutSetRowSpacing Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Deprecated: (Since version 1.18)Use GridLayout:rowSpacing instead
Sets the spacing between rows of layout
Since: 1.4
setSpan
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a, IsActor b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m () |
Deprecated: (Since version 1.18)Use the width and height layout properties of GridLayout instead
Sets the row and column span for actor
inside layout
Since: 1.4
setUseAnimations
tableLayoutSetUseAnimations Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTableLayout a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Deprecated: (Since version 1.12)tTableLayout will honour the easing state of the children when allocating them. See actorSetEasingMode and actorSetEasingDuration.
Sets whether layout should animate changes in the layout properties
The duration of the animations is controlled by
tableLayoutSetEasingDuration; the easing mode to be used
by the animations is controlled by tableLayoutSetEasingMode
Since: 1.4
Properties
columnSpacing
The spacing between columns of the TableLayout, in pixels
Since: 1.4
constructTableLayoutColumnSpacing :: (IsTableLayout 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.
getTableLayoutColumnSpacing :: (MonadIO m, IsTableLayout o) => o -> m Word32 Source #
Get the value of the “column-spacing” property.
When overloading is enabled, this is equivalent to
get tableLayout #columnSpacing
setTableLayoutColumnSpacing :: (MonadIO m, IsTableLayout o) => o -> Word32 -> m () Source #
Set the value of the “column-spacing” property.
When overloading is enabled, this is equivalent to
settableLayout [ #columnSpacing:=value ]
easingDuration
The duration of the animations, in case TableLayout:useAnimations
is set to True.
The duration is expressed in milliseconds.
Since: 1.4
constructTableLayoutEasingDuration :: (IsTableLayout o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “easing-duration” property. This is rarely needed directly, but it is used by new.
getTableLayoutEasingDuration :: (MonadIO m, IsTableLayout o) => o -> m Word32 Source #
Get the value of the “easing-duration” property.
When overloading is enabled, this is equivalent to
get tableLayout #easingDuration
setTableLayoutEasingDuration :: (MonadIO m, IsTableLayout o) => o -> Word32 -> m () Source #
Set the value of the “easing-duration” property.
When overloading is enabled, this is equivalent to
settableLayout [ #easingDuration:=value ]
easingMode
The easing mode for the animations, in case
TableLayout:useAnimations is set to True.
The easing mode has the same semantics of Animation:mode: it can
either be a value from the AnimationMode enumeration, like
AnimationModeEaseOutCubic, or a logical id as returned by
clutter_alpha_register_func().
The default value is AnimationModeEaseOutCubic.
Since: 1.4
constructTableLayoutEasingMode :: (IsTableLayout o, MonadIO m) => CULong -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “easing-mode” property. This is rarely needed directly, but it is used by new.
getTableLayoutEasingMode :: (MonadIO m, IsTableLayout o) => o -> m CULong Source #
Get the value of the “easing-mode” property.
When overloading is enabled, this is equivalent to
get tableLayout #easingMode
setTableLayoutEasingMode :: (MonadIO m, IsTableLayout o) => o -> CULong -> m () Source #
Set the value of the “easing-mode” property.
When overloading is enabled, this is equivalent to
settableLayout [ #easingMode:=value ]
rowSpacing
The spacing between rows of the TableLayout, in pixels
Since: 1.4
constructTableLayoutRowSpacing :: (IsTableLayout 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.
getTableLayoutRowSpacing :: (MonadIO m, IsTableLayout o) => o -> m Word32 Source #
Get the value of the “row-spacing” property.
When overloading is enabled, this is equivalent to
get tableLayout #rowSpacing
setTableLayoutRowSpacing :: (MonadIO m, IsTableLayout o) => o -> Word32 -> m () Source #
Set the value of the “row-spacing” property.
When overloading is enabled, this is equivalent to
settableLayout [ #rowSpacing:=value ]
useAnimations
Whether the TableLayout should animate changes in the
layout properties.
By default, TableLayout will honour the easing state of
the children when allocating them. Setting this property to
True will override the easing state with the layout manager's
TableLayout:easingMode and TableLayout:easingDuration
properties.
Since: 1.4
constructTableLayoutUseAnimations :: (IsTableLayout o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “use-animations” property. This is rarely needed directly, but it is used by new.
getTableLayoutUseAnimations :: (MonadIO m, IsTableLayout o) => o -> m Bool Source #
Get the value of the “use-animations” property.
When overloading is enabled, this is equivalent to
get tableLayout #useAnimations
setTableLayoutUseAnimations :: (MonadIO m, IsTableLayout o) => o -> Bool -> m () Source #
Set the value of the “use-animations” property.
When overloading is enabled, this is equivalent to
settableLayout [ #useAnimations:=value ]