Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A Quadrilateral
is used to describe rectangle-like polygon
with arbitrary inclination on a page.
Since: 0.26
Synopsis
- newtype Quadrilateral = Quadrilateral (ManagedPtr Quadrilateral)
- newZeroQuadrilateral :: MonadIO m => m Quadrilateral
- quadrilateralCopy :: (HasCallStack, MonadIO m) => Quadrilateral -> m Quadrilateral
- quadrilateralFree :: (HasCallStack, MonadIO m) => Quadrilateral -> m ()
- quadrilateralNew :: (HasCallStack, MonadIO m) => m Quadrilateral
- getQuadrilateralP1 :: MonadIO m => Quadrilateral -> m Point
- getQuadrilateralP2 :: MonadIO m => Quadrilateral -> m Point
- getQuadrilateralP3 :: MonadIO m => Quadrilateral -> m Point
- getQuadrilateralP4 :: MonadIO m => Quadrilateral -> m Point
Exported types
newtype Quadrilateral Source #
Memory-managed wrapper type.
Quadrilateral (ManagedPtr Quadrilateral) |
Instances
newZeroQuadrilateral :: MonadIO m => m Quadrilateral Source #
Construct a Quadrilateral
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
copy
:: (HasCallStack, MonadIO m) | |
=> Quadrilateral |
|
-> m Quadrilateral | Returns: a new allocated copy of |
Creates a copy of quad
. The copy must be freed with quadrilateralFree
after use.
Since: 0.26
free
:: (HasCallStack, MonadIO m) | |
=> Quadrilateral |
|
-> m () |
Frees the memory used by quad
Since: 0.26
new
:: (HasCallStack, MonadIO m) | |
=> m Quadrilateral | Returns: a new |
Creates a new Quadrilateral
. It must be freed with quadrilateralFree
after use.
Since: 0.26
Properties
p1
a Point
with the first vertex coordinates
getQuadrilateralP1 :: MonadIO m => Quadrilateral -> m Point Source #
Get the value of the “p1
” field.
When overloading is enabled, this is equivalent to
get
quadrilateral #p1
p2
a Point
with the second vertex coordinates
getQuadrilateralP2 :: MonadIO m => Quadrilateral -> m Point Source #
Get the value of the “p2
” field.
When overloading is enabled, this is equivalent to
get
quadrilateral #p2
p3
a Point
with the third vertex coordinates
getQuadrilateralP3 :: MonadIO m => Quadrilateral -> m Point Source #
Get the value of the “p3
” field.
When overloading is enabled, this is equivalent to
get
quadrilateral #p3
p4
a Point
with the fourth vertex coordinates
getQuadrilateralP4 :: MonadIO m => Quadrilateral -> m Point Source #
Get the value of the “p4
” field.
When overloading is enabled, this is equivalent to
get
quadrilateral #p4