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)
- noRectangle :: Maybe Rectangle
- rectangleIntersect :: MonadIO m => Rectangle -> Rectangle -> m (Bool, Rectangle)
- 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
Methods
rectangleIntersect
rectangleUnion
Properties
Height
Width
rectangleReadWidth :: Rectangle -> IO Int32 Source
X
rectangleReadX :: Rectangle -> IO Int32 Source
Y
rectangleReadY :: Rectangle -> IO Int32 Source