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 |
The PangoAnalysis
structure stores information about
the properties of a segment of text.
Synopsis
- newtype Analysis = Analysis (ManagedPtr Analysis)
- newZeroAnalysis :: MonadIO m => m Analysis
- clearAnalysisExtraAttrs :: MonadIO m => Analysis -> m ()
- getAnalysisExtraAttrs :: MonadIO m => Analysis -> m [Ptr ()]
- setAnalysisExtraAttrs :: MonadIO m => Analysis -> Ptr (GSList (Ptr ())) -> m ()
- getAnalysisFlags :: MonadIO m => Analysis -> m Word8
- setAnalysisFlags :: MonadIO m => Analysis -> Word8 -> m ()
- clearAnalysisFont :: MonadIO m => Analysis -> m ()
- getAnalysisFont :: MonadIO m => Analysis -> m (Maybe Font)
- setAnalysisFont :: MonadIO m => Analysis -> Ptr Font -> m ()
- getAnalysisGravity :: MonadIO m => Analysis -> m Word8
- setAnalysisGravity :: MonadIO m => Analysis -> Word8 -> m ()
- clearAnalysisLangEngine :: MonadIO m => Analysis -> m ()
- getAnalysisLangEngine :: MonadIO m => Analysis -> m (Ptr ())
- setAnalysisLangEngine :: MonadIO m => Analysis -> Ptr () -> m ()
- clearAnalysisLanguage :: MonadIO m => Analysis -> m ()
- getAnalysisLanguage :: MonadIO m => Analysis -> m (Maybe Language)
- setAnalysisLanguage :: MonadIO m => Analysis -> Ptr Language -> m ()
- getAnalysisLevel :: MonadIO m => Analysis -> m Word8
- setAnalysisLevel :: MonadIO m => Analysis -> Word8 -> m ()
- getAnalysisScript :: MonadIO m => Analysis -> m Word8
- setAnalysisScript :: MonadIO m => Analysis -> Word8 -> m ()
- clearAnalysisShapeEngine :: MonadIO m => Analysis -> m ()
- getAnalysisShapeEngine :: MonadIO m => Analysis -> m (Ptr ())
- setAnalysisShapeEngine :: MonadIO m => Analysis -> Ptr () -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Analysis Source # | |
BoxedPtr Analysis Source # | |
Defined in GI.Pango.Structs.Analysis boxedPtrCopy :: Analysis -> IO Analysis boxedPtrFree :: Analysis -> IO () | |
CallocPtr Analysis Source # | |
Defined in GI.Pango.Structs.Analysis boxedPtrCalloc :: IO (Ptr Analysis) | |
ManagedPtrNewtype Analysis Source # | |
Defined in GI.Pango.Structs.Analysis toManagedPtr :: Analysis -> ManagedPtr Analysis | |
tag ~ 'AttrSet => Constructible Analysis tag Source # | |
Methods
Properties
extraAttrs
extra attributes for this segment.
clearAnalysisExtraAttrs :: MonadIO m => Analysis -> m () Source #
Set the value of the “extra_attrs
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#extraAttrs
getAnalysisExtraAttrs :: MonadIO m => Analysis -> m [Ptr ()] Source #
Get the value of the “extra_attrs
” field.
When overloading is enabled, this is equivalent to
get
analysis #extraAttrs
setAnalysisExtraAttrs :: MonadIO m => Analysis -> Ptr (GSList (Ptr ())) -> m () Source #
Set the value of the “extra_attrs
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #extraAttrs:=
value ]
flags
boolean flags for this segment (Since: 1.16).
getAnalysisFlags :: MonadIO m => Analysis -> m Word8 Source #
Get the value of the “flags
” field.
When overloading is enabled, this is equivalent to
get
analysis #flags
setAnalysisFlags :: MonadIO m => Analysis -> Word8 -> m () Source #
Set the value of the “flags
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #flags:=
value ]
font
the font for this segment.
clearAnalysisFont :: MonadIO m => Analysis -> m () Source #
Set the value of the “font
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#font
getAnalysisFont :: MonadIO m => Analysis -> m (Maybe Font) Source #
Get the value of the “font
” field.
When overloading is enabled, this is equivalent to
get
analysis #font
setAnalysisFont :: MonadIO m => Analysis -> Ptr Font -> m () Source #
Set the value of the “font
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #font:=
value ]
gravity
the glyph orientation for this segment (A PangoGravity
).
getAnalysisGravity :: MonadIO m => Analysis -> m Word8 Source #
Get the value of the “gravity
” field.
When overloading is enabled, this is equivalent to
get
analysis #gravity
setAnalysisGravity :: MonadIO m => Analysis -> Word8 -> m () Source #
Set the value of the “gravity
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #gravity:=
value ]
langEngine
unused, reserved
clearAnalysisLangEngine :: MonadIO m => Analysis -> m () Source #
Set the value of the “lang_engine
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#langEngine
getAnalysisLangEngine :: MonadIO m => Analysis -> m (Ptr ()) Source #
Get the value of the “lang_engine
” field.
When overloading is enabled, this is equivalent to
get
analysis #langEngine
setAnalysisLangEngine :: MonadIO m => Analysis -> Ptr () -> m () Source #
Set the value of the “lang_engine
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #langEngine:=
value ]
language
the detected language for this segment.
clearAnalysisLanguage :: MonadIO m => Analysis -> m () Source #
Set the value of the “language
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#language
getAnalysisLanguage :: MonadIO m => Analysis -> m (Maybe Language) Source #
Get the value of the “language
” field.
When overloading is enabled, this is equivalent to
get
analysis #language
setAnalysisLanguage :: MonadIO m => Analysis -> Ptr Language -> m () Source #
Set the value of the “language
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #language:=
value ]
level
the bidirectional level for this segment.
getAnalysisLevel :: MonadIO m => Analysis -> m Word8 Source #
Get the value of the “level
” field.
When overloading is enabled, this is equivalent to
get
analysis #level
setAnalysisLevel :: MonadIO m => Analysis -> Word8 -> m () Source #
Set the value of the “level
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #level:=
value ]
script
the detected script for this segment (A PangoScript
) (Since: 1.18).
getAnalysisScript :: MonadIO m => Analysis -> m Word8 Source #
Get the value of the “script
” field.
When overloading is enabled, this is equivalent to
get
analysis #script
setAnalysisScript :: MonadIO m => Analysis -> Word8 -> m () Source #
Set the value of the “script
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #script:=
value ]
shapeEngine
unused, reserved
clearAnalysisShapeEngine :: MonadIO m => Analysis -> m () Source #
Set the value of the “shape_engine
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#shapeEngine
getAnalysisShapeEngine :: MonadIO m => Analysis -> m (Ptr ()) Source #
Get the value of the “shape_engine
” field.
When overloading is enabled, this is equivalent to
get
analysis #shapeEngine
setAnalysisShapeEngine :: MonadIO m => Analysis -> Ptr () -> m () Source #
Set the value of the “shape_engine
” field.
When overloading is enabled, this is equivalent to
set
analysis [ #shapeEngine:=
value ]