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 |
A #PopplerTextAttributes is used to describe text attributes of a range of text
- newtype TextAttributes = TextAttributes (ForeignPtr TextAttributes)
- newZeroTextAttributes :: MonadIO m => m TextAttributes
- noTextAttributes :: Maybe TextAttributes
- data TextAttributesCopyMethodInfo
- textAttributesCopy :: MonadIO m => TextAttributes -> m TextAttributes
- data TextAttributesFreeMethodInfo
- textAttributesFree :: MonadIO m => TextAttributes -> m ()
- textAttributesNew :: MonadIO m => m TextAttributes
- textAttributesClearColor :: MonadIO m => TextAttributes -> m ()
- textAttributesColor :: AttrLabelProxy "color"
- textAttributesReadColor :: MonadIO m => TextAttributes -> m (Maybe Color)
- textAttributesWriteColor :: MonadIO m => TextAttributes -> Ptr Color -> m ()
- textAttributesEndIndex :: AttrLabelProxy "endIndex"
- textAttributesReadEndIndex :: MonadIO m => TextAttributes -> m Int32
- textAttributesWriteEndIndex :: MonadIO m => TextAttributes -> Int32 -> m ()
- textAttributesClearFontName :: MonadIO m => TextAttributes -> m ()
- textAttributesFontName :: AttrLabelProxy "fontName"
- textAttributesReadFontName :: MonadIO m => TextAttributes -> m (Maybe Text)
- textAttributesWriteFontName :: MonadIO m => TextAttributes -> CString -> m ()
- textAttributesFontSize :: AttrLabelProxy "fontSize"
- textAttributesReadFontSize :: MonadIO m => TextAttributes -> m Double
- textAttributesWriteFontSize :: MonadIO m => TextAttributes -> Double -> m ()
- textAttributesIsUnderlined :: AttrLabelProxy "isUnderlined"
- textAttributesReadIsUnderlined :: MonadIO m => TextAttributes -> m Bool
- textAttributesWriteIsUnderlined :: MonadIO m => TextAttributes -> Bool -> m ()
- textAttributesReadStartIndex :: MonadIO m => TextAttributes -> m Int32
- textAttributesStartIndex :: AttrLabelProxy "startIndex"
- textAttributesWriteStartIndex :: MonadIO m => TextAttributes -> Int32 -> m ()
Exported types
newtype TextAttributes Source
BoxedObject TextAttributes | |
(~) AttrOpTag tag AttrSet => Constructible TextAttributes tag | |
((~) * signature (m ()), MonadIO m) => MethodInfo * TextAttributesFreeMethodInfo TextAttributes signature | |
((~) * signature (m TextAttributes), MonadIO m) => MethodInfo * TextAttributesCopyMethodInfo TextAttributes signature | |
((~) * info (ResolveTextAttributesMethod t TextAttributes), MethodInfo * info TextAttributes p) => IsLabelProxy t (TextAttributes -> p) | |
type AttributeList TextAttributes |
newZeroTextAttributes :: MonadIO m => m TextAttributes Source
Construct a TextAttributes
struct initialized to zero.
Methods
textAttributesCopy
data TextAttributesCopyMethodInfo Source
((~) * signature (m TextAttributes), MonadIO m) => MethodInfo * TextAttributesCopyMethodInfo TextAttributes signature |
textAttributesCopy :: MonadIO m => TextAttributes -> m TextAttributes Source
textAttributesFree
data TextAttributesFreeMethodInfo Source
((~) * signature (m ()), MonadIO m) => MethodInfo * TextAttributesFreeMethodInfo TextAttributes signature |
textAttributesFree :: MonadIO m => TextAttributes -> m () Source
textAttributesNew
textAttributesNew :: MonadIO m => m TextAttributes Source
Properties
Color
textAttributesClearColor :: MonadIO m => TextAttributes -> m () Source
textAttributesColor :: AttrLabelProxy "color" Source
textAttributesReadColor :: MonadIO m => TextAttributes -> m (Maybe Color) Source
textAttributesWriteColor :: MonadIO m => TextAttributes -> Ptr Color -> m () Source
EndIndex
textAttributesEndIndex :: AttrLabelProxy "endIndex" Source
textAttributesReadEndIndex :: MonadIO m => TextAttributes -> m Int32 Source
textAttributesWriteEndIndex :: MonadIO m => TextAttributes -> Int32 -> m () Source
FontName
textAttributesClearFontName :: MonadIO m => TextAttributes -> m () Source
textAttributesFontName :: AttrLabelProxy "fontName" Source
textAttributesReadFontName :: MonadIO m => TextAttributes -> m (Maybe Text) Source
textAttributesWriteFontName :: MonadIO m => TextAttributes -> CString -> m () Source
FontSize
textAttributesFontSize :: AttrLabelProxy "fontSize" Source
textAttributesReadFontSize :: MonadIO m => TextAttributes -> m Double Source
textAttributesWriteFontSize :: MonadIO m => TextAttributes -> Double -> m () Source
IsUnderlined
textAttributesIsUnderlined :: AttrLabelProxy "isUnderlined" Source
textAttributesReadIsUnderlined :: MonadIO m => TextAttributes -> m Bool Source
textAttributesWriteIsUnderlined :: MonadIO m => TextAttributes -> Bool -> m () Source
StartIndex
textAttributesReadStartIndex :: MonadIO m => TextAttributes -> m Int32 Source
textAttributesStartIndex :: AttrLabelProxy "startIndex" Source
textAttributesWriteStartIndex :: MonadIO m => TextAttributes -> Int32 -> m () Source