gi-pango-1.0.30: Pango bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Pango.Enums

Contents

- Enumerations
  - Alignment
  - AttrType
  - BaselineShift
  - BidiType
  - CoverageLevel
  - Direction
  - EllipsizeMode
  - FontColor
  - FontScale
  - Gravity
  - GravityHint
  - LayoutDeserializeError
  - Overline
  - RenderPart
  - Script
  - Stretch
  - Style
  - TabAlign
  - TextTransform
  - Underline
  - Variant
  - Weight
  - WrapMode

Description

Synopsis

- data Alignment
  - = AlignmentLeft
  - | AlignmentCenter
  - | AlignmentRight
  - | AnotherAlignment Int
- data AttrType
  - = AttrTypeInvalid
  - | AttrTypeLanguage
  - | AttrTypeFamily
  - | AttrTypeStyle
  - | AttrTypeWeight
  - | AttrTypeVariant
  - | AttrTypeStretch
  - | AttrTypeSize
  - | AttrTypeFontDesc
  - | AttrTypeForeground
  - | AttrTypeBackground
  - | AttrTypeUnderline
  - | AttrTypeStrikethrough
  - | AttrTypeRise
  - | AttrTypeShape
  - | AttrTypeScale
  - | AttrTypeFallback
  - | AttrTypeLetterSpacing
  - | AttrTypeUnderlineColor
  - | AttrTypeStrikethroughColor
  - | AttrTypeAbsoluteSize
  - | AttrTypeGravity
  - | AttrTypeGravityHint
  - | AttrTypeFontFeatures
  - | AttrTypeForegroundAlpha
  - | AttrTypeBackgroundAlpha
  - | AttrTypeAllowBreaks
  - | AttrTypeShow
  - | AttrTypeInsertHyphens
  - | AttrTypeOverline
  - | AttrTypeOverlineColor
  - | AttrTypeLineHeight
  - | AttrTypeAbsoluteLineHeight
  - | AttrTypeTextTransform
  - | AttrTypeWord
  - | AttrTypeSentence
  - | AttrTypeBaselineShift
  - | AttrTypeFontScale
  - | AnotherAttrType Int
- data BaselineShift
  - = BaselineShiftNone
  - | BaselineShiftSuperscript
  - | BaselineShiftSubscript
  - | AnotherBaselineShift Int
- data BidiType
  - = BidiTypeL
  - | BidiTypeLre
  - | BidiTypeLro
  - | BidiTypeR
  - | BidiTypeAl
  - | BidiTypeRle
  - | BidiTypeRlo
  - | BidiTypePdf
  - | BidiTypeEn
  - | BidiTypeEs
  - | BidiTypeEt
  - | BidiTypeAn
  - | BidiTypeCs
  - | BidiTypeNsm
  - | BidiTypeBn
  - | BidiTypeB
  - | BidiTypeS
  - | BidiTypeWs
  - | BidiTypeOn
  - | BidiTypeLri
  - | BidiTypeRli
  - | BidiTypeFsi
  - | BidiTypePdi
  - | AnotherBidiType Int
- data CoverageLevel
  - = CoverageLevelNone
  - | CoverageLevelFallback
  - | CoverageLevelApproximate
  - | CoverageLevelExact
  - | AnotherCoverageLevel Int
- data Direction
  - = DirectionLtr
  - | DirectionRtl
  - | DirectionTtbLtr
  - | DirectionTtbRtl
  - | DirectionWeakLtr
  - | DirectionWeakRtl
  - | DirectionNeutral
  - | AnotherDirection Int
- data EllipsizeMode
  - = EllipsizeModeNone
  - | EllipsizeModeStart
  - | EllipsizeModeMiddle
  - | EllipsizeModeEnd
  - | AnotherEllipsizeMode Int
- data FontColor
  - = FontColorForbidden
  - | FontColorRequired
  - | FontColorDontCare
  - | AnotherFontColor Int
- data FontScale
  - = FontScaleNone
  - | FontScaleSuperscript
  - | FontScaleSubscript
  - | FontScaleSmallCaps
  - | AnotherFontScale Int
- data Gravity
  - = GravitySouth
  - | GravityEast
  - | GravityNorth
  - | GravityWest
  - | GravityAuto
  - | AnotherGravity Int
- data GravityHint
  - = GravityHintNatural
  - | GravityHintStrong
  - | GravityHintLine
  - | AnotherGravityHint Int
- data LayoutDeserializeError
  - = LayoutDeserializeErrorInvalid
  - | LayoutDeserializeErrorInvalidValue
  - | LayoutDeserializeErrorMissingValue
  - | AnotherLayoutDeserializeError Int
- catchLayoutDeserializeError :: IO a -> (LayoutDeserializeError -> GErrorMessage -> IO a) -> IO a
- handleLayoutDeserializeError :: (LayoutDeserializeError -> GErrorMessage -> IO a) -> IO a -> IO a
- data Overline
  - = OverlineNone
  - | OverlineSingle
  - | AnotherOverline Int
- data RenderPart
  - = RenderPartForeground
  - | RenderPartBackground
  - | RenderPartUnderline
  - | RenderPartStrikethrough
  - | RenderPartOverline
  - | AnotherRenderPart Int
- data Script
  - = ScriptInvalidCode
  - | ScriptCommon
  - | ScriptInherited
  - | ScriptArabic
  - | ScriptArmenian
  - | ScriptBengali
  - | ScriptBopomofo
  - | ScriptCherokee
  - | ScriptCoptic
  - | ScriptCyrillic
  - | ScriptDeseret
  - | ScriptDevanagari
  - | ScriptEthiopic
  - | ScriptGeorgian
  - | ScriptGothic
  - | ScriptGreek
  - | ScriptGujarati
  - | ScriptGurmukhi
  - | ScriptHan
  - | ScriptHangul
  - | ScriptHebrew
  - | ScriptHiragana
  - | ScriptKannada
  - | ScriptKatakana
  - | ScriptKhmer
  - | ScriptLao
  - | ScriptLatin
  - | ScriptMalayalam
  - | ScriptMongolian
  - | ScriptMyanmar
  - | ScriptOgham
  - | ScriptOldItalic
  - | ScriptOriya
  - | ScriptRunic
  - | ScriptSinhala
  - | ScriptSyriac
  - | ScriptTamil
  - | ScriptTelugu
  - | ScriptThaana
  - | ScriptThai
  - | ScriptTibetan
  - | ScriptCanadianAboriginal
  - | ScriptYi
  - | ScriptTagalog
  - | ScriptHanunoo
  - | ScriptBuhid
  - | ScriptTagbanwa
  - | ScriptBraille
  - | ScriptCypriot
  - | ScriptLimbu
  - | ScriptOsmanya
  - | ScriptShavian
  - | ScriptLinearB
  - | ScriptTaiLe
  - | ScriptUgaritic
  - | ScriptNewTaiLue
  - | ScriptBuginese
  - | ScriptGlagolitic
  - | ScriptTifinagh
  - | ScriptSylotiNagri
  - | ScriptOldPersian
  - | ScriptKharoshthi
  - | ScriptUnknown
  - | ScriptBalinese
  - | ScriptCuneiform
  - | ScriptPhoenician
  - | ScriptPhagsPa
  - | ScriptNko
  - | ScriptKayahLi
  - | ScriptLepcha
  - | ScriptRejang
  - | ScriptSundanese
  - | ScriptSaurashtra
  - | ScriptCham
  - | ScriptOlChiki
  - | ScriptVai
  - | ScriptCarian
  - | ScriptLycian
  - | ScriptLydian
  - | ScriptBatak
  - | ScriptBrahmi
  - | ScriptMandaic
  - | ScriptChakma
  - | ScriptMeroiticCursive
  - | ScriptMeroiticHieroglyphs
  - | ScriptMiao
  - | ScriptSharada
  - | ScriptSoraSompeng
  - | ScriptTakri
  - | ScriptBassaVah
  - | ScriptCaucasianAlbanian
  - | ScriptDuployan
  - | ScriptElbasan
  - | ScriptGrantha
  - | ScriptKhojki
  - | ScriptKhudawadi
  - | ScriptLinearA
  - | ScriptMahajani
  - | ScriptManichaean
  - | ScriptMendeKikakui
  - | ScriptModi
  - | ScriptMro
  - | ScriptNabataean
  - | ScriptOldNorthArabian
  - | ScriptOldPermic
  - | ScriptPahawhHmong
  - | ScriptPalmyrene
  - | ScriptPauCinHau
  - | ScriptPsalterPahlavi
  - | ScriptSiddham
  - | ScriptTirhuta
  - | ScriptWarangCiti
  - | ScriptAhom
  - | ScriptAnatolianHieroglyphs
  - | ScriptHatran
  - | ScriptMultani
  - | ScriptOldHungarian
  - | ScriptSignwriting
  - | AnotherScript Int
