gi-clutter-1.0.5: 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.Objects.PaintNode

Description

The ClutterPaintNode structure contains only private data and it should be accessed using the provided API.

Since: 1.10

Synopsis

Exported types

newtype PaintNode Source #

Memory-managed wrapper type.

Constructors

PaintNode (ManagedPtr PaintNode) 

Instances

Instances details
Eq PaintNode Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

BoxedPtr PaintNode Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

ManagedPtrNewtype PaintNode Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

Methods

toManagedPtr :: PaintNode -> ManagedPtr PaintNode

TypedObject PaintNode Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

Methods

glibType :: IO GType

HasParentTypes PaintNode Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

IsGValue (Maybe PaintNode) Source #

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

Instance details

Defined in GI.Clutter.Objects.PaintNode

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes PaintNode Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

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

class (BoxedPtr o, TypedObject o, IsDescendantOf PaintNode o) => IsPaintNode o Source #

Type class for types which can be safely cast to PaintNode, for instance with toPaintNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf PaintNode o) => IsPaintNode o Source # 
Instance details

Defined in GI.Clutter.Objects.PaintNode

toPaintNode :: (MonadIO m, IsPaintNode o) => o -> m PaintNode Source #

Cast to PaintNode, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

addChild, addRectangle, addTextureRectangle, ref, unref.

Getters

None.

Setters

setName.

addChild

paintNodeAddChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsPaintNode a, IsPaintNode b) 
=> a

node: a PaintNode

-> b

child: the child PaintNode to add

-> m () 

Adds child to the list of children of node.

This function will acquire a reference on child.

Since: 1.10

addRectangle

paintNodeAddRectangle Source #

Arguments

:: (HasCallStack, MonadIO m, IsPaintNode a) 
=> a

node: a PaintNode

-> ActorBox

rect: a ActorBox

-> m () 

Adds a rectangle region to the node, as described by the passed rect.

Since: 1.10

addTextureRectangle

paintNodeAddTextureRectangle Source #

Arguments

:: (HasCallStack, MonadIO m, IsPaintNode a) 
=> a

node: a PaintNode

-> ActorBox

rect: a ActorBox

-> Float

x1: the left X coordinate of the texture

-> Float

y1: the top Y coordinate of the texture

-> Float

x2: the right X coordinate of the texture

-> Float

y2: the bottom Y coordinate of the texture

-> m () 

Adds a rectangle region to the node, with texture coordinates.

Since: 1.10

ref

paintNodeRef Source #

Arguments

:: (HasCallStack, MonadIO m, IsPaintNode a) 
=> a

node: a PaintNode

-> m PaintNode

Returns: the PaintNode

Acquires a reference on node.

Since: 1.10

setName

paintNodeSetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsPaintNode a) 
=> a

node: a PaintNode

-> Text

name: a string annotating the node

-> m () 

Sets a user-readable name for node.

The name will be used for debugging purposes.

The node will copy the passed string.

Since: 1.10

unref

paintNodeUnref Source #

Arguments

:: (HasCallStack, MonadIO m, IsPaintNode a) 
=> a

node: a PaintNode

-> m () 

Releases a reference on node.

Since: 1.10