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 |
Defines the position and size of a rectangle. It is identical to #cairo_rectangle_int_t.
- newtype Rectangle = Rectangle (ForeignPtr Rectangle)
- newZeroRectangle :: MonadIO m => m Rectangle
- noRectangle :: Maybe Rectangle
- data RectangleIntersectMethodInfo
- rectangleIntersect :: MonadIO m => Rectangle -> Rectangle -> m (Bool, Rectangle)
- data RectangleUnionMethodInfo
- rectangleUnion :: MonadIO m => Rectangle -> Rectangle -> m 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 | |
((~) * signature (Rectangle -> m Rectangle), MonadIO m) => MethodInfo * RectangleUnionMethodInfo Rectangle signature | |
((~) * signature (Rectangle -> m (Bool, Rectangle)), MonadIO m) => MethodInfo * RectangleIntersectMethodInfo Rectangle signature | |
((~) * 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.
Methods
rectangleIntersect
data RectangleIntersectMethodInfo Source
((~) * signature (Rectangle -> m (Bool, Rectangle)), MonadIO m) => MethodInfo * RectangleIntersectMethodInfo Rectangle signature |
rectangleUnion
data RectangleUnionMethodInfo Source
((~) * signature (Rectangle -> m Rectangle), MonadIO m) => MethodInfo * RectangleUnionMethodInfo Rectangle signature |
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