gi-gsk-4.0.2: Gsk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gsk.Objects.TextNode

Description

No description available in the introspection data.

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.Gsk.Objects.TextNode

ManagedPtrNewtype TextNode Source # 
Instance details

Defined in GI.Gsk.Objects.TextNode

BoxedPtr TextNode Source # 
Instance details

Defined in GI.Gsk.Objects.TextNode

TypedObject TextNode Source # 
Instance details

Defined in GI.Gsk.Objects.TextNode

Methods

glibType :: IO GType #

HasParentTypes TextNode Source # 
Instance details

Defined in GI.Gsk.Objects.TextNode

type ParentTypes TextNode Source # 
Instance details

Defined in GI.Gsk.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.Gsk.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

Overloaded methods

getNumGlyphs

textNodeGetNumGlyphs :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> m Word32 Source #

No description available in the introspection data.

getOffset

textNodeGetOffset Source #

Arguments

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

node: a text RenderNode

-> m Point

Returns: a point with the horizontal and vertical offsets

Retrieves the offset applied to the text.

new

textNodeNew Source #

Arguments

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

font: the Font containing the glyphs

-> GlyphString

glyphs: the GlyphString to render

-> RGBA

color: the foreground color to render with

-> Point

offset: offset of the baseline

-> m (Maybe TextNode)

Returns: a new RenderNode

Creates a render node that renders the given glyphs, Note that color may not be used if the font contains color glyphs.

peekColor

textNodePeekColor Source #

Arguments

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

node: a text RenderNode

-> m RGBA

Returns: the text color

Retrieves the color used by the text node.

peekFont

textNodePeekFont Source #

Arguments

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

node: The RenderNode

-> m Font

Returns: the font

Returns the font used by the text node.

peekGlyphs

textNodePeekGlyphs Source #

Arguments

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

node: a text RenderNode

-> m [GlyphInfo]

Returns: the glyph information

Retrieves the glyph information in the node.