| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.IBus.Structs.Rectangle
Description
Rectangle definition.
Synopsis
- newtype Rectangle = Rectangle (ManagedPtr Rectangle)
- newZeroRectangle :: MonadIO m => m Rectangle
- getRectangleHeight :: MonadIO m => Rectangle -> m Int32
- setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m ()
- getRectangleWidth :: MonadIO m => Rectangle -> m Int32
- setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m ()
- getRectangleX :: MonadIO m => Rectangle -> m Int32
- setRectangleX :: MonadIO m => Rectangle -> Int32 -> m ()
- getRectangleY :: MonadIO m => Rectangle -> m Int32
- setRectangleY :: MonadIO m => Rectangle -> Int32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq Rectangle Source # | |
| BoxedPtr Rectangle Source # | |
Defined in GI.IBus.Structs.Rectangle | |
| CallocPtr Rectangle Source # | |
Defined in GI.IBus.Structs.Rectangle Methods boxedPtrCalloc :: IO (Ptr Rectangle) | |
| ManagedPtrNewtype Rectangle Source # | |
Defined in GI.IBus.Structs.Rectangle Methods toManagedPtr :: Rectangle -> ManagedPtr Rectangle | |
| tag ~ 'AttrSet => Constructible Rectangle tag Source # | |
newZeroRectangle :: MonadIO m => m Rectangle Source #
Construct a Rectangle struct initialized to zero.
Methods
Overloaded methods
Properties
height
height of the renctangl.
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
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
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.
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
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.
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
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 ]