Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype TextSpan = TextSpan (ManagedPtr TextSpan)
- textSpanCopy :: (HasCallStack, MonadIO m) => TextSpan -> m TextSpan
- textSpanFree :: (HasCallStack, MonadIO m) => TextSpan -> m ()
- textSpanGetColor :: (HasCallStack, MonadIO m) => TextSpan -> m Color
- textSpanGetFontName :: (HasCallStack, MonadIO m) => TextSpan -> m Text
- textSpanGetText :: (HasCallStack, MonadIO m) => TextSpan -> m Text
- textSpanIsBoldFont :: (HasCallStack, MonadIO m) => TextSpan -> m Bool
- textSpanIsFixedWidthFont :: (HasCallStack, MonadIO m) => TextSpan -> m Bool
- textSpanIsSerifFont :: (HasCallStack, MonadIO m) => TextSpan -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq TextSpan Source # | |
GBoxed TextSpan Source # | |
Defined in GI.Poppler.Structs.TextSpan | |
ManagedPtrNewtype TextSpan Source # | |
Defined in GI.Poppler.Structs.TextSpan toManagedPtr :: TextSpan -> ManagedPtr TextSpan # | |
TypedObject TextSpan Source # | |
Defined in GI.Poppler.Structs.TextSpan | |
HasParentTypes TextSpan Source # | |
Defined in GI.Poppler.Structs.TextSpan | |
IsGValue (Maybe TextSpan) Source # | Convert |
Defined in GI.Poppler.Structs.TextSpan | |
type ParentTypes TextSpan Source # | |
Defined in GI.Poppler.Structs.TextSpan |
Methods
Click to display all available methods, including inherited ones
Methods
copy, free, isBoldFont, isFixedWidthFont, isSerifFont.
Getters
getColor, getFontName, getText.
Setters
None.
copy
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m TextSpan | Returns: A new |
Makes a copy of a text span.
Since: 0.26
free
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m () |
Frees a text span.
Since: 0.26
getColor
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m Color |
Obtains the color in which the text is to be rendered.
Since: 0.26
getFontName
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m Text | Returns: A string containing the font name, or
|
Obtains the name of the font in which the span is to be rendered.
Since: 0.26
getText
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m Text | Returns: A string. |
Obtains the text contained in the span.
Since: 0.26
isBoldFont
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m Bool | Returns: Whether the span uses bold font. |
Check whether a text span is meant to be rendered using a bold font.
Since: 0.26
isFixedWidthFont
textSpanIsFixedWidthFont Source #
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m Bool | Returns: Whether the span uses a fixed-width font. |
Check wether a text span is meant to be rendered using a fixed-width font.
Since: 0.26
isSerifFont
:: (HasCallStack, MonadIO m) | |
=> TextSpan |
|
-> m Bool | Returns: Whether the span uses a serif font. |
Check whether a text span is meant to be rendered using a serif font.
Since: 0.26