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 data structure for holding a rectangle.
Since: 2.46
Synopsis
- newtype Rectangle = Rectangle (ManagedPtr Rectangle)
- newZeroRectangle :: MonadIO m => m Rectangle
- getRectangleHeight :: MonadIO m => Rectangle -> m Double
- setRectangleHeight :: MonadIO m => Rectangle -> Double -> m ()
- getRectangleWidth :: MonadIO m => Rectangle -> m Double
- setRectangleWidth :: MonadIO m => Rectangle -> Double -> m ()
- getRectangleX :: MonadIO m => Rectangle -> m Double
- setRectangleX :: MonadIO m => Rectangle -> Double -> m ()
- getRectangleY :: MonadIO m => Rectangle -> m Double
- setRectangleY :: MonadIO m => Rectangle -> Double -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Rectangle Source # | |
BoxedPtr Rectangle Source # | |
Defined in GI.Rsvg.Structs.Rectangle boxedPtrCopy :: Rectangle -> IO Rectangle boxedPtrFree :: Rectangle -> IO () | |
CallocPtr Rectangle Source # | |
Defined in GI.Rsvg.Structs.Rectangle boxedPtrCalloc :: IO (Ptr Rectangle) | |
ManagedPtrNewtype Rectangle Source # | |
Defined in GI.Rsvg.Structs.Rectangle toManagedPtr :: Rectangle -> ManagedPtr Rectangle | |
tag ~ 'AttrSet => Constructible Rectangle tag Source # | |
newZeroRectangle :: MonadIO m => m Rectangle Source #
Construct a Rectangle
struct initialized to zero.
Methods
Properties
height
height of the rectangle
getRectangleHeight :: MonadIO m => Rectangle -> m Double Source #
Get the value of the “height
” field.
When overloading is enabled, this is equivalent to
get
rectangle #height
setRectangleHeight :: MonadIO m => Rectangle -> Double -> m () Source #
Set the value of the “height
” field.
When overloading is enabled, this is equivalent to
set
rectangle [ #height:=
value ]
width
width of the rectangle
getRectangleWidth :: MonadIO m => Rectangle -> m Double Source #
Get the value of the “width
” field.
When overloading is enabled, this is equivalent to
get
rectangle #width
setRectangleWidth :: MonadIO m => Rectangle -> Double -> m () Source #
Set the value of the “width
” field.
When overloading is enabled, this is equivalent to
set
rectangle [ #width:=
value ]
x
X coordinate of the left side of the rectangle
getRectangleX :: MonadIO m => Rectangle -> m Double Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
rectangle #x
setRectangleX :: MonadIO m => Rectangle -> Double -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
rectangle [ #x:=
value ]
y
Y coordinate of the the top side of the rectangle
getRectangleY :: MonadIO m => Rectangle -> m Double Source #
Get the value of the “y
” field.
When overloading is enabled, this is equivalent to
get
rectangle #y
setRectangleY :: MonadIO m => Rectangle -> Double -> m () Source #
Set the value of the “y
” field.
When overloading is enabled, this is equivalent to
set
rectangle [ #y:=
value ]