gi-clutter-1.0.6: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Structs.PathNode

Description

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

Exported types

newtype PathNode Source #

Memory-managed wrapper type.

Constructors

PathNode (ManagedPtr PathNode) 

Instances

Instances details
Eq PathNode Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

GBoxed PathNode Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

ManagedPtrNewtype PathNode Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

Methods

toManagedPtr :: PathNode -> ManagedPtr PathNode

TypedObject PathNode Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

Methods

glibType :: IO GType

HasParentTypes PathNode Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

tag ~ 'AttrSet => Constructible PathNode tag Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

Methods

new :: MonadIO m => (ManagedPtr PathNode -> PathNode) -> [AttrOp PathNode tag] -> m PathNode

IsGValue (Maybe PathNode) Source #

Convert PathNode to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Structs.PathNode

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe PathNode -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe PathNode)

type ParentTypes PathNode Source # 
Instance details

Defined in GI.Clutter.Structs.PathNode

type ParentTypes PathNode = '[] :: [Type]

newZeroPathNode :: MonadIO m => m PathNode Source #

Construct a PathNode struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, equal, free.

Getters

None.

Setters

None.

copy

pathNodeCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PathNode

node: a PathNode

-> m PathNode

Returns: the copied node.

Makes an allocated copy of a node.

Since: 1.0

equal

pathNodeEqual Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PathNode

nodeA: First node

-> PathNode

nodeB: Second node

-> m Bool

Returns: True if the nodes are the same.

Compares two nodes and checks if they are the same type with the same coordinates.

Since: 1.0

free

pathNodeFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PathNode

node: a 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 ]