gi-clutter-1.0.2: 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.TextNode

Description

The TextNode structure is an opaque type whose members cannot be directly accessed.

Since: 1.10

Synopsis

Exported types

newtype TextNode Source #

Memory-managed wrapper type.

Constructors

TextNode (ManagedPtr TextNode) 

Instances

Instances details
Eq TextNode Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

BoxedPtr TextNode Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

ManagedPtrNewtype TextNode Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

TypedObject TextNode Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

Methods

glibType :: IO GType #

HasParentTypes TextNode Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

type ParentTypes TextNode Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

class (BoxedPtr o, TypedObject o, IsDescendantOf TextNode o) => IsTextNode o Source #

Type class for types which can be safely cast to TextNode, for instance with toTextNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf TextNode o) => IsTextNode o Source # 
Instance details

Defined in GI.Clutter.Objects.TextNode

toTextNode :: (MonadIO m, IsTextNode o) => o -> m TextNode Source #

Cast to TextNode, 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.

new

textNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsLayout a) 
=> Maybe a

layout: a Layout, or Nothing

-> Maybe Color

color: the color used to paint the layout, or Nothing

-> m PaintNode

Returns: the newly created PaintNode. Use paintNodeUnref when done

Creates a new PaintNode that will paint a Layout with the given color.

This function takes a reference on the passed layout, so it is safe to call objectUnref after it returns.

Since: 1.10