{-# 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 (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.Graphene.Constants
    ( 
    pattern VEC4_LEN                        ,
    pattern VEC3_LEN                        ,
    pattern VEC2_LEN                        ,
    pattern SIMD_S                          ,
    pattern PI_2                            ,
    pattern PI                              ,
    pattern HAS_SSE                         ,
    pattern HAS_SCALAR                      ,
    pattern HAS_GCC                         ,
    pattern C'true                          ,
    pattern C'false                         ,

    ) 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.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


-- | Evaluates to the number of components of a t'GI.Graphene.Structs.Vec4.Vec4'.
-- 
-- This symbol is useful when declaring a C array of floating
-- point values to be used with 'GI.Graphene.Structs.Vec4.vec4InitFromFloat' and
-- 'GI.Graphene.Structs.Vec4.vec4ToFloat', e.g.
-- 
-- >
-- >  float v[GRAPHENE_VEC4_LEN];
-- >
-- >  // vec is defined elsewhere
-- >  graphene_vec4_to_float (&vec, v);
-- >
-- >  for (int i = 0; i < GRAPHENE_VEC4_LEN; i++)
-- >    fprintf (stdout, "component %d: %g\n", i, v[i]);
-- 
-- 
-- /Since: 1.0/
pattern $bVEC4_LEN :: Int32
$mVEC4_LEN :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
VEC4_LEN = 4 :: Int32

-- | Evaluates to the number of components of a t'GI.Graphene.Structs.Vec3.Vec3'.
-- 
-- This symbol is useful when declaring a C array of floating
-- point values to be used with 'GI.Graphene.Structs.Vec3.vec3InitFromFloat' and
-- 'GI.Graphene.Structs.Vec3.vec3ToFloat', e.g.
-- 
-- >
-- >  float v[GRAPHENE_VEC3_LEN];
-- >
-- >  // vec is defined elsewhere
-- >  graphene_vec3_to_float (&vec, v);
-- >
-- >  for (int i = 0; i < GRAPHENE_VEC2_LEN; i++)
-- >    fprintf (stdout, "component %d: %g\n", i, v[i]);
-- 
-- 
-- /Since: 1.0/
pattern $bVEC3_LEN :: Int32
$mVEC3_LEN :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
VEC3_LEN = 3 :: Int32

-- | Evaluates to the number of components of a t'GI.Graphene.Structs.Vec2.Vec2'.
-- 
-- This symbol is useful when declaring a C array of floating
-- point values to be used with 'GI.Graphene.Structs.Vec2.vec2InitFromFloat' and
-- 'GI.Graphene.Structs.Vec2.vec2ToFloat', e.g.
-- 
-- >
-- >  float v[GRAPHENE_VEC2_LEN];
-- >
-- >  // vec is defined elsewhere
-- >  graphene_vec2_to_float (&vec, v);
-- >
-- >  for (int i = 0; i < GRAPHENE_VEC2_LEN; i++)
-- >    fprintf (stdout, "component %d: %g\n", i, v[i]);
-- 
-- 
-- /Since: 1.0/
pattern $bVEC2_LEN :: Int32
$mVEC2_LEN :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
VEC2_LEN = 2 :: Int32

-- | /No description available in the introspection data./
pattern $bSIMD_S :: Text
$mSIMD_S :: forall r. Text -> (Void# -> r) -> (Void# -> r) -> r
SIMD_S = "sse" :: T.Text

-- | /No description available in the introspection data./
pattern $bPI_2 :: Double
$mPI_2 :: forall r. Double -> (Void# -> r) -> (Void# -> r) -> r
PI_2 = 1.570796 :: Double

-- | /No description available in the introspection data./
pattern $bPI :: Double
$mPI :: forall r. Double -> (Void# -> r) -> (Void# -> r) -> r
PI = 3.141593 :: Double

-- | /No description available in the introspection data./
pattern $bHAS_SSE :: Int32
$mHAS_SSE :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
HAS_SSE = 1 :: Int32

-- | /No description available in the introspection data./
pattern $bHAS_SCALAR :: Int32
$mHAS_SCALAR :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
HAS_SCALAR = 1 :: Int32

-- | /No description available in the introspection data./
pattern $bHAS_GCC :: Int32
$mHAS_GCC :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
HAS_GCC = 1 :: Int32

-- | /No description available in the introspection data./
pattern $bC'true :: Int32
$mC'true :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
C'true = 1 :: Int32

-- | /No description available in the introspection data./
pattern $bC'false :: Int32
$mC'false :: forall r. Int32 -> (Void# -> r) -> (Void# -> r) -> r
C'false = 0 :: Int32