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 |
Represents a single node of a Path
.
Some of the coordinates in points
may be unused for some node
types. PathNodeTypeMoveTo
and PathNodeTypeLineTo
use only one
pair of coordinates, PathNodeTypeCurveTo
uses all three and
PathNodeTypeClose
uses none.
Since: 1.0
Synopsis
- newtype PathNode = PathNode (ManagedPtr PathNode)
- newZeroPathNode :: MonadIO m => m PathNode
- pathNodeCopy :: (HasCallStack, MonadIO m) => PathNode -> m PathNode
- pathNodeEqual :: (HasCallStack, MonadIO m) => PathNode -> PathNode -> m Bool
- pathNodeFree :: (HasCallStack, MonadIO m) => PathNode -> m ()
- getPathNodeType :: MonadIO m => PathNode -> m PathNodeType
- setPathNodeType :: MonadIO m => PathNode -> PathNodeType -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq PathNode Source # | |
GBoxed PathNode Source # | |
Defined in GI.Clutter.Structs.PathNode | |
ManagedPtrNewtype PathNode Source # | |
Defined in GI.Clutter.Structs.PathNode toManagedPtr :: PathNode -> ManagedPtr PathNode | |
TypedObject PathNode Source # | |
Defined in GI.Clutter.Structs.PathNode | |
HasParentTypes PathNode Source # | |
Defined in GI.Clutter.Structs.PathNode | |
tag ~ 'AttrSet => Constructible PathNode tag Source # | |
IsGValue (Maybe PathNode) Source # | Convert |
Defined in GI.Clutter.Structs.PathNode gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe PathNode -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe PathNode) | |
type ParentTypes PathNode Source # | |
Defined in GI.Clutter.Structs.PathNode |
Methods
Click to display all available methods, including inherited ones
copy
:: (HasCallStack, MonadIO m) | |
=> PathNode |
|
-> m PathNode | Returns: the copied node. |
Makes an allocated copy of a node.
Since: 1.0
equal
:: (HasCallStack, MonadIO m) | |
=> PathNode |
|
-> PathNode |
|
-> m Bool | Returns: |
Compares two nodes and checks if they are the same type with the same coordinates.
Since: 1.0
free
:: (HasCallStack, MonadIO m) | |
=> PathNode |
|
-> m () |
Frees the memory of an allocated node.
Since: 1.0
Properties
type
the node's type
getPathNodeType :: MonadIO m => PathNode -> m PathNodeType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
pathNode #type
setPathNodeType :: MonadIO m => PathNode -> PathNodeType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
pathNode [ #type:=
value ]