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 size, in 2D space.
Since: 1.12
Synopsis
- newtype Size = Size (ManagedPtr Size)
- newZeroSize :: MonadIO m => m Size
- sizeAlloc :: (HasCallStack, MonadIO m) => m Size
- sizeCopy :: (HasCallStack, MonadIO m) => Size -> m Size
- sizeEquals :: (HasCallStack, MonadIO m) => Size -> Size -> m Bool
- sizeFree :: (HasCallStack, MonadIO m) => Size -> m ()
- sizeInit :: (HasCallStack, MonadIO m) => Size -> Float -> Float -> m Size
- getSizeHeight :: MonadIO m => Size -> m Float
- setSizeHeight :: MonadIO m => Size -> Float -> m ()
- getSizeWidth :: MonadIO m => Size -> m Float
- setSizeWidth :: MonadIO m => Size -> Float -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Size Source # | |
GBoxed Size Source # | |
Defined in GI.Clutter.Structs.Size | |
ManagedPtrNewtype Size Source # | |
Defined in GI.Clutter.Structs.Size toManagedPtr :: Size -> ManagedPtr Size # | |
TypedObject Size Source # | |
Defined in GI.Clutter.Structs.Size | |
HasParentTypes Size Source # | |
Defined in GI.Clutter.Structs.Size | |
tag ~ 'AttrSet => Constructible Size tag Source # | |
Defined in GI.Clutter.Structs.Size | |
IsGValue (Maybe Size) Source # | Convert |
Defined in GI.Clutter.Structs.Size | |
type ParentTypes Size Source # | |
Defined in GI.Clutter.Structs.Size |
Methods
Click to display all available methods, including inherited ones
alloc
:: (HasCallStack, MonadIO m) | |
=> m Size | Returns: the newly allocated |
Allocates a new Size
.
Since: 1.12
copy
:: (HasCallStack, MonadIO m) | |
=> Size |
|
-> m Size | Returns: the newly allocated |
Creates a new Size
and duplicates size
.
Since: 1.12
equals
Compares two Size
for equality.
Since: 1.12
free
:: (HasCallStack, MonadIO m) | |
=> Size |
|
-> m () |
Frees the resources allocated for size
.
Since: 1.12
init
:: (HasCallStack, MonadIO m) | |
=> Size |
|
-> Float |
|
-> Float |
|
-> m Size | Returns: the initialized |
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 ]