    {-# LANGUAGE PatternSynonyms, ScopedTypeVariables, ViewPatterns #-}

    -- | Copyright  : Will Thompson, Iñaki García Etxebarria and Jonas Platte
    -- License    : LGPL-2.1
    -- Maintainer : Iñaki García Etxebarria

    #if !defined(__HADDOCK_VERSION__)
    #define ENABLE_OVERLOADING
    #endif

    module GI.Pango.Constants
        (
        pattern VERSION_MIN_REQUIRED            ,
        pattern UNKNOWN_GLYPH_WIDTH             ,
        pattern UNKNOWN_GLYPH_HEIGHT            ,
        pattern SCALE                           ,
        pattern RENDER_TYPE_NONE                ,
        pattern GLYPH_UNKNOWN_FLAG              ,
        pattern GLYPH_INVALID_INPUT             ,
        pattern GLYPH_EMPTY                     ,
        pattern ENGINE_TYPE_SHAPE               ,
        pattern ENGINE_TYPE_LANG                ,
        pattern ATTR_INDEX_FROM_TEXT_BEGINNING  ,
        pattern ANALYSIS_FLAG_NEED_HYPHEN       ,
        pattern ANALYSIS_FLAG_IS_ELLIPSIS       ,
        pattern ANALYSIS_FLAG_CENTERED_BASELINE ,

        ) where

    import Data.GI.Base.ShortPrelude
    import qualified Data.GI.Base.ShortPrelude as SP
    import qualified Data.GI.Base.Overloading as O
    import qualified Prelude as P

    import qualified Data.GI.Base.Attributes as GI.Attributes
    import qualified Data.GI.Base.BasicTypes as B.Types
    import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
    import qualified Data.GI.Base.GArray as B.GArray
    import qualified Data.GI.Base.GClosure as B.GClosure
    import qualified Data.GI.Base.GError as B.GError
    import qualified Data.GI.Base.GVariant as B.GVariant
    import qualified Data.GI.Base.GValue as B.GValue
    import qualified Data.GI.Base.GParamSpec as B.GParamSpec
    import qualified Data.GI.Base.CallStack as B.CallStack
    import qualified Data.GI.Base.Properties as B.Properties
    import qualified Data.GI.Base.Signals as B.Signals
    import qualified Control.Monad.IO.Class as MIO
    import qualified Data.Text as T
    import qualified Data.ByteString.Char8 as B
    import qualified Data.Map as Map
    import qualified Foreign.Ptr as FP
    import qualified GHC.OverloadedLabels as OL

    -- | A macro that should be defined by the user prior to including
    -- the pango.h header.
    -- The definition should be one of the predefined Pango version
    -- macros: @/PANGO_VERSION_1_2/@, @/PANGO_VERSION_1_4/@,...
    --
    -- This macro defines the earliest version of Pango that the package is
    -- required to be able to compile against.
    --
    -- If the compiler is configured to warn about the use of deprecated
    -- functions, then using functions that were deprecated in version
    -- 'GI.Pango.Constants.VERSION_MIN_REQUIRED' or earlier will cause warnings (but
    -- using functions deprecated in later releases will not).
    --
    -- /Since: 1.42/
    pattern $bVERSION_MIN_REQUIRED :: Int32
    $mVERSION_MIN_REQUIRED :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    VERSION_MIN_REQUIRED = 2 :: Int32

    -- | /No description available in the introspection data./
    pattern $bUNKNOWN_GLYPH_WIDTH :: Int32
    $mUNKNOWN_GLYPH_WIDTH :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    UNKNOWN_GLYPH_WIDTH = 10 :: Int32

    -- | /No description available in the introspection data./
    pattern $bUNKNOWN_GLYPH_HEIGHT :: Int32
    $mUNKNOWN_GLYPH_HEIGHT :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    UNKNOWN_GLYPH_HEIGHT = 14 :: Int32

    -- | The 'GI.Pango.Constants.SCALE' macro represents the scale between dimensions used
    -- for Pango distances and device units. (The definition of device
    -- units is dependent on the output device; it will typically be pixels
    -- for a screen, and points for a printer.) 'GI.Pango.Constants.SCALE' is currently
    -- 1024, but this may be changed in the future.
    --
    -- When setting font sizes, device units are always considered to be
    -- points (as in \"12 point font\"), rather than pixels.
    pattern $bSCALE :: Int32
    $mSCALE :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    SCALE = 1024 :: Int32

    {-# DEPRECATED RENDER_TYPE_NONE ["(Since version 1.38)"] #-}
    -- | A string constant defining the render type
    -- for engines that are not rendering-system specific.
    pattern $bRENDER_TYPE_NONE :: Text
    $mRENDER_TYPE_NONE :: forall r. Text -> (Void# -> r) -> (Void# -> r) -> r
    RENDER_TYPE_NONE = "PangoRenderNone" :: T.Text

    -- | The 'GI.Pango.Constants.GLYPH_UNKNOWN_FLAG' macro is a flag value that can be added to
    -- a @/gunichar/@ value of a valid Unicode character, to produce a @/PangoGlyph/@
    -- value, representing an unknown-character glyph for the respective @/gunichar/@.
    pattern $bGLYPH_UNKNOWN_FLAG :: Word32
    $mGLYPH_UNKNOWN_FLAG :: forall r. Word32 -> (Void# -> r) -> (Void# -> r) -> r
    GLYPH_UNKNOWN_FLAG = 268435456 :: Word32

    -- | The 'GI.Pango.Constants.GLYPH_INVALID_INPUT' macro represents a @/PangoGlyph/@ value that has a
    -- special meaning of invalid input.  t'GI.Pango.Objects.Layout.Layout' produces one such glyph
    -- per invalid input UTF-8 byte and such a glyph is rendered as a crossed
    -- box.
    --
    -- Note that this value is defined such that it has the 'GI.Pango.Constants.GLYPH_UNKNOWN_FLAG'
    -- on.
    --
    -- /Since: 1.20/
    pattern $bGLYPH_INVALID_INPUT :: Word32
    $mGLYPH_INVALID_INPUT :: forall r. Word32 -> (Void# -> r) -> (Void# -> r) -> r
    GLYPH_INVALID_INPUT = 4294967295 :: Word32

    -- | The 'GI.Pango.Constants.GLYPH_EMPTY' macro represents a @/PangoGlyph/@ value that has a
    --  special meaning, which is a zero-width empty glyph.  This is useful for
    -- example in shaper modules, to use as the glyph for various zero-width
    -- Unicode characters (those passing 'GI.Pango.Functions.isZeroWidth').
    pattern $bGLYPH_EMPTY :: Word32
    $mGLYPH_EMPTY :: forall r. Word32 -> (Void# -> r) -> (Void# -> r) -> r
    GLYPH_EMPTY = 268435455 :: Word32

    {-# DEPRECATED ENGINE_TYPE_SHAPE ["(Since version 1.38)"] #-}
    -- | A string constant defining the engine type for shaping engines.
    -- These engines derive from t'GI.Pango.Objects.EngineShape.EngineShape'.
    pattern $bENGINE_TYPE_SHAPE :: Text
    $mENGINE_TYPE_SHAPE :: forall r. Text -> (Void# -> r) -> (Void# -> r) -> r
    ENGINE_TYPE_SHAPE = "PangoEngineShape" :: T.Text

    {-# DEPRECATED ENGINE_TYPE_LANG ["(Since version 1.38)"] #-}
    -- | A string constant defining the engine type for language engines.
    -- These engines derive from t'GI.Pango.Objects.EngineLang.EngineLang'.
    pattern $bENGINE_TYPE_LANG :: Text
    $mENGINE_TYPE_LANG :: forall r. Text -> (Void# -> r) -> (Void# -> r) -> r
    ENGINE_TYPE_LANG = "PangoEngineLang" :: T.Text

    -- | This value can be used to set the start_index member of a t'GI.Pango.Structs.Attribute.Attribute'
    -- such that the attribute covers from the beginning of the text.
    --
    -- /Since: 1.24/
    pattern $bATTR_INDEX_FROM_TEXT_BEGINNING :: Int32
    $mATTR_INDEX_FROM_TEXT_BEGINNING :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    ATTR_INDEX_FROM_TEXT_BEGINNING = 0 :: Int32

    -- | This flag tells Pango to add a hyphen at the end of the
    -- run during shaping.
    --
    -- /Since: 1.44/
    pattern $bANALYSIS_FLAG_NEED_HYPHEN :: Int32
    $mANALYSIS_FLAG_NEED_HYPHEN :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    ANALYSIS_FLAG_NEED_HYPHEN = 4 :: Int32

    -- | This flag is used to mark runs that hold ellipsized text,
    -- in an ellipsized layout.
    --
    -- /Since: 1.36.7/
    pattern $bANALYSIS_FLAG_IS_ELLIPSIS :: Int32
    $mANALYSIS_FLAG_IS_ELLIPSIS :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    ANALYSIS_FLAG_IS_ELLIPSIS = 2 :: Int32

    -- | Whether the segment should be shifted to center around the baseline.
    -- Used in vertical writing directions mostly.
    --
    -- /Since: 1.16/
    pattern $bANALYSIS_FLAG_CENTERED_BASELINE :: Int32
    $mANALYSIS_FLAG_CENTERED_BASELINE :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
    ANALYSIS_FLAG_CENTERED_BASELINE = 1 :: Int32