- data Stretch
  - = StretchUltraCondensed
  - | StretchExtraCondensed
  - | StretchCondensed
  - | StretchSemiCondensed
  - | StretchNormal
  - | StretchSemiExpanded
  - | StretchExpanded
  - | StretchExtraExpanded
  - | StretchUltraExpanded
  - | AnotherStretch Int
- data Style
  - = StyleNormal
  - | StyleOblique
  - | StyleItalic
  - | AnotherStyle Int
- data TabAlign
  - = TabAlignLeft
  - | TabAlignRight
  - | TabAlignCenter
  - | TabAlignDecimal
  - | AnotherTabAlign Int
- data TextTransform
  - = TextTransformNone
  - | TextTransformLowercase
  - | TextTransformUppercase
  - | TextTransformCapitalize
  - | AnotherTextTransform Int
- data Underline
  - = UnderlineNone
  - | UnderlineSingle
  - | UnderlineDouble
  - | UnderlineLow
  - | UnderlineError
  - | UnderlineSingleLine
  - | UnderlineDoubleLine
  - | UnderlineErrorLine
  - | AnotherUnderline Int
- data Variant
  - = VariantNormal
  - | VariantSmallCaps
  - | VariantAllSmallCaps
  - | VariantPetiteCaps
  - | VariantAllPetiteCaps
  - | VariantUnicase
  - | VariantTitleCaps
  - | AnotherVariant Int
- data Weight
  - = WeightThin
  - | WeightUltralight
  - | WeightLight
  - | WeightSemilight
  - | WeightBook
  - | WeightNormal
  - | WeightMedium
  - | WeightSemibold
  - | WeightBold
  - | WeightUltrabold
  - | WeightHeavy
  - | WeightUltraheavy
  - | AnotherWeight Int
- data WrapMode
  - = WrapModeWord
  - | WrapModeChar
  - | WrapModeWordChar
  - | WrapModeNone
  - | AnotherWrapMode Int

# Enumerations

## Alignment

data Alignment Source #

`PangoAlignment` describes how to align the lines of a `PangoLayout` within the available space.

If the `PangoLayout` is set to justify using `layoutSetJustify`, this only affects partial lines.

See `layoutSetAutoDir` for how text direction affects the interpretation of `PangoAlignment` values.

Constructors

AlignmentLeft | Put all available space on the right
AlignmentCenter | Center the line within the available space
AlignmentRight | Put all available space on the left
AnotherAlignment Int | Catch-all for unknown values

#### Instances

Instances details

Enum Alignment Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Alignment -> Alignment Source #

pred :: Alignment -> Alignment Source #

toEnum :: Int -> Alignment Source #

fromEnum :: Alignment -> Int Source #

enumFrom :: Alignment -> [Alignment] Source #

enumFromThen :: Alignment -> Alignment -> [Alignment] Source #

enumFromTo :: Alignment -> Alignment -> [Alignment] Source #

enumFromThenTo :: Alignment -> Alignment -> Alignment -> [Alignment] Source #

Show Alignment Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Alignment -> ShowS Source # show :: Alignment -> String Source # showList :: [Alignment] -> ShowS Source #
Eq Alignment Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Alignment -> Alignment -> Bool Source # (/=) :: Alignment -> Alignment -> Bool Source #
Ord Alignment Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Alignment -> Alignment -> Ordering Source # (<) :: Alignment -> Alignment -> Bool Source # (<=) :: Alignment -> Alignment -> Bool Source # (>) :: Alignment -> Alignment -> Bool Source # (>=) :: Alignment -> Alignment -> Bool Source # max :: Alignment -> Alignment -> Alignment Source # min :: Alignment -> Alignment -> Alignment Source #
BoxedEnum Alignment Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Alignment Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Alignment Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Alignment Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Alignment = '[] :: [Type]

## AttrType

data AttrType Source #

The `PangoAttrType` distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using `AttrType.register`. The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.

Constructors

AttrTypeInvalid | does not happen
AttrTypeLanguage | language (t`AttrLanguage`)
AttrTypeFamily | font family name list (t`AttrString`)
AttrTypeStyle | font slant style (t`AttrInt`)
AttrTypeWeight | font weight (t`AttrInt`)
AttrTypeVariant | font variant (normal or small caps) (t`AttrInt`)
AttrTypeStretch | font stretch (t`AttrInt`)
AttrTypeSize | font size in points scaled by `SCALE` (t`AttrInt`)
AttrTypeFontDesc | font description (t`AttrFontDesc`)
AttrTypeForeground | foreground color (t`AttrColor`)
AttrTypeBackground | background color (t`AttrColor`)
AttrTypeUnderline | whether the text has an underline (t`AttrInt`)
AttrTypeStrikethrough | whether the text is struck-through (t`AttrInt`)
AttrTypeRise | baseline displacement (t`AttrInt`)
AttrTypeShape | shape (t`AttrShape`)
AttrTypeScale | font size scale factor (t`AttrFloat`)
AttrTypeFallback | whether fallback is enabled (t`AttrInt`)
AttrTypeLetterSpacing | letter spacing ([struct`pangoAttrInt`])
AttrTypeUnderlineColor | underline color (t`AttrColor`)
AttrTypeStrikethroughColor | strikethrough color (t`AttrColor`)
AttrTypeAbsoluteSize | font size in pixels scaled by `SCALE` (t`AttrInt`)
AttrTypeGravity | base text gravity (t`AttrInt`)
AttrTypeGravityHint | gravity hint (t`AttrInt`)
AttrTypeFontFeatures | OpenType font features (t`AttrFontFeatures`). Since 1.38
AttrTypeForegroundAlpha | foreground alpha (t`AttrInt`). Since 1.38
AttrTypeBackgroundAlpha | background alpha (t`AttrInt`). Since 1.38
AttrTypeAllowBreaks | whether breaks are allowed (t`AttrInt`). Since 1.44
AttrTypeShow | how to render invisible characters (t`AttrInt`). Since 1.44
AttrTypeInsertHyphens | whether to insert hyphens at intra-word line breaks (t`AttrInt`). Since 1.44
AttrTypeOverline | whether the text has an overline (t`AttrInt`). Since 1.46
AttrTypeOverlineColor | overline color (t`AttrColor`). Since 1.46
AttrTypeLineHeight | line height factor (t`AttrFloat`). Since: 1.50
AttrTypeAbsoluteLineHeight | line height (t`AttrInt`). Since: 1.50
AttrTypeTextTransform | No description available in the introspection data.
AttrTypeWord | override segmentation to classify the range of the attribute as a single word (t`AttrInt`). Since 1.50
AttrTypeSentence | override segmentation to classify the range of the attribute as a single sentence (t`AttrInt`). Since 1.50
AttrTypeBaselineShift | baseline displacement (t`AttrInt`). Since 1.50
AttrTypeFontScale | font-relative size change (t`AttrInt`). Since 1.50
AnotherAttrType Int | Catch-all for unknown values

#### Instances

Instances details

Enum AttrType Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: AttrType -> AttrType Source #

pred :: AttrType -> AttrType Source #

toEnum :: Int -> AttrType Source #

fromEnum :: AttrType -> Int Source #

enumFrom :: AttrType -> [AttrType] Source #

enumFromThen :: AttrType -> AttrType -> [AttrType] Source #

enumFromTo :: AttrType -> AttrType -> [AttrType] Source #

enumFromThenTo :: AttrType -> AttrType -> AttrType -> [AttrType] Source #

Show AttrType Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> AttrType -> ShowS Source # show :: AttrType -> String Source # showList :: [AttrType] -> ShowS Source #
Eq AttrType Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: AttrType -> AttrType -> Bool Source # (/=) :: AttrType -> AttrType -> Bool Source #
Ord AttrType Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: AttrType -> AttrType -> Ordering Source # (<) :: AttrType -> AttrType -> Bool Source # (<=) :: AttrType -> AttrType -> Bool Source # (>) :: AttrType -> AttrType -> Bool Source # (>=) :: AttrType -> AttrType -> Bool Source # max :: AttrType -> AttrType -> AttrType Source # min :: AttrType -> AttrType -> AttrType Source #
BoxedEnum AttrType Source # |
Instance details Defined in GI.Pango.Enums
TypedObject AttrType Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes AttrType Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes AttrType Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes AttrType = '[] :: [Type]

