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.Structs.Margin

Description

A representation of the components of a margin.

Since: 1.10

Synopsis

Exported types

newtype Margin Source #

Memory-managed wrapper type.

Constructors

Margin (ManagedPtr Margin) 

Instances

Instances details
Eq Margin Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

Methods

(==) :: Margin -> Margin -> Bool #

(/=) :: Margin -> Margin -> Bool #

GBoxed Margin Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

ManagedPtrNewtype Margin Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

Methods

toManagedPtr :: Margin -> ManagedPtr Margin

TypedObject Margin Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

Methods

glibType :: IO GType

HasParentTypes Margin Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

tag ~ 'AttrSet => Constructible Margin tag Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

Methods

new :: MonadIO m => (ManagedPtr Margin -> Margin) -> [AttrOp Margin tag] -> m Margin

IsGValue (Maybe Margin) Source #

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

Instance details

Defined in GI.Clutter.Structs.Margin

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Margin Source # 
Instance details

Defined in GI.Clutter.Structs.Margin

type ParentTypes Margin = '[] :: [Type]

newZeroMargin :: MonadIO m => m Margin Source #

Construct a Margin struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free.

Getters

None.

Setters

None.

copy

marginCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Margin

margin_: a Margin

-> m Margin

Returns: a copy of the Margin.

Creates a new Margin and copies the contents of margin_ into the newly created structure.

Since: 1.10

free

marginFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Margin

margin_: a Margin

-> m () 

Frees the resources allocated by marginNew and marginCopy.

Since: 1.10

new

marginNew Source #

Arguments

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

Returns: a newly allocated Margin. Use marginFree to free the resources associated with it when done.

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 ]