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.TextAttributes
Contents
Description
A TextAttributes
is used to describe text attributes of a range of text
- newtype TextAttributes = TextAttributes (ManagedPtr TextAttributes)
- newZeroTextAttributes :: MonadIO m => m TextAttributes
- noTextAttributes :: Maybe TextAttributes
- textAttributesCopy :: (HasCallStack, MonadIO m) => TextAttributes -> m TextAttributes
- textAttributesFree :: (HasCallStack, MonadIO m) => TextAttributes -> m ()
- textAttributesNew :: (HasCallStack, MonadIO m) => m TextAttributes
- getTextAttributesColor :: MonadIO m => TextAttributes -> m Color
- getTextAttributesEndIndex :: MonadIO m => TextAttributes -> m Int32
- setTextAttributesEndIndex :: MonadIO m => TextAttributes -> Int32 -> m ()
- clearTextAttributesFontName :: MonadIO m => TextAttributes -> m ()
- getTextAttributesFontName :: MonadIO m => TextAttributes -> m (Maybe Text)
- setTextAttributesFontName :: MonadIO m => TextAttributes -> CString -> m ()
- getTextAttributesFontSize :: MonadIO m => TextAttributes -> m Double
- setTextAttributesFontSize :: MonadIO m => TextAttributes -> Double -> m ()
- getTextAttributesIsUnderlined :: MonadIO m => TextAttributes -> m Bool
- setTextAttributesIsUnderlined :: MonadIO m => TextAttributes -> Bool -> m ()
- getTextAttributesStartIndex :: MonadIO m => TextAttributes -> m Int32
- setTextAttributesStartIndex :: MonadIO m => TextAttributes -> Int32 -> m ()
Exported types
newtype TextAttributes Source #
Constructors
TextAttributes (ManagedPtr TextAttributes) |
Instances
BoxedObject TextAttributes Source # | |
(~) AttrOpTag tag AttrSet => Constructible TextAttributes tag Source # | |
newZeroTextAttributes :: MonadIO m => m TextAttributes Source #
Construct a TextAttributes
struct initialized to zero.
Methods
copy
Arguments
:: (HasCallStack, MonadIO m) | |
=> TextAttributes |
|
-> m TextAttributes | Returns: a new allocated copy of |
Creates a copy of textAttrs
Since: 0.18
free
Arguments
:: (HasCallStack, MonadIO m) | |
=> TextAttributes |
|
-> m () |
Frees the given TextAttributes
Since: 0.18
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m TextAttributes | Returns: a new |
Creates a new TextAttributes
Since: 0.18
Properties
color
getTextAttributesColor :: MonadIO m => TextAttributes -> m Color Source #
endIndex
getTextAttributesEndIndex :: MonadIO m => TextAttributes -> m Int32 Source #
setTextAttributesEndIndex :: MonadIO m => TextAttributes -> Int32 -> m () Source #
fontName
clearTextAttributesFontName :: MonadIO m => TextAttributes -> m () Source #
getTextAttributesFontName :: MonadIO m => TextAttributes -> m (Maybe Text) Source #
setTextAttributesFontName :: MonadIO m => TextAttributes -> CString -> m () Source #
fontSize
getTextAttributesFontSize :: MonadIO m => TextAttributes -> m Double Source #
setTextAttributesFontSize :: MonadIO m => TextAttributes -> Double -> m () Source #
isUnderlined
getTextAttributesIsUnderlined :: MonadIO m => TextAttributes -> m Bool Source #
setTextAttributesIsUnderlined :: MonadIO m => TextAttributes -> Bool -> m () Source #
startIndex
getTextAttributesStartIndex :: MonadIO m => TextAttributes -> m Int32 Source #
setTextAttributesStartIndex :: MonadIO m => TextAttributes -> Int32 -> m () Source #