gi-clutter-1.0.3: 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.Size

Description

A size, in 2D space.

Since: 1.12

Synopsis

Exported types

newtype Size Source #

Memory-managed wrapper type.

Constructors

Size (ManagedPtr Size) 

Instances

Instances details
Eq Size Source # 
Instance details

Defined in GI.Clutter.Structs.Size

Methods

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

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

GBoxed Size Source # 
Instance details

Defined in GI.Clutter.Structs.Size

ManagedPtrNewtype Size Source # 
Instance details

Defined in GI.Clutter.Structs.Size

Methods

toManagedPtr :: Size -> ManagedPtr Size

TypedObject Size Source # 
Instance details

Defined in GI.Clutter.Structs.Size

Methods

glibType :: IO GType

HasParentTypes Size Source # 
Instance details

Defined in GI.Clutter.Structs.Size

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

Defined in GI.Clutter.Structs.Size

Methods

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

IsGValue (Maybe Size) Source #

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

Instance details

Defined in GI.Clutter.Structs.Size

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Size Source # 
Instance details

Defined in GI.Clutter.Structs.Size

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

newZeroSize :: MonadIO m => m Size Source #

Construct a Size struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, equals, free, init.

Getters

None.

Setters

None.

alloc

sizeAlloc Source #

Arguments

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

Returns: the newly allocated Size. Use sizeFree to free its resources.

Allocates a new Size.

Since: 1.12

copy

sizeCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Size

size: a Size

-> m Size

Returns: the newly allocated Size. Use sizeFree to free its resources.

Creates a new Size and duplicates size.

Since: 1.12

equals

sizeEquals Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Size

a: a Size to compare

-> Size

b: a Size to compare

-> m Bool

Returns: True if the two Size are equal

Compares two Size for equality.

Since: 1.12

free

sizeFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Size

size: a Size

-> m () 

Frees the resources allocated for size.

Since: 1.12

init

sizeInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Size

size: a Size

-> Float

width: the width

-> Float

height: the height

-> m Size

Returns: the initialized Size

Initializes a Size with the given dimensions.

Since: 1.12

Properties

height

the height, in pixels

getSizeHeight :: MonadIO m => Size -> m Float Source #

Get the value of the “height” field. When overloading is enabled, this is equivalent to

get size #height

setSizeHeight :: MonadIO m => Size -> Float -> m () Source #

Set the value of the “height” field. When overloading is enabled, this is equivalent to

set size [ #height := value ]

width

the width, in pixels

getSizeWidth :: MonadIO m => Size -> m Float Source #

Get the value of the “width” field. When overloading is enabled, this is equivalent to

get size #width

setSizeWidth :: MonadIO m => Size -> Float -> m () Source #

Set the value of the “width” field. When overloading is enabled, this is equivalent to

set size [ #width := value ]