Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
A Point
is used to describe a location point on a page
Synopsis
- newtype Point = Point (ManagedPtr Point)
- newZeroPoint :: MonadIO m => m Point
- noPoint :: Maybe Point
- pointCopy :: (HasCallStack, MonadIO m) => Point -> m Point
- pointFree :: (HasCallStack, MonadIO m) => Point -> m ()
- pointNew :: (HasCallStack, MonadIO m) => m Point
- getPointX :: MonadIO m => Point -> m Double
- setPointX :: MonadIO m => Point -> Double -> m ()
- getPointY :: MonadIO m => Point -> m Double
- setPointY :: MonadIO m => Point -> Double -> m ()
Exported types
Memory-managed wrapper type.
Instances
BoxedObject Point Source # | |
tag ~ AttrSet => Constructible Point tag Source # | |
Defined in GI.Poppler.Structs.Point |
Methods
copy
:: (HasCallStack, MonadIO m) | |
=> Point |
|
-> m Point | Returns: a new allocated copy of |
Creates a copy of point
. The copy must be freed with pointFree
after use.
Since: 0.26
free
:: (HasCallStack, MonadIO m) | |
=> Point |
|
-> m () |
Frees the memory used by point
Since: 0.26
new
:: (HasCallStack, MonadIO m) | |
=> m Point | Returns: a new |
Properties
x
x coordinate
getPointX :: MonadIO m => Point -> m Double Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
point #x
setPointX :: MonadIO m => Point -> Double -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
point [ #x:=
value ]
y
y coordinate