## BaselineShift

data BaselineShift Source #

An enumeration that affects baseline shifts between runs.

Since: 1.50

Constructors

BaselineShiftNone | Leave the baseline unchanged
BaselineShiftSuperscript | Shift the baseline to the superscript position, relative to the previous run
BaselineShiftSubscript | Shift the baseline to the subscript position, relative to the previous run
AnotherBaselineShift Int | Catch-all for unknown values

#### Instances

Instances details

Enum BaselineShift Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: BaselineShift -> BaselineShift Source #

pred :: BaselineShift -> BaselineShift Source #

toEnum :: Int -> BaselineShift Source #

fromEnum :: BaselineShift -> Int Source #

enumFrom :: BaselineShift -> [BaselineShift] Source #

enumFromThen :: BaselineShift -> BaselineShift -> [BaselineShift] Source #

enumFromTo :: BaselineShift -> BaselineShift -> [BaselineShift] Source #

enumFromThenTo :: BaselineShift -> BaselineShift -> BaselineShift -> [BaselineShift] Source #

Show BaselineShift Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> BaselineShift -> ShowS Source # show :: BaselineShift -> String Source # showList :: [BaselineShift] -> ShowS Source #
Eq BaselineShift Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: BaselineShift -> BaselineShift -> Bool Source # (/=) :: BaselineShift -> BaselineShift -> Bool Source #
Ord BaselineShift Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: BaselineShift -> BaselineShift -> Ordering Source #

(<) :: BaselineShift -> BaselineShift -> Bool Source #

(<=) :: BaselineShift -> BaselineShift -> Bool Source #

(>) :: BaselineShift -> BaselineShift -> Bool Source #

(>=) :: BaselineShift -> BaselineShift -> Bool Source #

max :: BaselineShift -> BaselineShift -> BaselineShift Source #

min :: BaselineShift -> BaselineShift -> BaselineShift Source #

BoxedEnum BaselineShift Source # |
Instance details Defined in GI.Pango.Enums
TypedObject BaselineShift Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes BaselineShift Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes BaselineShift Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes BaselineShift = '[] :: [Type]

## BidiType

data BidiType Source #

Deprecated: (Since version 1.44)Use fribidi for this information

`PangoBidiType` represents the bidirectional character type of a Unicode character.

The values in this enumeration are specified by the Unicode bidirectional algorithm.

Since: 1.22

Constructors

BidiTypeL | Left-to-Right
BidiTypeLre | Left-to-Right Embedding
BidiTypeLro | Left-to-Right Override
BidiTypeR | Right-to-Left
BidiTypeAl | Right-to-Left Arabic
BidiTypeRle | Right-to-Left Embedding
BidiTypeRlo | Right-to-Left Override
BidiTypePdf | Pop Directional Format
BidiTypeEn | European Number
BidiTypeEs | European Number Separator
BidiTypeEt | European Number Terminator
BidiTypeAn | Arabic Number
BidiTypeCs | Common Number Separator
BidiTypeNsm | Nonspacing Mark
BidiTypeBn | Boundary Neutral
BidiTypeB | Paragraph Separator
BidiTypeS | Segment Separator
BidiTypeWs | Whitespace
BidiTypeOn | Other Neutrals
BidiTypeLri | Left-to-Right isolate. Since 1.48.6
BidiTypeRli | Right-to-Left isolate. Since 1.48.6
BidiTypeFsi | First strong isolate. Since 1.48.6
BidiTypePdi | Pop directional isolate. Since 1.48.6
AnotherBidiType Int | Catch-all for unknown values

#### Instances

Instances details

Enum BidiType Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: BidiType -> BidiType Source #

pred :: BidiType -> BidiType Source #

toEnum :: Int -> BidiType Source #

fromEnum :: BidiType -> Int Source #

enumFrom :: BidiType -> [BidiType] Source #

enumFromThen :: BidiType -> BidiType -> [BidiType] Source #

enumFromTo :: BidiType -> BidiType -> [BidiType] Source #

enumFromThenTo :: BidiType -> BidiType -> BidiType -> [BidiType] Source #

Show BidiType Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> BidiType -> ShowS Source # show :: BidiType -> String Source # showList :: [BidiType] -> ShowS Source #
Eq BidiType Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: BidiType -> BidiType -> Bool Source # (/=) :: BidiType -> BidiType -> Bool Source #
Ord BidiType Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: BidiType -> BidiType -> Ordering Source # (<) :: BidiType -> BidiType -> Bool Source # (<=) :: BidiType -> BidiType -> Bool Source # (>) :: BidiType -> BidiType -> Bool Source # (>=) :: BidiType -> BidiType -> Bool Source # max :: BidiType -> BidiType -> BidiType Source # min :: BidiType -> BidiType -> BidiType Source #
BoxedEnum BidiType Source # |
Instance details Defined in GI.Pango.Enums
TypedObject BidiType Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes BidiType Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes BidiType Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes BidiType = '[] :: [Type]

## CoverageLevel

data CoverageLevel Source #

`PangoCoverageLevel` is used to indicate how well a font can represent a particular Unicode character for a particular script.

Since 1.44, only `CoverageLevelNone` and `CoverageLevelExact` will be returned.

Constructors

CoverageLevelNone | The character is not representable with the font.
CoverageLevelFallback | The character is represented in a way that may be comprehensible but is not the correct graphical form. For instance, a Hangul character represented as a a sequence of Jamos, or a Latin transliteration of a Cyrillic word.
CoverageLevelApproximate | The character is represented as basically the correct graphical form, but with a stylistic variant inappropriate for the current script.
CoverageLevelExact | The character is represented as the correct graphical form.
AnotherCoverageLevel Int | Catch-all for unknown values

#### Instances

Instances details

Enum CoverageLevel Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: CoverageLevel -> CoverageLevel Source #

pred :: CoverageLevel -> CoverageLevel Source #

toEnum :: Int -> CoverageLevel Source #

fromEnum :: CoverageLevel -> Int Source #

enumFrom :: CoverageLevel -> [CoverageLevel] Source #

enumFromThen :: CoverageLevel -> CoverageLevel -> [CoverageLevel] Source #

enumFromTo :: CoverageLevel -> CoverageLevel -> [CoverageLevel] Source #

enumFromThenTo :: CoverageLevel -> CoverageLevel -> CoverageLevel -> [CoverageLevel] Source #

Show CoverageLevel Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> CoverageLevel -> ShowS Source # show :: CoverageLevel -> String Source # showList :: [CoverageLevel] -> ShowS Source #
Eq CoverageLevel Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: CoverageLevel -> CoverageLevel -> Bool Source # (/=) :: CoverageLevel -> CoverageLevel -> Bool Source #
Ord CoverageLevel Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: CoverageLevel -> CoverageLevel -> Ordering Source #

(<) :: CoverageLevel -> CoverageLevel -> Bool Source #

(<=) :: CoverageLevel -> CoverageLevel -> Bool Source #

(>) :: CoverageLevel -> CoverageLevel -> Bool Source #

(>=) :: CoverageLevel -> CoverageLevel -> Bool Source #

max :: CoverageLevel -> CoverageLevel -> CoverageLevel Source #

min :: CoverageLevel -> CoverageLevel -> CoverageLevel Source #

BoxedEnum CoverageLevel Source # |
Instance details Defined in GI.Pango.Enums
TypedObject CoverageLevel Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes CoverageLevel Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes CoverageLevel Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes CoverageLevel = '[] :: [Type]

## Direction

data Direction Source #

`PangoDirection` represents a direction in the Unicode bidirectional algorithm.

Not every value in this enumeration makes sense for every usage of `PangoDirection`; for example, the return value of [func`unicharDirection`] and [func`findBaseDir`] cannot be `PANGO_DIRECTION_WEAK_LTR` or `PANGO_DIRECTION_WEAK_RTL`, since every character is either neutral or has a strong direction; on the other hand `PANGO_DIRECTION_NEUTRAL` doesn't make sense to pass to [func`itemizeWithBaseDir`].

The `PANGO_DIRECTION_TTB_LTR`, `PANGO_DIRECTION_TTB_RTL` values come from an earlier interpretation of this enumeration as the writing direction of a block of text and are no longer used. See `PangoGravity` for how vertical text is handled in Pango.

If you are interested in text direction, you should really use fribidi directly. `PangoDirection` is only retained because it is used in some public apis.

