| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Atk.Structs.Rectangle
Contents
Description
A data structure for holding a rectangle. Those coordinates are relative to the component top-level parent.
Synopsis
- newtype Rectangle = Rectangle (ManagedPtr Rectangle)
- newZeroRectangle :: MonadIO m => m Rectangle
- type family ResolveRectangleMethod (t :: Symbol) o where ...
- getRectangleHeight :: MonadIO m => Rectangle -> m Int32
- rectangle_height :: AttrLabelProxy "height"
- setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m ()
- getRectangleWidth :: MonadIO m => Rectangle -> m Int32
- rectangle_width :: AttrLabelProxy "width"
- setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m ()
- getRectangleX :: MonadIO m => Rectangle -> m Int32
- rectangle_x :: AttrLabelProxy "x"
- setRectangleX :: MonadIO m => Rectangle -> Int32 -> m ()
- getRectangleY :: MonadIO m => Rectangle -> m Int32
- rectangle_y :: AttrLabelProxy "y"
- setRectangleY :: MonadIO m => Rectangle -> Int32 -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| Rectangle (ManagedPtr Rectangle) |
Instances
newZeroRectangle :: MonadIO m => m Rectangle Source #
Construct a Rectangle struct initialized to zero.
Methods
type family ResolveRectangleMethod (t :: Symbol) o where ... Source #
Equations
| ResolveRectangleMethod l o = MethodResolutionFailed l o :: Type |
Properties
height
height of the rectangle.
getRectangleHeight :: MonadIO m => Rectangle -> m Int32 Source #
Get the value of the “height” field.
When overloading is enabled, this is equivalent to
get rectangle #height
rectangle_height :: AttrLabelProxy "height" Source #
setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m () Source #
Set the value of the “height” field.
When overloading is enabled, this is equivalent to
setrectangle [ #height:=value ]
width
width of the rectangle.
getRectangleWidth :: MonadIO m => Rectangle -> m Int32 Source #
Get the value of the “width” field.
When overloading is enabled, this is equivalent to
get rectangle #width
rectangle_width :: AttrLabelProxy "width" Source #
setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m () Source #
Set the value of the “width” field.
When overloading is enabled, this is equivalent to
setrectangle [ #width:=value ]
x
X coordinate of the left side of the rectangle.
getRectangleX :: MonadIO m => Rectangle -> m Int32 Source #
Get the value of the “x” field.
When overloading is enabled, this is equivalent to
get rectangle #x
rectangle_x :: AttrLabelProxy "x" Source #
setRectangleX :: MonadIO m => Rectangle -> Int32 -> m () Source #
Set the value of the “x” field.
When overloading is enabled, this is equivalent to
setrectangle [ #x:=value ]
y
Y coordinate of the top side of the rectangle.
getRectangleY :: MonadIO m => Rectangle -> m Int32 Source #
Get the value of the “y” field.
When overloading is enabled, this is equivalent to
get rectangle #y
rectangle_y :: AttrLabelProxy "y" Source #
setRectangleY :: MonadIO m => Rectangle -> Int32 -> m () Source #
Set the value of the “y” field.
When overloading is enabled, this is equivalent to
setrectangle [ #y:=value ]