| 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.TextRectangle
Contents
Description
A structure used to store a rectangle used by AtkText.
Synopsis
- newtype TextRectangle = TextRectangle (ManagedPtr TextRectangle)
- newZeroTextRectangle :: MonadIO m => m TextRectangle
- type family ResolveTextRectangleMethod (t :: Symbol) o where ...
- getTextRectangleHeight :: MonadIO m => TextRectangle -> m Int32
- setTextRectangleHeight :: MonadIO m => TextRectangle -> Int32 -> m ()
- textRectangle_height :: AttrLabelProxy "height"
- getTextRectangleWidth :: MonadIO m => TextRectangle -> m Int32
- setTextRectangleWidth :: MonadIO m => TextRectangle -> Int32 -> m ()
- textRectangle_width :: AttrLabelProxy "width"
- getTextRectangleX :: MonadIO m => TextRectangle -> m Int32
- setTextRectangleX :: MonadIO m => TextRectangle -> Int32 -> m ()
- textRectangle_x :: AttrLabelProxy "x"
- getTextRectangleY :: MonadIO m => TextRectangle -> m Int32
- setTextRectangleY :: MonadIO m => TextRectangle -> Int32 -> m ()
- textRectangle_y :: AttrLabelProxy "y"
Exported types
newtype TextRectangle Source #
Memory-managed wrapper type.
Constructors
| TextRectangle (ManagedPtr TextRectangle) |
Instances
newZeroTextRectangle :: MonadIO m => m TextRectangle Source #
Construct a TextRectangle struct initialized to zero.
Methods
type family ResolveTextRectangleMethod (t :: Symbol) o where ... Source #
Equations
| ResolveTextRectangleMethod l o = MethodResolutionFailed l o :: Type |
Properties
height
The height of a rectangle
getTextRectangleHeight :: MonadIO m => TextRectangle -> m Int32 Source #
Get the value of the “height” field.
When overloading is enabled, this is equivalent to
get textRectangle #height
setTextRectangleHeight :: MonadIO m => TextRectangle -> Int32 -> m () Source #
Set the value of the “height” field.
When overloading is enabled, this is equivalent to
settextRectangle [ #height:=value ]
textRectangle_height :: AttrLabelProxy "height" Source #
width
The width of a rectangle
getTextRectangleWidth :: MonadIO m => TextRectangle -> m Int32 Source #
Get the value of the “width” field.
When overloading is enabled, this is equivalent to
get textRectangle #width
setTextRectangleWidth :: MonadIO m => TextRectangle -> Int32 -> m () Source #
Set the value of the “width” field.
When overloading is enabled, this is equivalent to
settextRectangle [ #width:=value ]
textRectangle_width :: AttrLabelProxy "width" Source #
x
The horizontal coordinate of a rectangle
getTextRectangleX :: MonadIO m => TextRectangle -> m Int32 Source #
Get the value of the “x” field.
When overloading is enabled, this is equivalent to
get textRectangle #x
setTextRectangleX :: MonadIO m => TextRectangle -> Int32 -> m () Source #
Set the value of the “x” field.
When overloading is enabled, this is equivalent to
settextRectangle [ #x:=value ]
textRectangle_x :: AttrLabelProxy "x" Source #
y
The vertical coordinate of a rectangle
getTextRectangleY :: MonadIO m => TextRectangle -> m Int32 Source #
Get the value of the “y” field.
When overloading is enabled, this is equivalent to
get textRectangle #y
setTextRectangleY :: MonadIO m => TextRectangle -> Int32 -> m () Source #
Set the value of the “y” field.
When overloading is enabled, this is equivalent to
settextRectangle [ #y:=value ]
textRectangle_y :: AttrLabelProxy "y" Source #