Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
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.
- newtype Rectangle = Rectangle (ManagedPtr Rectangle)
- newZeroRectangle :: MonadIO m => m Rectangle
- noRectangle :: Maybe Rectangle
- 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
Constructors
Rectangle (ManagedPtr Rectangle) |
Instances
BoxedObject Rectangle # | |
(~) AttrOpTag tag AttrSet => Constructible Rectangle tag # | |
((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabel t (Rectangle -> p) # | |
((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabelProxy t (Rectangle -> p) # | |
HasAttributeList * Rectangle # | |
type AttributeList Rectangle # | |
newZeroRectangle :: MonadIO m => m Rectangle #
Construct a Rectangle
struct initialized to zero.
Properties
height
getRectangleHeight :: MonadIO m => Rectangle -> m Int32 #
rectangle_height :: AttrLabelProxy "height" #
setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m () #
width
getRectangleWidth :: MonadIO m => Rectangle -> m Int32 #
rectangle_width :: AttrLabelProxy "width" #
setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m () #
x
getRectangleX :: MonadIO m => Rectangle -> m Int32 #
rectangle_x :: AttrLabelProxy "x" #
setRectangleX :: MonadIO m => Rectangle -> Int32 -> m () #
y
getRectangleY :: MonadIO m => Rectangle -> m Int32 #
rectangle_y :: AttrLabelProxy "y" #
setRectangleY :: MonadIO m => Rectangle -> Int32 -> m () #