| 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.Structs.Size
Description
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 Methods 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 # | |
| IsGValue (Maybe Size) Source # | Convert   | 
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 # | |
Defined in GI.Clutter.Structs.Size  | |
Methods
Click to display all available methods, including inherited ones
alloc
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Size | Returns: the newly allocated   | 
Allocates a new Size.
Since: 1.12
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Size | 
  | 
| -> m Size | Returns: the newly allocated   | 
Creates a new Size and duplicates size.
Since: 1.12
equals
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Size | 
  | 
| -> Size | 
  | 
| -> m Bool | 
Compares two Size for equality.
Since: 1.12
free
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Size | 
  | 
| -> m () | 
Frees the resources allocated for size.
Since: 1.12
init
Arguments
| :: (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
setsize [ #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
setsize [ #width:=value ]