Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gsk.Objects.TextNode
Description
No description available in the introspection data.
Synopsis
- newtype TextNode = TextNode (ManagedPtr TextNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf TextNode o) => IsTextNode o
- toTextNode :: (MonadIO m, IsTextNode o) => o -> m TextNode
- textNodeGetNumGlyphs :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> m Word32
- textNodeGetOffset :: (HasCallStack, MonadIO m, IsTextNode a) => a -> m Point
- textNodeNew :: (HasCallStack, MonadIO m, IsFont a) => a -> GlyphString -> RGBA -> Point -> m (Maybe TextNode)
- textNodePeekColor :: (HasCallStack, MonadIO m, IsTextNode a) => a -> m RGBA
- textNodePeekFont :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> m Font
- textNodePeekGlyphs :: (HasCallStack, MonadIO m, IsTextNode a) => a -> m [GlyphInfo]
Exported types
Memory-managed wrapper type.
Constructors
TextNode (ManagedPtr TextNode) |
Instances
Eq TextNode Source # | |
ManagedPtrNewtype TextNode Source # | |
Defined in GI.Gsk.Objects.TextNode Methods toManagedPtr :: TextNode -> ManagedPtr TextNode # | |
BoxedPtr TextNode Source # | |
Defined in GI.Gsk.Objects.TextNode | |
TypedObject TextNode Source # | |
Defined in GI.Gsk.Objects.TextNode | |
HasParentTypes TextNode Source # | |
Defined in GI.Gsk.Objects.TextNode | |
type ParentTypes TextNode Source # | |
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
(BoxedPtr o, TypedObject o, IsDescendantOf TextNode o) => IsTextNode o Source # | |
Defined in GI.Gsk.Objects.TextNode |
toTextNode :: (MonadIO m, IsTextNode o) => o -> m TextNode Source #
Methods
Overloaded methods
getNumGlyphs
textNodeGetNumGlyphs :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> m Word32 Source #
No description available in the introspection data.
getOffset
Arguments
:: (HasCallStack, MonadIO m, IsTextNode a) | |
=> a |
|
-> m Point | Returns: a point with the horizontal and vertical offsets |
Retrieves the offset applied to the text.
new
Arguments
:: (HasCallStack, MonadIO m, IsFont a) | |
=> a |
|
-> GlyphString |
|
-> RGBA |
|
-> Point |
|
-> m (Maybe TextNode) | Returns: a new |
Creates a render node that renders the given glyphs,
Note that color
may not be used if the font contains
color glyphs.
peekColor
Arguments
:: (HasCallStack, MonadIO m, IsTextNode a) | |
=> a |
|
-> m RGBA | Returns: the text color |
Retrieves the color used by the text node
.
peekFont
Arguments
:: (HasCallStack, MonadIO m, IsRenderNode a) | |
=> a |
|
-> m Font | Returns: the font |
Returns the font used by the text node
.
peekGlyphs
Arguments
:: (HasCallStack, MonadIO m, IsTextNode a) | |
=> a |
|
-> m [GlyphInfo] | Returns: the glyph information |
Retrieves the glyph information in the node
.