| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Poppler.Structs.TextSpan
Contents
Description
No description available in the introspection data.
Synopsis
- newtype TextSpan = TextSpan (ManagedPtr TextSpan)
- noTextSpan :: Maybe 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.
Constructors
| TextSpan (ManagedPtr TextSpan) |
Instances
| BoxedObject TextSpan Source # | |
Methods
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