gi-pango-1.0.23: Pango bindings

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

GI.Pango.Flags

Contents

- Flags
  - FontMask
  - ShapeFlags
  - ShowFlags

Description

Synopsis

- data FontMask
  - = FontMaskFamily
  - | FontMaskStyle
  - | FontMaskVariant
  - | FontMaskWeight
  - | FontMaskStretch
  - | FontMaskSize
  - | FontMaskGravity
  - | FontMaskVariations
  - | AnotherFontMask Int
- data ShapeFlags
  - = ShapeFlagsNone
  - | ShapeFlagsRoundPositions
  - | AnotherShapeFlags Int
- data ShowFlags
  - = ShowFlagsNone
  - | ShowFlagsSpaces
  - | ShowFlagsLineBreaks
  - | ShowFlagsIgnorables
  - | AnotherShowFlags Int

# Flags

## FontMask

data FontMask Source #

The bits in a `FontMask` correspond to fields in a `FontDescription` that have been set.

Constructors

FontMaskFamily | the font family is specified.
FontMaskStyle | the font style is specified.
FontMaskVariant | the font variant is specified.
FontMaskWeight | the font weight is specified.
FontMaskStretch | the font stretch is specified.
FontMaskSize | the font size is specified.
FontMaskGravity | the font gravity is specified (Since: 1.16.)
FontMaskVariations | OpenType font variations are specified (Since: 1.42)
AnotherFontMask Int | Catch-all for unknown values

#### Instances

Instances details

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

## ShapeFlags

data ShapeFlags Source #

Flags influencing the shaping process. These can be passed to `shapeWithFlags`.

Constructors

ShapeFlagsNone | Default value.
ShapeFlagsRoundPositions | Round glyph positions and widths to whole device units. This option should be set if the target renderer can't do subpixel positioning of glyphs.
AnotherShapeFlags Int | Catch-all for unknown values

#### Instances

Instances details

Enum ShapeFlags Source # |

Instance details

Defined in GI.Pango.Flags

Methods

succ :: ShapeFlags -> ShapeFlags

pred :: ShapeFlags -> ShapeFlags

toEnum :: Int -> ShapeFlags #

fromEnum :: ShapeFlags -> Int #

enumFrom :: ShapeFlags -> [ShapeFlags]

enumFromThen :: ShapeFlags -> ShapeFlags -> [ShapeFlags]

enumFromTo :: ShapeFlags -> ShapeFlags -> [ShapeFlags]

enumFromThenTo :: ShapeFlags -> ShapeFlags -> ShapeFlags -> [ShapeFlags]

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

## ShowFlags

data ShowFlags Source #

These flags affect how Pango treats characters that are normally not visible in the output.

Constructors

ShowFlagsNone | No special treatment for invisible characters
ShowFlagsSpaces | Render spaces, tabs and newlines visibly
ShowFlagsLineBreaks | Render line breaks visibly
ShowFlagsIgnorables | Render default-ignorable Unicode characters visibly
AnotherShowFlags Int | Catch-all for unknown values

#### Instances

Instances details

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