Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
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
- 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
Eq Point Source # | |
GBoxed Point Source # | |
Defined in GI.Poppler.Structs.Point | |
ManagedPtrNewtype Point Source # | |
Defined in GI.Poppler.Structs.Point toManagedPtr :: Point -> ManagedPtr Point | |
TypedObject Point Source # | |
Defined in GI.Poppler.Structs.Point glibType :: IO GType | |
IsGValue Point Source # | Convert |
Defined in GI.Poppler.Structs.Point toGValue :: Point -> IO GValue fromGValue :: GValue -> IO Point | |
HasParentTypes Point Source # | |
Defined in GI.Poppler.Structs.Point | |
tag ~ 'AttrSet => Constructible Point tag Source # | |
type ParentTypes Point Source # | |
Defined in GI.Poppler.Structs.Point type ParentTypes Point = '[] :: [Type] |
Methods
Overloaded 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
Frees the memory used by point
Since: 0.26
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