Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
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.
Methods
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