| 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 |
GI.Poppler.Structs.TextSpan
Description
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 Methods 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 Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TextSpan -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => TextSpan |
|
| -> m TextSpan | Returns: A new |
Makes a copy of a text span.
Since: 0.26
free
Arguments
| :: (HasCallStack, MonadIO m) | |
| => TextSpan |
|
| -> m () |
Frees a text span.
Since: 0.26
getColor
Arguments
| :: (HasCallStack, MonadIO m) | |
| => TextSpan |
|
| -> m Color |
Obtains the color in which the text is to be rendered.
Since: 0.26
getFontName
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => TextSpan |
|
| -> m Text | Returns: A string. |
Obtains the text contained in the span.
Since: 0.26
isBoldFont
Arguments
| :: (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 #
Arguments
| :: (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
Arguments
| :: (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