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
- rectangleReadHeight :: Rectangle -> IO Int32
- rectangleReadWidth :: Rectangle -> IO Int32
- rectangleReadX :: Rectangle -> IO Int32
- rectangleReadY :: Rectangle -> IO Int32
Exported types
BoxedObject Rectangle Source | |
((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabel t (Rectangle -> p) Source | |
((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabelProxy t (Rectangle -> p) Source | |
((~) (TYPE Lifted) signature (Rectangle -> m Rectangle), MonadIO m) => MethodInfo (TYPE Lifted) RectangleUnionMethodInfo Rectangle signature Source | |
((~) (TYPE Lifted) signature (Rectangle -> m (Bool, Rectangle)), MonadIO m) => MethodInfo (TYPE Lifted) RectangleIntersectMethodInfo Rectangle signature Source | |
newZeroRectangle :: MonadIO m => m Rectangle Source
Construct a Rectangle
struct initialized to zero.
Methods
rectangleIntersect
rectangleUnion
Properties
Height
Width
rectangleReadWidth :: Rectangle -> IO Int32 Source
X
rectangleReadX :: Rectangle -> IO Int32 Source
Y
rectangleReadY :: Rectangle -> IO Int32 Source