Constructors

DirectionLtr | A strong left-to-right direction
DirectionRtl | A strong right-to-left direction
DirectionTtbLtr | Deprecated value; treated the same as `PANGO_DIRECTION_RTL`.
DirectionTtbRtl | Deprecated value; treated the same as `PANGO_DIRECTION_LTR`
DirectionWeakLtr | A weak left-to-right direction
DirectionWeakRtl | A weak right-to-left direction
DirectionNeutral | No direction specified
AnotherDirection Int | Catch-all for unknown values

#### Instances

Instances details

Enum Direction Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Direction -> Direction Source #

pred :: Direction -> Direction Source #

toEnum :: Int -> Direction Source #

fromEnum :: Direction -> Int Source #

enumFrom :: Direction -> [Direction] Source #

enumFromThen :: Direction -> Direction -> [Direction] Source #

enumFromTo :: Direction -> Direction -> [Direction] Source #

enumFromThenTo :: Direction -> Direction -> Direction -> [Direction] Source #

Show Direction Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Direction -> ShowS Source # show :: Direction -> String Source # showList :: [Direction] -> ShowS Source #
Eq Direction Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Direction -> Direction -> Bool Source # (/=) :: Direction -> Direction -> Bool Source #
Ord Direction Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Direction -> Direction -> Ordering Source # (<) :: Direction -> Direction -> Bool Source # (<=) :: Direction -> Direction -> Bool Source # (>) :: Direction -> Direction -> Bool Source # (>=) :: Direction -> Direction -> Bool Source # max :: Direction -> Direction -> Direction Source # min :: Direction -> Direction -> Direction Source #
BoxedEnum Direction Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Direction Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Direction Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Direction Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Direction = '[] :: [Type]

## EllipsizeMode

data EllipsizeMode Source #

`PangoEllipsizeMode` describes what sort of ellipsization should be applied to text.

In the ellipsization process characters are removed from the text in order to make it fit to a given width and replaced with an ellipsis.

Constructors

EllipsizeModeNone | No ellipsization
EllipsizeModeStart | Omit characters at the start of the text
EllipsizeModeMiddle | Omit characters in the middle of the text
EllipsizeModeEnd | Omit characters at the end of the text
AnotherEllipsizeMode Int | Catch-all for unknown values

#### Instances

Instances details

Enum EllipsizeMode Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: EllipsizeMode -> EllipsizeMode Source #

pred :: EllipsizeMode -> EllipsizeMode Source #

toEnum :: Int -> EllipsizeMode Source #

fromEnum :: EllipsizeMode -> Int Source #

enumFrom :: EllipsizeMode -> [EllipsizeMode] Source #

enumFromThen :: EllipsizeMode -> EllipsizeMode -> [EllipsizeMode] Source #

enumFromTo :: EllipsizeMode -> EllipsizeMode -> [EllipsizeMode] Source #

enumFromThenTo :: EllipsizeMode -> EllipsizeMode -> EllipsizeMode -> [EllipsizeMode] Source #

Show EllipsizeMode Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> EllipsizeMode -> ShowS Source # show :: EllipsizeMode -> String Source # showList :: [EllipsizeMode] -> ShowS Source #
Eq EllipsizeMode Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: EllipsizeMode -> EllipsizeMode -> Bool Source # (/=) :: EllipsizeMode -> EllipsizeMode -> Bool Source #
Ord EllipsizeMode Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: EllipsizeMode -> EllipsizeMode -> Ordering Source #

(<) :: EllipsizeMode -> EllipsizeMode -> Bool Source #

(<=) :: EllipsizeMode -> EllipsizeMode -> Bool Source #

(>) :: EllipsizeMode -> EllipsizeMode -> Bool Source #

(>=) :: EllipsizeMode -> EllipsizeMode -> Bool Source #

max :: EllipsizeMode -> EllipsizeMode -> EllipsizeMode Source #

min :: EllipsizeMode -> EllipsizeMode -> EllipsizeMode Source #

BoxedEnum EllipsizeMode Source # |
Instance details Defined in GI.Pango.Enums
TypedObject EllipsizeMode Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes EllipsizeMode Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes EllipsizeMode Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes EllipsizeMode = '[] :: [Type]

## FontColor

data FontColor Source #

Specifies whether a font should or should not have color glyphs.

Since: 1.57

Constructors

FontColorForbidden | The font should not have color glyphs
FontColorRequired | The font should have color glyphs
FontColorDontCare | The font may or may not use color
AnotherFontColor Int | Catch-all for unknown values

#### Instances

Instances details

Enum FontColor Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: FontColor -> FontColor Source #

pred :: FontColor -> FontColor Source #

toEnum :: Int -> FontColor Source #

fromEnum :: FontColor -> Int Source #

enumFrom :: FontColor -> [FontColor] Source #

enumFromThen :: FontColor -> FontColor -> [FontColor] Source #

enumFromTo :: FontColor -> FontColor -> [FontColor] Source #

enumFromThenTo :: FontColor -> FontColor -> FontColor -> [FontColor] Source #

Show FontColor Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> FontColor -> ShowS Source # show :: FontColor -> String Source # showList :: [FontColor] -> ShowS Source #
Eq FontColor Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: FontColor -> FontColor -> Bool Source # (/=) :: FontColor -> FontColor -> Bool Source #
Ord FontColor Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: FontColor -> FontColor -> Ordering Source # (<) :: FontColor -> FontColor -> Bool Source # (<=) :: FontColor -> FontColor -> Bool Source # (>) :: FontColor -> FontColor -> Bool Source # (>=) :: FontColor -> FontColor -> Bool Source # max :: FontColor -> FontColor -> FontColor Source # min :: FontColor -> FontColor -> FontColor Source #
BoxedEnum FontColor Source # |
Instance details Defined in GI.Pango.Enums
TypedObject FontColor Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes FontColor Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes FontColor Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes FontColor = '[] :: [Type]

## FontScale

data FontScale Source #

An enumeration that affects font sizes for superscript and subscript positioning and for (emulated) Small Caps.

Since: 1.50

Constructors

FontScaleNone | Leave the font size unchanged
FontScaleSuperscript | Change the font to a size suitable for superscripts
FontScaleSubscript | Change the font to a size suitable for subscripts
FontScaleSmallCaps | Change the font to a size suitable for Small Caps
AnotherFontScale Int | Catch-all for unknown values

#### Instances

Instances details

Enum FontScale Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: FontScale -> FontScale Source #

pred :: FontScale -> FontScale Source #

toEnum :: Int -> FontScale Source #

fromEnum :: FontScale -> Int Source #

enumFrom :: FontScale -> [FontScale] Source #

enumFromThen :: FontScale -> FontScale -> [FontScale] Source #

enumFromTo :: FontScale -> FontScale -> [FontScale] Source #

enumFromThenTo :: FontScale -> FontScale -> FontScale -> [FontScale] Source #

Show FontScale Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> FontScale -> ShowS Source # show :: FontScale -> String Source # showList :: [FontScale] -> ShowS Source #
Eq FontScale Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: FontScale -> FontScale -> Bool Source # (/=) :: FontScale -> FontScale -> Bool Source #
Ord FontScale Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: FontScale -> FontScale -> Ordering Source # (<) :: FontScale -> FontScale -> Bool Source # (<=) :: FontScale -> FontScale -> Bool Source # (>) :: FontScale -> FontScale -> Bool Source # (>=) :: FontScale -> FontScale -> Bool Source # max :: FontScale -> FontScale -> FontScale Source # min :: FontScale -> FontScale -> FontScale Source #
BoxedEnum FontScale Source # |
Instance details Defined in GI.Pango.Enums
TypedObject FontScale Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes FontScale Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes FontScale Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes FontScale = '[] :: [Type]

## Gravity

data Gravity Source #

`PangoGravity` represents the orientation of glyphs in a segment of text.

This is useful when rendering vertical text layouts. In those situations, the layout is rotated using a non-identity `Matrix`, and then glyph orientation is controlled using `PangoGravity`.

Not every value in this enumeration makes sense for every usage of `PangoGravity`; for example, `GravityAuto` only can be passed to `contextSetBaseGravity` and can only be returned by `contextGetBaseGravity`.

See also: `GravityHint`

Since: 1.16

Constructors

GravitySouth | Glyphs stand upright (default) <img align="right" valign="center" src="m-south.png">
GravityEast | Glyphs are rotated 90 degrees counter-clockwise. <img align="right" valign="center" src="m-east.png">
GravityNorth | Glyphs are upside-down. <img align="right" valign="cener" src="m-north.png">
GravityWest | Glyphs are rotated 90 degrees clockwise. <img align="right" valign="center" src="m-west.png">
GravityAuto | Gravity is resolved from the context matrix
AnotherGravity Int | Catch-all for unknown values

