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 |
A representation of the components of a margin.
Since: 1.10
Synopsis
- newtype Margin = Margin (ManagedPtr Margin)
- newZeroMargin :: MonadIO m => m Margin
- marginCopy :: (HasCallStack, MonadIO m) => Margin -> m Margin
- marginFree :: (HasCallStack, MonadIO m) => Margin -> m ()
- marginNew :: (HasCallStack, MonadIO m) => m Margin
- getMarginBottom :: MonadIO m => Margin -> m Float
- setMarginBottom :: MonadIO m => Margin -> Float -> m ()
- getMarginLeft :: MonadIO m => Margin -> m Float
- setMarginLeft :: MonadIO m => Margin -> Float -> m ()
- getMarginRight :: MonadIO m => Margin -> m Float
- setMarginRight :: MonadIO m => Margin -> Float -> m ()
- getMarginTop :: MonadIO m => Margin -> m Float
- setMarginTop :: MonadIO m => Margin -> Float -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Margin Source # | |
GBoxed Margin Source # | |
Defined in GI.Clutter.Structs.Margin | |
ManagedPtrNewtype Margin Source # | |
Defined in GI.Clutter.Structs.Margin toManagedPtr :: Margin -> ManagedPtr Margin | |
TypedObject Margin Source # | |
Defined in GI.Clutter.Structs.Margin | |
HasParentTypes Margin Source # | |
Defined in GI.Clutter.Structs.Margin | |
tag ~ 'AttrSet => Constructible Margin tag Source # | |
IsGValue (Maybe Margin) Source # | Convert |
Defined in GI.Clutter.Structs.Margin gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Margin -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Margin) | |
type ParentTypes Margin Source # | |
Defined in GI.Clutter.Structs.Margin |
Methods
Click to display all available methods, including inherited ones
copy
Creates a new Margin
and copies the contents of margin_
into
the newly created structure.
Since: 1.10
free
:: (HasCallStack, MonadIO m) | |
=> Margin |
|
-> m () |
Frees the resources allocated by marginNew
and
marginCopy
.
Since: 1.10
new
:: (HasCallStack, MonadIO m) | |
=> m Margin | Returns: a newly allocated |
Creates a new Margin
.
Since: 1.10
Properties
bottom
the margin from the bottom
getMarginBottom :: MonadIO m => Margin -> m Float Source #
Get the value of the “bottom
” field.
When overloading is enabled, this is equivalent to
get
margin #bottom
setMarginBottom :: MonadIO m => Margin -> Float -> m () Source #
Set the value of the “bottom
” field.
When overloading is enabled, this is equivalent to
set
margin [ #bottom:=
value ]
left
the margin from the left
getMarginLeft :: MonadIO m => Margin -> m Float Source #
Get the value of the “left
” field.
When overloading is enabled, this is equivalent to
get
margin #left
setMarginLeft :: MonadIO m => Margin -> Float -> m () Source #
Set the value of the “left
” field.
When overloading is enabled, this is equivalent to
set
margin [ #left:=
value ]
right
the margin from the right
getMarginRight :: MonadIO m => Margin -> m Float Source #
Get the value of the “right
” field.
When overloading is enabled, this is equivalent to
get
margin #right
setMarginRight :: MonadIO m => Margin -> Float -> m () Source #
Set the value of the “right
” field.
When overloading is enabled, this is equivalent to
set
margin [ #right:=
value ]
top
the margin from the top
getMarginTop :: MonadIO m => Margin -> m Float Source #
Get the value of the “top
” field.
When overloading is enabled, this is equivalent to
get
margin #top
setMarginTop :: MonadIO m => Margin -> Float -> m () Source #
Set the value of the “top
” field.
When overloading is enabled, this is equivalent to
set
margin [ #top:=
value ]