| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Poppler.Structs.Point
Contents
Description
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 Methods toManagedPtr :: Point -> ManagedPtr Point | |
| TypedObject Point Source # | |
Defined in GI.Poppler.Structs.Point | |
| HasParentTypes Point Source # | |
Defined in GI.Poppler.Structs.Point | |
| tag ~ 'AttrSet => Constructible Point tag Source # | |
| IsGValue (Maybe Point) Source # | Convert |
Defined in GI.Poppler.Structs.Point Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Point -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Point) | |
| type ParentTypes Point Source # | |
Defined in GI.Poppler.Structs.Point | |
Methods
Click to display all available methods, including inherited ones
copy
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Point |
|
| -> m () |
Frees the memory used by point
Since: 0.26
new
Arguments
| :: (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
setpoint [ #x:=value ]
y
y coordinate