#### Instances

Instances details

Enum Gravity Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Gravity -> Gravity Source #

pred :: Gravity -> Gravity Source #

toEnum :: Int -> Gravity Source #

fromEnum :: Gravity -> Int Source #

enumFrom :: Gravity -> [Gravity] Source #

enumFromThen :: Gravity -> Gravity -> [Gravity] Source #

enumFromTo :: Gravity -> Gravity -> [Gravity] Source #

enumFromThenTo :: Gravity -> Gravity -> Gravity -> [Gravity] Source #

Show Gravity Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Gravity -> ShowS Source # show :: Gravity -> String Source # showList :: [Gravity] -> ShowS Source #
Eq Gravity Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Gravity -> Gravity -> Bool Source # (/=) :: Gravity -> Gravity -> Bool Source #
Ord Gravity Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Gravity -> Gravity -> Ordering Source # (<) :: Gravity -> Gravity -> Bool Source # (<=) :: Gravity -> Gravity -> Bool Source # (>) :: Gravity -> Gravity -> Bool Source # (>=) :: Gravity -> Gravity -> Bool Source # max :: Gravity -> Gravity -> Gravity Source # min :: Gravity -> Gravity -> Gravity Source #
BoxedEnum Gravity Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Gravity Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Gravity Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Gravity Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Gravity = '[] :: [Type]

## GravityHint

data GravityHint Source #

`PangoGravityHint` defines how horizontal scripts should behave in a vertical context.

That is, English excerpts in a vertical paragraph for example.

See also `Gravity`

Since: 1.16

Constructors

GravityHintNatural | scripts will take their natural gravity based on the base gravity and the script. This is the default.
GravityHintStrong | always use the base gravity set, regardless of the script.
GravityHintLine | for scripts not in their natural direction (eg. Latin in East gravity), choose per-script gravity such that every script respects the line progression. This means, Latin and Arabic will take opposite gravities and both flow top-to-bottom for example.
AnotherGravityHint Int | Catch-all for unknown values

#### Instances

Instances details

Enum GravityHint Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: GravityHint -> GravityHint Source #

pred :: GravityHint -> GravityHint Source #

toEnum :: Int -> GravityHint Source #

fromEnum :: GravityHint -> Int Source #

enumFrom :: GravityHint -> [GravityHint] Source #

enumFromThen :: GravityHint -> GravityHint -> [GravityHint] Source #

enumFromTo :: GravityHint -> GravityHint -> [GravityHint] Source #

enumFromThenTo :: GravityHint -> GravityHint -> GravityHint -> [GravityHint] Source #

Show GravityHint Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> GravityHint -> ShowS Source # show :: GravityHint -> String Source # showList :: [GravityHint] -> ShowS Source #
Eq GravityHint Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: GravityHint -> GravityHint -> Bool Source # (/=) :: GravityHint -> GravityHint -> Bool Source #
Ord GravityHint Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: GravityHint -> GravityHint -> Ordering Source #

(<) :: GravityHint -> GravityHint -> Bool Source #

(<=) :: GravityHint -> GravityHint -> Bool Source #

(>) :: GravityHint -> GravityHint -> Bool Source #

(>=) :: GravityHint -> GravityHint -> Bool Source #

max :: GravityHint -> GravityHint -> GravityHint Source #

min :: GravityHint -> GravityHint -> GravityHint Source #

BoxedEnum GravityHint Source # |
Instance details Defined in GI.Pango.Enums
TypedObject GravityHint Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes GravityHint Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes GravityHint Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes GravityHint = '[] :: [Type]

## LayoutDeserializeError

data LayoutDeserializeError Source #

Errors that can be returned by `layoutDeserialize`.

Since: 1.50

Constructors

LayoutDeserializeErrorInvalid | Unspecified error
LayoutDeserializeErrorInvalidValue | A JSon value could not be interpreted
LayoutDeserializeErrorMissingValue | A required JSon member was not found
AnotherLayoutDeserializeError Int | Catch-all for unknown values

#### Instances

Instances details

Enum LayoutDeserializeError Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: LayoutDeserializeError -> LayoutDeserializeError Source #

pred :: LayoutDeserializeError -> LayoutDeserializeError Source #

toEnum :: Int -> LayoutDeserializeError Source #

fromEnum :: LayoutDeserializeError -> Int Source #

enumFrom :: LayoutDeserializeError -> [LayoutDeserializeError] Source #

enumFromThen :: LayoutDeserializeError -> LayoutDeserializeError -> [LayoutDeserializeError] Source #

enumFromTo :: LayoutDeserializeError -> LayoutDeserializeError -> [LayoutDeserializeError] Source #

enumFromThenTo :: LayoutDeserializeError -> LayoutDeserializeError -> LayoutDeserializeError -> [LayoutDeserializeError] Source #

Show LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> LayoutDeserializeError -> ShowS Source # show :: LayoutDeserializeError -> String Source # showList :: [LayoutDeserializeError] -> ShowS Source #
Eq LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: LayoutDeserializeError -> LayoutDeserializeError -> Bool Source # (/=) :: LayoutDeserializeError -> LayoutDeserializeError -> Bool Source #
Ord LayoutDeserializeError Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: LayoutDeserializeError -> LayoutDeserializeError -> Ordering Source #

(<) :: LayoutDeserializeError -> LayoutDeserializeError -> Bool Source #

(<=) :: LayoutDeserializeError -> LayoutDeserializeError -> Bool Source #

(>) :: LayoutDeserializeError -> LayoutDeserializeError -> Bool Source #

(>=) :: LayoutDeserializeError -> LayoutDeserializeError -> Bool Source #

max :: LayoutDeserializeError -> LayoutDeserializeError -> LayoutDeserializeError Source #

min :: LayoutDeserializeError -> LayoutDeserializeError -> LayoutDeserializeError Source #

BoxedEnum LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums
TypedObject LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
GErrorClass LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums Methods gerrorClassDomain :: LayoutDeserializeError -> Text Source #
HasParentTypes LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes LayoutDeserializeError Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes LayoutDeserializeError = '[] :: [Type]

