{-# 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 (garetxe@gmail.com)
-}

#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
       && !defined(__HADDOCK_VERSION__))

module GI.GObject.Constants
    (
    pattern VALUE_NOCOPY_CONTENTS           ,
    pattern VALUE_COLLECT_FORMAT_MAX_LENGTH ,
    pattern TYPE_RESERVED_USER_FIRST        ,
    pattern TYPE_RESERVED_GLIB_LAST         ,
    pattern TYPE_RESERVED_GLIB_FIRST        ,
    pattern TYPE_RESERVED_BSE_LAST          ,
    pattern TYPE_RESERVED_BSE_FIRST         ,
    pattern TYPE_FUNDAMENTAL_SHIFT          ,
    pattern TYPE_FUNDAMENTAL_MAX            ,
    pattern TYPE_FLAG_RESERVED_ID_BIT       ,
    pattern SIGNAL_MATCH_MASK               ,
    pattern SIGNAL_FLAGS_MASK               ,
    pattern PARAM_USER_SHIFT                ,
    pattern PARAM_STATIC_STRINGS            ,
    pattern PARAM_MASK                      ,

    ) 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.ManagedPtr as B.ManagedPtr
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.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP


{- |
If passed to @/G_VALUE_COLLECT()/@, allocated data won\'t be copied
but used verbatim. This does not affect ref-counted types like
objects.
-}
pattern VALUE_NOCOPY_CONTENTS = 134217728 :: Int32

{- |
The maximal number of @/GTypeCValues/@ which can be collected for a
single 'GI.GObject.Structs.Value.Value'.
-}
pattern VALUE_COLLECT_FORMAT_MAX_LENGTH = 8 :: Int32

{- |
First available fundamental type number to create new fundamental
type id with @/G_TYPE_MAKE_FUNDAMENTAL()/@.
-}
pattern TYPE_RESERVED_USER_FIRST = 49 :: Int32

{- |
Last fundamental type number reserved for GLib.
-}
pattern TYPE_RESERVED_GLIB_LAST = 31 :: Int32

{- |
First fundamental type number to create a new fundamental type id with
@/G_TYPE_MAKE_FUNDAMENTAL()/@ reserved for GLib.
-}
pattern TYPE_RESERVED_GLIB_FIRST = 22 :: Int32

{- |
Last fundamental type number reserved for BSE.
-}
pattern TYPE_RESERVED_BSE_LAST = 48 :: Int32

{- |
First fundamental type number to create a new fundamental type id with
@/G_TYPE_MAKE_FUNDAMENTAL()/@ reserved for BSE.
-}
pattern TYPE_RESERVED_BSE_FIRST = 32 :: Int32

{- |
Shift value used in converting numbers to type IDs.
-}
pattern TYPE_FUNDAMENTAL_SHIFT = 2 :: Int32

{- |
An integer constant that represents the number of identifiers reserved
for types that are assigned at compile-time.
-}
pattern TYPE_FUNDAMENTAL_MAX = 255 :: Int32

{- |
A bit in the type number that\'s supposed to be left untouched.
-}
pattern TYPE_FLAG_RESERVED_ID_BIT = 1 :: Word64

{- |
A mask for all 'GI.GObject.Flags.SignalMatchType' bits.
-}
pattern SIGNAL_MATCH_MASK = 63 :: Int32

{- |
A mask for all 'GI.GObject.Flags.SignalFlags' bits.
-}
pattern SIGNAL_FLAGS_MASK = 511 :: Int32

{- |
Minimum shift count to be used for user defined flags, to be stored in
'GI.GObject.Objects.ParamSpec.ParamSpec'.@/flags/@. The maximum allowed is 10.
-}
pattern PARAM_USER_SHIFT = 8 :: Int32

{- |
'GI.GObject.Flags.ParamFlags' value alias for 'GI.GObject.Flags.ParamFlagsStaticName' | 'GI.GObject.Flags.ParamFlagsStaticNick' | 'GI.GObject.Flags.ParamFlagsStaticBlurb'.

Since 2.13.0
-}
pattern PARAM_STATIC_STRINGS = 224 :: Int32

{- |
Mask containing the bits of 'GI.GObject.Objects.ParamSpec.ParamSpec'.@/flags/@ which are reserved for GLib.
-}
pattern PARAM_MASK = 255 :: Int32