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 |
A data structure for holding a rectangle. Those coordinates are relative to the component top-level parent.
- newtype Rectangle = Rectangle (ForeignPtr Rectangle)
- newZeroRectangle :: MonadIO m => m Rectangle
- noRectangle :: Maybe Rectangle
- rectangleHeight :: AttrLabelProxy "height"
- rectangleReadHeight :: MonadIO m => Rectangle -> m Int32
- rectangleWriteHeight :: MonadIO m => Rectangle -> Int32 -> m ()
- rectangleReadWidth :: MonadIO m => Rectangle -> m Int32
- rectangleWidth :: AttrLabelProxy "width"
- rectangleWriteWidth :: MonadIO m => Rectangle -> Int32 -> m ()
- rectangleReadX :: MonadIO m => Rectangle -> m Int32
- rectangleWriteX :: MonadIO m => Rectangle -> Int32 -> m ()
- rectangleX :: AttrLabelProxy "x"
- rectangleReadY :: MonadIO m => Rectangle -> m Int32
- rectangleWriteY :: MonadIO m => Rectangle -> Int32 -> m ()
- rectangleY :: AttrLabelProxy "y"
Exported types
BoxedObject Rectangle | |
(~) AttrOpTag tag AttrSet => Constructible Rectangle tag | |
((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabelProxy t (Rectangle -> p) | |
type AttributeList Rectangle |
newZeroRectangle :: MonadIO m => m Rectangle Source
Construct a Rectangle
struct initialized to zero.
Properties
Height
rectangleHeight :: AttrLabelProxy "height" Source
rectangleReadHeight :: MonadIO m => Rectangle -> m Int32 Source
rectangleWriteHeight :: MonadIO m => Rectangle -> Int32 -> m () Source
Width
rectangleReadWidth :: MonadIO m => Rectangle -> m Int32 Source
rectangleWidth :: AttrLabelProxy "width" Source
rectangleWriteWidth :: MonadIO m => Rectangle -> Int32 -> m () Source
X
rectangleReadX :: MonadIO m => Rectangle -> m Int32 Source
rectangleWriteX :: MonadIO m => Rectangle -> Int32 -> m () Source
rectangleX :: AttrLabelProxy "x" Source
Y
rectangleReadY :: MonadIO m => Rectangle -> m Int32 Source
rectangleWriteY :: MonadIO m => Rectangle -> Int32 -> m () Source
rectangleY :: AttrLabelProxy "y" Source