catchLayoutDeserializeError :: IO a -> (LayoutDeserializeError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type `LayoutDeserializeError`. This is a specialized version of `catchGErrorJustDomain`.

handleLayoutDeserializeError :: (LayoutDeserializeError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type `LayoutDeserializeError`. This is a specialized version of `handleGErrorJustDomain`.

## Overline

data Overline Source #

The `PangoOverline` enumeration is used to specify whether text should be overlined, and if so, the type of line.

Since: 1.46

Constructors

OverlineNone | no overline should be drawn
OverlineSingle | Draw a single line above the ink extents of the text being underlined.
AnotherOverline Int | Catch-all for unknown values

#### Instances

Instances details

Enum Overline Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Overline -> Overline Source #

pred :: Overline -> Overline Source #

toEnum :: Int -> Overline Source #

fromEnum :: Overline -> Int Source #

enumFrom :: Overline -> [Overline] Source #

enumFromThen :: Overline -> Overline -> [Overline] Source #

enumFromTo :: Overline -> Overline -> [Overline] Source #

enumFromThenTo :: Overline -> Overline -> Overline -> [Overline] Source #

Show Overline Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Overline -> ShowS Source # show :: Overline -> String Source # showList :: [Overline] -> ShowS Source #
Eq Overline Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Overline -> Overline -> Bool Source # (/=) :: Overline -> Overline -> Bool Source #
Ord Overline Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Overline -> Overline -> Ordering Source # (<) :: Overline -> Overline -> Bool Source # (<=) :: Overline -> Overline -> Bool Source # (>) :: Overline -> Overline -> Bool Source # (>=) :: Overline -> Overline -> Bool Source # max :: Overline -> Overline -> Overline Source # min :: Overline -> Overline -> Overline Source #
BoxedEnum Overline Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Overline Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Overline Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Overline Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Overline = '[] :: [Type]

## RenderPart

data RenderPart Source #

`PangoRenderPart` defines different items to render for such purposes as setting colors.

Since: 1.8

Constructors

RenderPartForeground | the text itself
RenderPartBackground | the area behind the text
RenderPartUnderline | underlines
RenderPartStrikethrough | strikethrough lines
RenderPartOverline | overlines
AnotherRenderPart Int | Catch-all for unknown values

#### Instances

Instances details

Enum RenderPart Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: RenderPart -> RenderPart Source #

pred :: RenderPart -> RenderPart Source #

toEnum :: Int -> RenderPart Source #

fromEnum :: RenderPart -> Int Source #

enumFrom :: RenderPart -> [RenderPart] Source #

enumFromThen :: RenderPart -> RenderPart -> [RenderPart] Source #

enumFromTo :: RenderPart -> RenderPart -> [RenderPart] Source #

enumFromThenTo :: RenderPart -> RenderPart -> RenderPart -> [RenderPart] Source #

Show RenderPart Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> RenderPart -> ShowS Source # show :: RenderPart -> String Source # showList :: [RenderPart] -> ShowS Source #
Eq RenderPart Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: RenderPart -> RenderPart -> Bool Source # (/=) :: RenderPart -> RenderPart -> Bool Source #
Ord RenderPart Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: RenderPart -> RenderPart -> Ordering Source #

(<) :: RenderPart -> RenderPart -> Bool Source #

(<=) :: RenderPart -> RenderPart -> Bool Source #

(>) :: RenderPart -> RenderPart -> Bool Source #

(>=) :: RenderPart -> RenderPart -> Bool Source #

max :: RenderPart -> RenderPart -> RenderPart Source #

min :: RenderPart -> RenderPart -> RenderPart Source #

BoxedEnum RenderPart Source # |
Instance details Defined in GI.Pango.Enums
TypedObject RenderPart Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes RenderPart Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes RenderPart Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes RenderPart = '[] :: [Type]

## Script

data Script Source #

The `PangoScript` enumeration identifies different writing systems.

The values correspond to the names as defined in the Unicode standard. See Unicode Standard Annex 24: Script names

Note that this enumeration is deprecated and will not be updated to include values in newer versions of the Unicode standard. Applications should use the `UnicodeScript` enumeration instead, whose values are interchangeable with `PangoScript`.

Constructors

ScriptInvalidCode | a value never returned from `scriptForUnichar`
ScriptCommon | a character used by multiple different scripts
ScriptInherited | a mark glyph that takes its script from the base glyph to which it is attached
ScriptArabic | Arabic
ScriptArmenian | Armenian
ScriptBengali | Bengali
ScriptBopomofo | Bopomofo
ScriptCherokee | Cherokee
ScriptCoptic | Coptic
ScriptCyrillic | Cyrillic
ScriptDeseret | Deseret
ScriptDevanagari | Devanagari
ScriptEthiopic | Ethiopic
ScriptGeorgian | Georgian
ScriptGothic | Gothic
ScriptGreek | Greek
ScriptGujarati | Gujarati
ScriptGurmukhi | Gurmukhi
ScriptHan | Han
ScriptHangul | Hangul
ScriptHebrew | Hebrew
ScriptHiragana | Hiragana
ScriptKannada | Kannada
ScriptKatakana | Katakana
ScriptKhmer | Khmer
ScriptLao | Lao
ScriptLatin | Latin
ScriptMalayalam | Malayalam
ScriptMongolian | Mongolian
ScriptMyanmar | Myanmar
ScriptOgham | Ogham
ScriptOldItalic | Old Italic
ScriptOriya | Oriya
ScriptRunic | Runic
ScriptSinhala | Sinhala
ScriptSyriac | Syriac
ScriptTamil | Tamil
ScriptTelugu | Telugu
ScriptThaana | Thaana
ScriptThai | Thai
ScriptTibetan | Tibetan
ScriptCanadianAboriginal | Canadian Aboriginal
ScriptYi | Yi
ScriptTagalog | Tagalog
ScriptHanunoo | Hanunoo
ScriptBuhid | Buhid
ScriptTagbanwa | Tagbanwa
ScriptBraille | Braille
ScriptCypriot | Cypriot
ScriptLimbu | Limbu
ScriptOsmanya | Osmanya
ScriptShavian | Shavian
ScriptLinearB | Linear B
ScriptTaiLe | Tai Le
ScriptUgaritic | Ugaritic
ScriptNewTaiLue | New Tai Lue. Since 1.10
ScriptBuginese | Buginese. Since 1.10
ScriptGlagolitic | Glagolitic. Since 1.10
ScriptTifinagh | Tifinagh. Since 1.10
ScriptSylotiNagri | Syloti Nagri. Since 1.10
ScriptOldPersian | Old Persian. Since 1.10
ScriptKharoshthi | Kharoshthi. Since 1.10
ScriptUnknown | an unassigned code point. Since 1.14
ScriptBalinese | Balinese. Since 1.14
ScriptCuneiform | Cuneiform. Since 1.14
ScriptPhoenician | Phoenician. Since 1.14
ScriptPhagsPa | Phags-pa. Since 1.14
ScriptNko | N'Ko. Since 1.14
ScriptKayahLi | Kayah Li. Since 1.20.1
ScriptLepcha | Lepcha. Since 1.20.1
ScriptRejang | Rejang. Since 1.20.1
ScriptSundanese | Sundanese. Since 1.20.1
ScriptSaurashtra | Saurashtra. Since 1.20.1
ScriptCham | Cham. Since 1.20.1
ScriptOlChiki | Ol Chiki. Since 1.20.1
ScriptVai | Vai. Since 1.20.1
ScriptCarian | Carian. Since 1.20.1
ScriptLycian | Lycian. Since 1.20.1
ScriptLydian | Lydian. Since 1.20.1
ScriptBatak | Batak. Since 1.32
ScriptBrahmi | Brahmi. Since 1.32
ScriptMandaic | Mandaic. Since 1.32
ScriptChakma | Chakma. Since: 1.32
ScriptMeroiticCursive | Meroitic Cursive. Since: 1.32
ScriptMeroiticHieroglyphs | Meroitic Hieroglyphs. Since: 1.32
ScriptMiao | Miao. Since: 1.32
ScriptSharada | Sharada. Since: 1.32
ScriptSoraSompeng | Sora Sompeng. Since: 1.32
ScriptTakri | Takri. Since: 1.32
ScriptBassaVah | Bassa. Since: 1.40
ScriptCaucasianAlbanian | Caucasian Albanian. Since: 1.40
ScriptDuployan | Duployan. Since: 1.40
ScriptElbasan | Elbasan. Since: 1.40
ScriptGrantha | Grantha. Since: 1.40
ScriptKhojki | Kjohki. Since: 1.40
ScriptKhudawadi | Khudawadi, Sindhi. Since: 1.40
ScriptLinearA | Linear A. Since: 1.40
ScriptMahajani | Mahajani. Since: 1.40
ScriptManichaean | Manichaean. Since: 1.40
ScriptMendeKikakui | Mende Kikakui. Since: 1.40
ScriptModi | Modi. Since: 1.40
ScriptMro | Mro. Since: 1.40
ScriptNabataean | Nabataean. Since: 1.40
ScriptOldNorthArabian | Old North Arabian. Since: 1.40
ScriptOldPermic | Old Permic. Since: 1.40
ScriptPahawhHmong | Pahawh Hmong. Since: 1.40
ScriptPalmyrene | Palmyrene. Since: 1.40
ScriptPauCinHau | Pau Cin Hau. Since: 1.40
ScriptPsalterPahlavi | Psalter Pahlavi. Since: 1.40
ScriptSiddham | Siddham. Since: 1.40
ScriptTirhuta | Tirhuta. Since: 1.40
ScriptWarangCiti | Warang Citi. Since: 1.40
ScriptAhom | Ahom. Since: 1.40
ScriptAnatolianHieroglyphs | Anatolian Hieroglyphs. Since: 1.40
ScriptHatran | Hatran. Since: 1.40
ScriptMultani | Multani. Since: 1.40
ScriptOldHungarian | Old Hungarian. Since: 1.40
ScriptSignwriting | Signwriting. Since: 1.40
AnotherScript Int | Catch-all for unknown values

#### Instances

Instances details

Enum Script Source # |
Instance details Defined in GI.Pango.Enums Methods succ :: Script -> Script Source # pred :: Script -> Script Source # toEnum :: Int -> Script Source # fromEnum :: Script -> Int Source # enumFrom :: Script -> [Script] Source # enumFromThen :: Script -> Script -> [Script] Source # enumFromTo :: Script -> Script -> [Script] Source # enumFromThenTo :: Script -> Script -> Script -> [Script] Source #
Show Script Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Script -> ShowS Source # show :: Script -> String Source # showList :: [Script] -> ShowS Source #
Eq Script Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Script -> Script -> Bool Source # (/=) :: Script -> Script -> Bool Source #
Ord Script Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Script -> Script -> Ordering Source # (<) :: Script -> Script -> Bool Source # (<=) :: Script -> Script -> Bool Source # (>) :: Script -> Script -> Bool Source # (>=) :: Script -> Script -> Bool Source # max :: Script -> Script -> Script Source # min :: Script -> Script -> Script Source #
BoxedEnum Script Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Script Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Script Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Script Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Script = '[] :: [Type]

## Stretch

data Stretch Source #

An enumeration specifying the width of the font relative to other designs within a family.

Constructors

StretchUltraCondensed | ultra condensed width
StretchExtraCondensed | extra condensed width
StretchCondensed | condensed width
StretchSemiCondensed | semi condensed width
StretchNormal | the normal width
StretchSemiExpanded | semi expanded width
StretchExpanded | expanded width
StretchExtraExpanded | extra expanded width
StretchUltraExpanded | ultra expanded width
AnotherStretch Int | Catch-all for unknown values

#### Instances

Instances details

Enum Stretch Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Stretch -> Stretch Source #

pred :: Stretch -> Stretch Source #

toEnum :: Int -> Stretch Source #

fromEnum :: Stretch -> Int Source #

enumFrom :: Stretch -> [Stretch] Source #

enumFromThen :: Stretch -> Stretch -> [Stretch] Source #

enumFromTo :: Stretch -> Stretch -> [Stretch] Source #

enumFromThenTo :: Stretch -> Stretch -> Stretch -> [Stretch] Source #

Show Stretch Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Stretch -> ShowS Source # show :: Stretch -> String Source # showList :: [Stretch] -> ShowS Source #
Eq Stretch Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Stretch -> Stretch -> Bool Source # (/=) :: Stretch -> Stretch -> Bool Source #
Ord Stretch Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Stretch -> Stretch -> Ordering Source # (<) :: Stretch -> Stretch -> Bool Source # (<=) :: Stretch -> Stretch -> Bool Source # (>) :: Stretch -> Stretch -> Bool Source # (>=) :: Stretch -> Stretch -> Bool Source # max :: Stretch -> Stretch -> Stretch Source # min :: Stretch -> Stretch -> Stretch Source #
BoxedEnum Stretch Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Stretch Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Stretch Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Stretch Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Stretch = '[] :: [Type]

## Style

data Style Source #

An enumeration specifying the various slant styles possible for a font.

Constructors

StyleNormal | the font is upright.
StyleOblique | the font is slanted, but in a roman style.
StyleItalic | the font is slanted in an italic style.
AnotherStyle Int | Catch-all for unknown values

#### Instances

Instances details

Enum Style Source # |
Instance details Defined in GI.Pango.Enums Methods succ :: Style -> Style Source # pred :: Style -> Style Source # toEnum :: Int -> Style Source # fromEnum :: Style -> Int Source # enumFrom :: Style -> [Style] Source # enumFromThen :: Style -> Style -> [Style] Source # enumFromTo :: Style -> Style -> [Style] Source # enumFromThenTo :: Style -> Style -> Style -> [Style] Source #
Show Style Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Style -> ShowS Source # show :: Style -> String Source # showList :: [Style] -> ShowS Source #
Eq Style Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Style -> Style -> Bool Source # (/=) :: Style -> Style -> Bool Source #
Ord Style Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Style -> Style -> Ordering Source # (<) :: Style -> Style -> Bool Source # (<=) :: Style -> Style -> Bool Source # (>) :: Style -> Style -> Bool Source # (>=) :: Style -> Style -> Bool Source # max :: Style -> Style -> Style Source # min :: Style -> Style -> Style Source #
BoxedEnum Style Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Style Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Style Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Style Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Style = '[] :: [Type]

## TabAlign

data TabAlign Source #

`PangoTabAlign` specifies where the text appears relative to the tab stop position.

Constructors

TabAlignLeft | the text appears to the right of the tab stop position
TabAlignRight | the text appears to the left of the tab stop position until the available space is filled. Since: 1.50
TabAlignCenter | the text is centered at the tab stop position until the available space is filled. Since: 1.50
TabAlignDecimal | text before the first occurrence of the decimal point character appears to the left of the tab stop position (until the available space is filled), the rest to the right. Since: 1.50
AnotherTabAlign Int | Catch-all for unknown values

#### Instances

Instances details

Enum TabAlign Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: TabAlign -> TabAlign Source #

pred :: TabAlign -> TabAlign Source #

toEnum :: Int -> TabAlign Source #

fromEnum :: TabAlign -> Int Source #

enumFrom :: TabAlign -> [TabAlign] Source #

enumFromThen :: TabAlign -> TabAlign -> [TabAlign] Source #

enumFromTo :: TabAlign -> TabAlign -> [TabAlign] Source #

enumFromThenTo :: TabAlign -> TabAlign -> TabAlign -> [TabAlign] Source #

Show TabAlign Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> TabAlign -> ShowS Source # show :: TabAlign -> String Source # showList :: [TabAlign] -> ShowS Source #
Eq TabAlign Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: TabAlign -> TabAlign -> Bool Source # (/=) :: TabAlign -> TabAlign -> Bool Source #
Ord TabAlign Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: TabAlign -> TabAlign -> Ordering Source # (<) :: TabAlign -> TabAlign -> Bool Source # (<=) :: TabAlign -> TabAlign -> Bool Source # (>) :: TabAlign -> TabAlign -> Bool Source # (>=) :: TabAlign -> TabAlign -> Bool Source # max :: TabAlign -> TabAlign -> TabAlign Source # min :: TabAlign -> TabAlign -> TabAlign Source #
BoxedEnum TabAlign Source # |
Instance details Defined in GI.Pango.Enums
TypedObject TabAlign Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes TabAlign Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes TabAlign Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes TabAlign = '[] :: [Type]

## TextTransform

data TextTransform Source #

An enumeration that affects how Pango treats characters during shaping.

Since: 1.50

Constructors

TextTransformNone | Leave text unchanged
TextTransformLowercase | Display letters and numbers as lowercase
TextTransformUppercase | Display letters and numbers as uppercase
TextTransformCapitalize | Display the first character of a word in titlecase
AnotherTextTransform Int | Catch-all for unknown values

#### Instances

Instances details

Enum TextTransform Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: TextTransform -> TextTransform Source #

pred :: TextTransform -> TextTransform Source #

toEnum :: Int -> TextTransform Source #

fromEnum :: TextTransform -> Int Source #

enumFrom :: TextTransform -> [TextTransform] Source #

enumFromThen :: TextTransform -> TextTransform -> [TextTransform] Source #

enumFromTo :: TextTransform -> TextTransform -> [TextTransform] Source #

enumFromThenTo :: TextTransform -> TextTransform -> TextTransform -> [TextTransform] Source #

Show TextTransform Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> TextTransform -> ShowS Source # show :: TextTransform -> String Source # showList :: [TextTransform] -> ShowS Source #
Eq TextTransform Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: TextTransform -> TextTransform -> Bool Source # (/=) :: TextTransform -> TextTransform -> Bool Source #
Ord TextTransform Source # |

Instance details

Defined in GI.Pango.Enums

Methods

compare :: TextTransform -> TextTransform -> Ordering Source #

(<) :: TextTransform -> TextTransform -> Bool Source #

(<=) :: TextTransform -> TextTransform -> Bool Source #

(>) :: TextTransform -> TextTransform -> Bool Source #

(>=) :: TextTransform -> TextTransform -> Bool Source #

max :: TextTransform -> TextTransform -> TextTransform Source #

min :: TextTransform -> TextTransform -> TextTransform Source #

BoxedEnum TextTransform Source # |
Instance details Defined in GI.Pango.Enums
TypedObject TextTransform Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes TextTransform Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes TextTransform Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes TextTransform = '[] :: [Type]

## Underline

data Underline Source #

The `PangoUnderline` enumeration is used to specify whether text should be underlined, and if so, the type of underlining.

Constructors

UnderlineNone | no underline should be drawn
UnderlineSingle | a single underline should be drawn
UnderlineDouble | a double underline should be drawn
UnderlineLow | a single underline should be drawn at a position beneath the ink extents of the text being underlined. This should be used only for underlining single characters, such as for keyboard accelerators. `UnderlineSingle` should be used for extended portions of text.
UnderlineError | an underline indicating an error should be drawn below. The exact style of rendering is up to the `PangoRenderer` in use, but typical styles include wavy or dotted lines. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4.
UnderlineSingleLine | Like `pANGOUNDERLINESINGLE`, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
UnderlineDoubleLine | Like `pANGOUNDERLINEDOUBLE`, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
UnderlineErrorLine | Like `pANGOUNDERLINEERROR`, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
AnotherUnderline Int | Catch-all for unknown values

#### Instances

Instances details

Enum Underline Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Underline -> Underline Source #

pred :: Underline -> Underline Source #

toEnum :: Int -> Underline Source #

fromEnum :: Underline -> Int Source #

enumFrom :: Underline -> [Underline] Source #

enumFromThen :: Underline -> Underline -> [Underline] Source #

enumFromTo :: Underline -> Underline -> [Underline] Source #

enumFromThenTo :: Underline -> Underline -> Underline -> [Underline] Source #

Show Underline Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Underline -> ShowS Source # show :: Underline -> String Source # showList :: [Underline] -> ShowS Source #
Eq Underline Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Underline -> Underline -> Bool Source # (/=) :: Underline -> Underline -> Bool Source #
Ord Underline Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Underline -> Underline -> Ordering Source # (<) :: Underline -> Underline -> Bool Source # (<=) :: Underline -> Underline -> Bool Source # (>) :: Underline -> Underline -> Bool Source # (>=) :: Underline -> Underline -> Bool Source # max :: Underline -> Underline -> Underline Source # min :: Underline -> Underline -> Underline Source #
BoxedEnum Underline Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Underline Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Underline Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Underline Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Underline = '[] :: [Type]

## Variant

data Variant Source #

An enumeration specifying capitalization variant of the font.

Constructors

VariantNormal | A normal font.
VariantSmallCaps | A font with the lower case characters replaced by smaller variants of the capital characters.
VariantAllSmallCaps | A font with all characters replaced by smaller variants of the capital characters. Since: 1.50
VariantPetiteCaps | A font with the lower case characters replaced by smaller variants of the capital characters. Petite Caps can be even smaller than Small Caps. Since: 1.50
VariantAllPetiteCaps | A font with all characters replaced by smaller variants of the capital characters. Petite Caps can be even smaller than Small Caps. Since: 1.50
VariantUnicase | A font with the upper case characters replaced by smaller variants of the capital letters. Since: 1.50
VariantTitleCaps | A font with capital letters that are more suitable for all-uppercase titles. Since: 1.50
AnotherVariant Int | Catch-all for unknown values

#### Instances

Instances details

Enum Variant Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: Variant -> Variant Source #

pred :: Variant -> Variant Source #

toEnum :: Int -> Variant Source #

fromEnum :: Variant -> Int Source #

enumFrom :: Variant -> [Variant] Source #

enumFromThen :: Variant -> Variant -> [Variant] Source #

enumFromTo :: Variant -> Variant -> [Variant] Source #

enumFromThenTo :: Variant -> Variant -> Variant -> [Variant] Source #

Show Variant Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Variant -> ShowS Source # show :: Variant -> String Source # showList :: [Variant] -> ShowS Source #
Eq Variant Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Variant -> Variant -> Bool Source # (/=) :: Variant -> Variant -> Bool Source #
Ord Variant Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Variant -> Variant -> Ordering Source # (<) :: Variant -> Variant -> Bool Source # (<=) :: Variant -> Variant -> Bool Source # (>) :: Variant -> Variant -> Bool Source # (>=) :: Variant -> Variant -> Bool Source # max :: Variant -> Variant -> Variant Source # min :: Variant -> Variant -> Variant Source #
BoxedEnum Variant Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Variant Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Variant Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Variant Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Variant = '[] :: [Type]

## Weight

data Weight Source #

An enumeration specifying the weight (boldness) of a font.

Weight is specified as a numeric value ranging from 100 to 1000. This enumeration simply provides some common, predefined values.

Constructors

WeightThin | the thin weight (= 100) Since: 1.24
WeightUltralight | the ultralight weight (= 200)
WeightLight | the light weight (= 300)
WeightSemilight | the semilight weight (= 350) Since: 1.36.7
WeightBook | the book weight (= 380) Since: 1.24)
WeightNormal | the default weight (= 400)
WeightMedium | the medium weight (= 500) Since: 1.24
WeightSemibold | the semibold weight (= 600)
WeightBold | the bold weight (= 700)
WeightUltrabold | the ultrabold weight (= 800)
WeightHeavy | the heavy weight (= 900)
WeightUltraheavy | the ultraheavy weight (= 1000) Since: 1.24
AnotherWeight Int | Catch-all for unknown values

#### Instances

Instances details

Enum Weight Source # |
Instance details Defined in GI.Pango.Enums Methods succ :: Weight -> Weight Source # pred :: Weight -> Weight Source # toEnum :: Int -> Weight Source # fromEnum :: Weight -> Int Source # enumFrom :: Weight -> [Weight] Source # enumFromThen :: Weight -> Weight -> [Weight] Source # enumFromTo :: Weight -> Weight -> [Weight] Source # enumFromThenTo :: Weight -> Weight -> Weight -> [Weight] Source #
Show Weight Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> Weight -> ShowS Source # show :: Weight -> String Source # showList :: [Weight] -> ShowS Source #
Eq Weight Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: Weight -> Weight -> Bool Source # (/=) :: Weight -> Weight -> Bool Source #
Ord Weight Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: Weight -> Weight -> Ordering Source # (<) :: Weight -> Weight -> Bool Source # (<=) :: Weight -> Weight -> Bool Source # (>) :: Weight -> Weight -> Bool Source # (>=) :: Weight -> Weight -> Bool Source # max :: Weight -> Weight -> Weight Source # min :: Weight -> Weight -> Weight Source #
BoxedEnum Weight Source # |
Instance details Defined in GI.Pango.Enums
TypedObject Weight Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes Weight Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes Weight Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes Weight = '[] :: [Type]

## WrapMode

data WrapMode Source #

`PangoWrapMode` describes how to wrap the lines of a `PangoLayout` to the desired width.

For `pANGOWRAPWORD`, Pango uses break opportunities that are determined by the Unicode line breaking algorithm. For `pANGOWRAPCHAR`, Pango allows breaking at grapheme boundaries that are determined by the Unicode text segmentation algorithm.

Constructors

WrapModeWord | wrap lines at word boundaries.
WrapModeChar | wrap lines at character boundaries.
WrapModeWordChar | wrap lines at word boundaries, but fall back to character boundaries if there is not enough space for a full word.
WrapModeNone | do not wrap. Since: 1.56
AnotherWrapMode Int | Catch-all for unknown values

#### Instances

Instances details

Enum WrapMode Source # |

Instance details

Defined in GI.Pango.Enums

Methods

succ :: WrapMode -> WrapMode Source #

pred :: WrapMode -> WrapMode Source #

toEnum :: Int -> WrapMode Source #

fromEnum :: WrapMode -> Int Source #

enumFrom :: WrapMode -> [WrapMode] Source #

enumFromThen :: WrapMode -> WrapMode -> [WrapMode] Source #

enumFromTo :: WrapMode -> WrapMode -> [WrapMode] Source #

enumFromThenTo :: WrapMode -> WrapMode -> WrapMode -> [WrapMode] Source #

Show WrapMode Source # |
Instance details Defined in GI.Pango.Enums Methods showsPrec :: Int -> WrapMode -> ShowS Source # show :: WrapMode -> String Source # showList :: [WrapMode] -> ShowS Source #
Eq WrapMode Source # |
Instance details Defined in GI.Pango.Enums Methods (==) :: WrapMode -> WrapMode -> Bool Source # (/=) :: WrapMode -> WrapMode -> Bool Source #
Ord WrapMode Source # |
Instance details Defined in GI.Pango.Enums Methods compare :: WrapMode -> WrapMode -> Ordering Source # (<) :: WrapMode -> WrapMode -> Bool Source # (<=) :: WrapMode -> WrapMode -> Bool Source # (>) :: WrapMode -> WrapMode -> Bool Source # (>=) :: WrapMode -> WrapMode -> Bool Source # max :: WrapMode -> WrapMode -> WrapMode Source # min :: WrapMode -> WrapMode -> WrapMode Source #
BoxedEnum WrapMode Source # |
Instance details Defined in GI.Pango.Enums
TypedObject WrapMode Source # |
Instance details Defined in GI.Pango.Enums Methods glibType :: IO GType Source #
HasParentTypes WrapMode Source # |
Instance details Defined in GI.Pango.Enums
type ParentTypes WrapMode Source # |
Instance details Defined in GI.Pango.Enums type ParentTypes WrapMode = '[] :: [Type]