Files
hs-rgfw-bindgen-test/lib/Generated.hs
2025-12-16 17:11:10 +01:00

4565 lines
158 KiB
Haskell

{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-} -- added by Andromeda
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module Generated where
import qualified C.Expr.HostPlatform as C
import qualified Data.Array.Byte
import qualified Data.Bits as Bits
import qualified Data.Ix as Ix
import qualified Data.Proxy
import qualified Foreign as F
import qualified Foreign.C as FC
import qualified GHC.Ptr as Ptr
import qualified GHC.Records
import qualified HsBindgen.Runtime.ByteArray
import qualified HsBindgen.Runtime.ConstPtr
import qualified HsBindgen.Runtime.ConstantArray
import qualified HsBindgen.Runtime.FunPtr
import qualified HsBindgen.Runtime.HasBaseForeignType
import qualified HsBindgen.Runtime.HasCField
import qualified HsBindgen.Runtime.Prelude
import qualified HsBindgen.Runtime.SizedByteArray
import Data.Bits (FiniteBits)
import HsBindgen.Runtime.TypeEquality (TyEq)
import Prelude ((<*>), (>>), Bounded, Enum, Eq, IO, Int, Integral, Num, Ord, Read, Real, Show, pure)
{-| __C declaration:__ @RGFW_MAX_PATH@
__defined at:__ @RGFW.h:317:10@
__exported by:__ @RGFW.h@
-}
rGFW_MAX_PATH :: FC.CInt
rGFW_MAX_PATH = (260 :: FC.CInt)
{-| __C declaration:__ @RGFW_MAX_DROPS@
__defined at:__ @RGFW.h:320:10@
__exported by:__ @RGFW.h@
-}
rGFW_MAX_DROPS :: FC.CInt
rGFW_MAX_DROPS = (260 :: FC.CInt)
{-| __C declaration:__ @RGFW_MAX_EVENTS@
__defined at:__ @RGFW.h:324:10@
__exported by:__ @RGFW.h@
-}
rGFW_MAX_EVENTS :: FC.CInt
rGFW_MAX_EVENTS = (32 :: FC.CInt)
{-| __C declaration:__ @RGFW_MAX_MONITORS@
__defined at:__ @RGFW.h:328:10@
__exported by:__ @RGFW.h@
-}
rGFW_MAX_MONITORS :: FC.CInt
rGFW_MAX_MONITORS = (6 :: FC.CInt)
{-| __C declaration:__ @u8@
__defined at:__ @RGFW.h:392:23@
__exported by:__ @RGFW.h@
-}
newtype U8 = U8
{ un_U8 :: HsBindgen.Runtime.Prelude.Word8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType U8) "un_U8")
) => GHC.Records.HasField "un_U8" (Ptr.Ptr U8) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_U8")
instance HsBindgen.Runtime.HasCField.HasCField U8 "un_U8" where
type CFieldType U8 "un_U8" =
HsBindgen.Runtime.Prelude.Word8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @i8@
__defined at:__ @RGFW.h:393:23@
__exported by:__ @RGFW.h@
-}
newtype I8 = I8
{ un_I8 :: HsBindgen.Runtime.Prelude.Int8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType I8) "un_I8")
) => GHC.Records.HasField "un_I8" (Ptr.Ptr I8) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_I8")
instance HsBindgen.Runtime.HasCField.HasCField I8 "un_I8" where
type CFieldType I8 "un_I8" =
HsBindgen.Runtime.Prelude.Int8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @u16@
__defined at:__ @RGFW.h:394:22@
__exported by:__ @RGFW.h@
-}
newtype U16 = U16
{ un_U16 :: HsBindgen.Runtime.Prelude.Word16
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType U16) "un_U16")
) => GHC.Records.HasField "un_U16" (Ptr.Ptr U16) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_U16")
instance HsBindgen.Runtime.HasCField.HasCField U16 "un_U16" where
type CFieldType U16 "un_U16" =
HsBindgen.Runtime.Prelude.Word16
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @i16@
__defined at:__ @RGFW.h:395:22@
__exported by:__ @RGFW.h@
-}
newtype I16 = I16
{ un_I16 :: HsBindgen.Runtime.Prelude.Int16
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType I16) "un_I16")
) => GHC.Records.HasField "un_I16" (Ptr.Ptr I16) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_I16")
instance HsBindgen.Runtime.HasCField.HasCField I16 "un_I16" where
type CFieldType I16 "un_I16" =
HsBindgen.Runtime.Prelude.Int16
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @u32@
__defined at:__ @RGFW.h:396:22@
__exported by:__ @RGFW.h@
-}
newtype U32 = U32
{ un_U32 :: HsBindgen.Runtime.Prelude.Word32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType U32) "un_U32")
) => GHC.Records.HasField "un_U32" (Ptr.Ptr U32) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_U32")
instance HsBindgen.Runtime.HasCField.HasCField U32 "un_U32" where
type CFieldType U32 "un_U32" =
HsBindgen.Runtime.Prelude.Word32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @i32@
__defined at:__ @RGFW.h:397:22@
__exported by:__ @RGFW.h@
-}
newtype I32 = I32
{ un_I32 :: HsBindgen.Runtime.Prelude.Int32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType I32) "un_I32")
) => GHC.Records.HasField "un_I32" (Ptr.Ptr I32) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_I32")
instance HsBindgen.Runtime.HasCField.HasCField I32 "un_I32" where
type CFieldType I32 "un_I32" =
HsBindgen.Runtime.Prelude.Int32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @u64@
__defined at:__ @RGFW.h:398:22@
__exported by:__ @RGFW.h@
-}
newtype U64 = U64
{ un_U64 :: HsBindgen.Runtime.Prelude.Word64
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType U64) "un_U64")
) => GHC.Records.HasField "un_U64" (Ptr.Ptr U64) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_U64")
instance HsBindgen.Runtime.HasCField.HasCField U64 "un_U64" where
type CFieldType U64 "un_U64" =
HsBindgen.Runtime.Prelude.Word64
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @i64@
__defined at:__ @RGFW.h:399:22@
__exported by:__ @RGFW.h@
-}
newtype I64 = I64
{ un_I64 :: HsBindgen.Runtime.Prelude.Int64
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType I64) "un_I64")
) => GHC.Records.HasField "un_I64" (Ptr.Ptr I64) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_I64")
instance HsBindgen.Runtime.HasCField.HasCField I64 "un_I64" where
type CFieldType I64 "un_I64" =
HsBindgen.Runtime.Prelude.Int64
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_ssize_t@
__defined at:__ @RGFW.h:404:19@
__exported by:__ @RGFW.h@
-}
newtype RGFW_ssize_t = RGFW_ssize_t
{ un_RGFW_ssize_t :: HsBindgen.Runtime.Prelude.CPtrdiff
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_ssize_t) "un_RGFW_ssize_t")
) => GHC.Records.HasField "un_RGFW_ssize_t" (Ptr.Ptr RGFW_ssize_t) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_ssize_t")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_ssize_t "un_RGFW_ssize_t" where
type CFieldType RGFW_ssize_t "un_RGFW_ssize_t" =
HsBindgen.Runtime.Prelude.CPtrdiff
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_bool@
__defined at:__ @RGFW.h:408:16@
__exported by:__ @RGFW.h@
-}
newtype RGFW_bool = RGFW_bool
{ un_RGFW_bool :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_bool) "un_RGFW_bool")
) => GHC.Records.HasField "un_RGFW_bool" (Ptr.Ptr RGFW_bool) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_bool")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_bool "un_RGFW_bool" where
type CFieldType RGFW_bool "un_RGFW_bool" = U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_TRUE@
__defined at:__ @RGFW.h:412:9@
__exported by:__ @RGFW.h@
-}
rGFW_TRUE :: forall a0. a0 -> FC.CInt
rGFW_TRUE = \rGFW_bool0 -> (1 :: FC.CInt)
{-| __C declaration:__ @RGFW_FALSE@
__defined at:__ @RGFW.h:413:9@
__exported by:__ @RGFW.h@
-}
rGFW_FALSE :: forall a0. a0 -> FC.CInt
rGFW_FALSE = \rGFW_bool0 -> (0 :: FC.CInt)
{-| __C declaration:__ @RGFW_BIT@
__defined at:__ @RGFW.h:416:9@
__exported by:__ @RGFW.h@
-}
rGFW_BIT :: forall a0. (C.Shift FC.CInt) a0 => a0 -> FC.CInt
rGFW_BIT = \x0 -> (C.<<) (1 :: FC.CInt) x0
{-| __C declaration:__ @RGFW_info@
__defined at:__ @RGFW.h:446:16@
__exported by:__ @RGFW.h@
-}
data RGFW_info
{-| __C declaration:__ @RGFW_window@
__defined at:__ @RGFW.h:449:16@
__exported by:__ @RGFW.h@
-}
data RGFW_window
{-| __C declaration:__ @RGFW_window_src@
__defined at:__ @RGFW.h:452:16@
__exported by:__ @RGFW.h@
-}
data RGFW_window_src
{-| __C declaration:__ @RGFW_format@
__defined at:__ @RGFW.h:455:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_format = RGFW_format
{ un_RGFW_format :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_format) "un_RGFW_format")
) => GHC.Records.HasField "un_RGFW_format" (Ptr.Ptr RGFW_format) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_format")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_format "un_RGFW_format" where
type CFieldType RGFW_format "un_RGFW_format" = U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_nativeImage@
__defined at:__ @RGFW.h:466:16@
__exported by:__ @RGFW.h@
-}
data RGFW_nativeImage
{-| __C declaration:__ @RGFW_surface@
__defined at:__ @RGFW.h:469:16@
__exported by:__ @RGFW.h@
-}
data RGFW_surface
{-| __C declaration:__ @RGFW_mouse@
__defined at:__ @RGFW.h:472:14@
__exported by:__ @RGFW.h@
-}
data RGFW_mouse
{-| __C declaration:__ @RGFW_key@
__defined at:__ @RGFW.h:475:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_key = RGFW_key
{ un_RGFW_key :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_key) "un_RGFW_key")
) => GHC.Records.HasField "un_RGFW_key" (Ptr.Ptr RGFW_key) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_key")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_key "un_RGFW_key" where
type CFieldType RGFW_key "un_RGFW_key" = U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_mouseButton@
__defined at:__ @RGFW.h:602:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseButton = RGFW_mouseButton
{ un_RGFW_mouseButton :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseButton) "un_RGFW_mouseButton")
) => GHC.Records.HasField "un_RGFW_mouseButton" (Ptr.Ptr RGFW_mouseButton) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseButton")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseButton "un_RGFW_mouseButton" where
type CFieldType RGFW_mouseButton "un_RGFW_mouseButton" =
U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_keymod@
__defined at:__ @RGFW.h:611:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_keymod = RGFW_keymod
{ un_RGFW_keymod :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keymod) "un_RGFW_keymod")
) => GHC.Records.HasField "un_RGFW_keymod" (Ptr.Ptr RGFW_keymod) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_keymod")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keymod "un_RGFW_keymod" where
type CFieldType RGFW_keymod "un_RGFW_keymod" = U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_eventType@
__defined at:__ @RGFW.h:622:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_eventType = RGFW_eventType
{ un_RGFW_eventType :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_eventType) "un_RGFW_eventType")
) => GHC.Records.HasField "un_RGFW_eventType" (Ptr.Ptr RGFW_eventType) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_eventType")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_eventType "un_RGFW_eventType" where
type CFieldType RGFW_eventType "un_RGFW_eventType" =
U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_eventFlag@
__defined at:__ @RGFW.h:676:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_eventFlag = RGFW_eventFlag
{ un_RGFW_eventFlag :: U32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_eventFlag) "un_RGFW_eventFlag")
) => GHC.Records.HasField "un_RGFW_eventFlag" (Ptr.Ptr RGFW_eventFlag) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_eventFlag")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_eventFlag "un_RGFW_eventFlag" where
type CFieldType RGFW_eventFlag "un_RGFW_eventFlag" =
U32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_commonEvent@
__defined at:__ @RGFW.h:709:16@
__exported by:__ @RGFW.h@
-}
data RGFW_commonEvent = RGFW_commonEvent
{ rGFW_commonEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:710:17@
__exported by:__ @RGFW.h@
-}
, rGFW_commonEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:711:15@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_commonEvent where
sizeOf = \_ -> (16 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_commonEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_commonEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_commonEvent_win") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_commonEvent rGFW_commonEvent_type2 rGFW_commonEvent_win3 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_commonEvent_type") ptr0 rGFW_commonEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_commonEvent_win") ptr0 rGFW_commonEvent_win3
instance HsBindgen.Runtime.HasCField.HasCField RGFW_commonEvent "rGFW_commonEvent_type" where
type CFieldType RGFW_commonEvent "rGFW_commonEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_commonEvent) "rGFW_commonEvent_type")
) => GHC.Records.HasField "rGFW_commonEvent_type" (Ptr.Ptr RGFW_commonEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_commonEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_commonEvent "rGFW_commonEvent_win" where
type CFieldType RGFW_commonEvent "rGFW_commonEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_commonEvent) "rGFW_commonEvent_win")
) => GHC.Records.HasField "rGFW_commonEvent_win" (Ptr.Ptr RGFW_commonEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_commonEvent_win")
{-| __C declaration:__ @RGFW_mouseButtonEvent@
__defined at:__ @RGFW.h:715:16@
__exported by:__ @RGFW.h@
-}
data RGFW_mouseButtonEvent = RGFW_mouseButtonEvent
{ rGFW_mouseButtonEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:716:17@
__exported by:__ @RGFW.h@
-}
, rGFW_mouseButtonEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:717:15@
__exported by:__ @RGFW.h@
-}
, rGFW_mouseButtonEvent_value :: U8
{- ^ __C declaration:__ @value@
__defined at:__ @RGFW.h:718:5@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_mouseButtonEvent where
sizeOf = \_ -> (24 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_mouseButtonEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_value") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_mouseButtonEvent
rGFW_mouseButtonEvent_type2
rGFW_mouseButtonEvent_win3
rGFW_mouseButtonEvent_value4 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_type") ptr0 rGFW_mouseButtonEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_win") ptr0 rGFW_mouseButtonEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_value") ptr0 rGFW_mouseButtonEvent_value4
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseButtonEvent "rGFW_mouseButtonEvent_type" where
type CFieldType RGFW_mouseButtonEvent "rGFW_mouseButtonEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseButtonEvent) "rGFW_mouseButtonEvent_type")
) => GHC.Records.HasField "rGFW_mouseButtonEvent_type" (Ptr.Ptr RGFW_mouseButtonEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseButtonEvent "rGFW_mouseButtonEvent_win" where
type CFieldType RGFW_mouseButtonEvent "rGFW_mouseButtonEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseButtonEvent) "rGFW_mouseButtonEvent_win")
) => GHC.Records.HasField "rGFW_mouseButtonEvent_win" (Ptr.Ptr RGFW_mouseButtonEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseButtonEvent "rGFW_mouseButtonEvent_value" where
type CFieldType RGFW_mouseButtonEvent "rGFW_mouseButtonEvent_value" =
U8
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseButtonEvent) "rGFW_mouseButtonEvent_value")
) => GHC.Records.HasField "rGFW_mouseButtonEvent_value" (Ptr.Ptr RGFW_mouseButtonEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseButtonEvent_value")
{-| __C declaration:__ @RGFW_mouseScrollEvent@
__defined at:__ @RGFW.h:722:16@
__exported by:__ @RGFW.h@
-}
data RGFW_mouseScrollEvent = RGFW_mouseScrollEvent
{ rGFW_mouseScrollEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:723:17@
__exported by:__ @RGFW.h@
-}
, rGFW_mouseScrollEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:724:15@
__exported by:__ @RGFW.h@
-}
, rGFW_mouseScrollEvent_x :: FC.CFloat
{- ^ __C declaration:__ @x@
__defined at:__ @RGFW.h:725:8@
__exported by:__ @RGFW.h@
-}
, rGFW_mouseScrollEvent_y :: FC.CFloat
{- ^ __C declaration:__ @y@
__defined at:__ @RGFW.h:725:11@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_mouseScrollEvent where
sizeOf = \_ -> (24 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_mouseScrollEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_x") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_y") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_mouseScrollEvent
rGFW_mouseScrollEvent_type2
rGFW_mouseScrollEvent_win3
rGFW_mouseScrollEvent_x4
rGFW_mouseScrollEvent_y5 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_type") ptr0 rGFW_mouseScrollEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_win") ptr0 rGFW_mouseScrollEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_x") ptr0 rGFW_mouseScrollEvent_x4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_y") ptr0 rGFW_mouseScrollEvent_y5
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_type" where
type CFieldType RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseScrollEvent) "rGFW_mouseScrollEvent_type")
) => GHC.Records.HasField "rGFW_mouseScrollEvent_type" (Ptr.Ptr RGFW_mouseScrollEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_win" where
type CFieldType RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseScrollEvent) "rGFW_mouseScrollEvent_win")
) => GHC.Records.HasField "rGFW_mouseScrollEvent_win" (Ptr.Ptr RGFW_mouseScrollEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_x" where
type CFieldType RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_x" =
FC.CFloat
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseScrollEvent) "rGFW_mouseScrollEvent_x")
) => GHC.Records.HasField "rGFW_mouseScrollEvent_x" (Ptr.Ptr RGFW_mouseScrollEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_x")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_y" where
type CFieldType RGFW_mouseScrollEvent "rGFW_mouseScrollEvent_y" =
FC.CFloat
offset# = \_ -> \_ -> 20
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseScrollEvent) "rGFW_mouseScrollEvent_y")
) => GHC.Records.HasField "rGFW_mouseScrollEvent_y" (Ptr.Ptr RGFW_mouseScrollEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mouseScrollEvent_y")
{-| __C declaration:__ @RGFW_mousePosEvent@
__defined at:__ @RGFW.h:729:16@
__exported by:__ @RGFW.h@
-}
data RGFW_mousePosEvent = RGFW_mousePosEvent
{ rGFW_mousePosEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:730:17@
__exported by:__ @RGFW.h@
-}
, rGFW_mousePosEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:731:15@
__exported by:__ @RGFW.h@
-}
, rGFW_mousePosEvent_x :: I32
{- ^ __C declaration:__ @x@
__defined at:__ @RGFW.h:732:6@
__exported by:__ @RGFW.h@
-}
, rGFW_mousePosEvent_y :: I32
{- ^ __C declaration:__ @y@
__defined at:__ @RGFW.h:732:9@
__exported by:__ @RGFW.h@
-}
, rGFW_mousePosEvent_vecX :: FC.CFloat
{- ^ __C declaration:__ @vecX@
__defined at:__ @RGFW.h:733:8@
__exported by:__ @RGFW.h@
-}
, rGFW_mousePosEvent_vecY :: FC.CFloat
{- ^ __C declaration:__ @vecY@
__defined at:__ @RGFW.h:733:14@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_mousePosEvent where
sizeOf = \_ -> (32 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_mousePosEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_x") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_y") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_vecX") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_vecY") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_mousePosEvent
rGFW_mousePosEvent_type2
rGFW_mousePosEvent_win3
rGFW_mousePosEvent_x4
rGFW_mousePosEvent_y5
rGFW_mousePosEvent_vecX6
rGFW_mousePosEvent_vecY7 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_type") ptr0 rGFW_mousePosEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_win") ptr0 rGFW_mousePosEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_x") ptr0 rGFW_mousePosEvent_x4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_y") ptr0 rGFW_mousePosEvent_y5
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_vecX") ptr0 rGFW_mousePosEvent_vecX6
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_vecY") ptr0 rGFW_mousePosEvent_vecY7
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosEvent "rGFW_mousePosEvent_type" where
type CFieldType RGFW_mousePosEvent "rGFW_mousePosEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosEvent) "rGFW_mousePosEvent_type")
) => GHC.Records.HasField "rGFW_mousePosEvent_type" (Ptr.Ptr RGFW_mousePosEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosEvent "rGFW_mousePosEvent_win" where
type CFieldType RGFW_mousePosEvent "rGFW_mousePosEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosEvent) "rGFW_mousePosEvent_win")
) => GHC.Records.HasField "rGFW_mousePosEvent_win" (Ptr.Ptr RGFW_mousePosEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosEvent "rGFW_mousePosEvent_x" where
type CFieldType RGFW_mousePosEvent "rGFW_mousePosEvent_x" =
I32
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosEvent) "rGFW_mousePosEvent_x")
) => GHC.Records.HasField "rGFW_mousePosEvent_x" (Ptr.Ptr RGFW_mousePosEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_x")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosEvent "rGFW_mousePosEvent_y" where
type CFieldType RGFW_mousePosEvent "rGFW_mousePosEvent_y" =
I32
offset# = \_ -> \_ -> 20
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosEvent) "rGFW_mousePosEvent_y")
) => GHC.Records.HasField "rGFW_mousePosEvent_y" (Ptr.Ptr RGFW_mousePosEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_y")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosEvent "rGFW_mousePosEvent_vecX" where
type CFieldType RGFW_mousePosEvent "rGFW_mousePosEvent_vecX" =
FC.CFloat
offset# = \_ -> \_ -> 24
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosEvent) "rGFW_mousePosEvent_vecX")
) => GHC.Records.HasField "rGFW_mousePosEvent_vecX" (Ptr.Ptr RGFW_mousePosEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_vecX")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosEvent "rGFW_mousePosEvent_vecY" where
type CFieldType RGFW_mousePosEvent "rGFW_mousePosEvent_vecY" =
FC.CFloat
offset# = \_ -> \_ -> 28
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosEvent) "rGFW_mousePosEvent_vecY")
) => GHC.Records.HasField "rGFW_mousePosEvent_vecY" (Ptr.Ptr RGFW_mousePosEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_mousePosEvent_vecY")
{-| __C declaration:__ @RGFW_keyEvent@
__defined at:__ @RGFW.h:737:16@
__exported by:__ @RGFW.h@
-}
data RGFW_keyEvent = RGFW_keyEvent
{ rGFW_keyEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:738:17@
__exported by:__ @RGFW.h@
-}
, rGFW_keyEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:739:15@
__exported by:__ @RGFW.h@
-}
, rGFW_keyEvent_value :: RGFW_key
{- ^ __C declaration:__ @value@
__defined at:__ @RGFW.h:740:11@
__exported by:__ @RGFW.h@
-}
, rGFW_keyEvent_sym :: U8
{- ^ __C declaration:__ @sym@
__defined at:__ @RGFW.h:741:5@
__exported by:__ @RGFW.h@
-}
, rGFW_keyEvent_repeat :: RGFW_bool
{- ^ __C declaration:__ @repeat@
__defined at:__ @RGFW.h:742:12@
__exported by:__ @RGFW.h@
-}
, rGFW_keyEvent_mod :: RGFW_keymod
{- ^ __C declaration:__ @mod@
__defined at:__ @RGFW.h:743:14@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_keyEvent where
sizeOf = \_ -> (24 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_keyEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_keyEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_keyEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_keyEvent_value") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_keyEvent_sym") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_keyEvent_repeat") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_keyEvent_mod") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_keyEvent
rGFW_keyEvent_type2
rGFW_keyEvent_win3
rGFW_keyEvent_value4
rGFW_keyEvent_sym5
rGFW_keyEvent_repeat6
rGFW_keyEvent_mod7 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_keyEvent_type") ptr0 rGFW_keyEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_keyEvent_win") ptr0 rGFW_keyEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_keyEvent_value") ptr0 rGFW_keyEvent_value4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_keyEvent_sym") ptr0 rGFW_keyEvent_sym5
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_keyEvent_repeat") ptr0 rGFW_keyEvent_repeat6
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_keyEvent_mod") ptr0 rGFW_keyEvent_mod7
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyEvent "rGFW_keyEvent_type" where
type CFieldType RGFW_keyEvent "rGFW_keyEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyEvent) "rGFW_keyEvent_type")
) => GHC.Records.HasField "rGFW_keyEvent_type" (Ptr.Ptr RGFW_keyEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_keyEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyEvent "rGFW_keyEvent_win" where
type CFieldType RGFW_keyEvent "rGFW_keyEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyEvent) "rGFW_keyEvent_win")
) => GHC.Records.HasField "rGFW_keyEvent_win" (Ptr.Ptr RGFW_keyEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_keyEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyEvent "rGFW_keyEvent_value" where
type CFieldType RGFW_keyEvent "rGFW_keyEvent_value" =
RGFW_key
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyEvent) "rGFW_keyEvent_value")
) => GHC.Records.HasField "rGFW_keyEvent_value" (Ptr.Ptr RGFW_keyEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_keyEvent_value")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyEvent "rGFW_keyEvent_sym" where
type CFieldType RGFW_keyEvent "rGFW_keyEvent_sym" =
U8
offset# = \_ -> \_ -> 17
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyEvent) "rGFW_keyEvent_sym")
) => GHC.Records.HasField "rGFW_keyEvent_sym" (Ptr.Ptr RGFW_keyEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_keyEvent_sym")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyEvent "rGFW_keyEvent_repeat" where
type CFieldType RGFW_keyEvent "rGFW_keyEvent_repeat" =
RGFW_bool
offset# = \_ -> \_ -> 18
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyEvent) "rGFW_keyEvent_repeat")
) => GHC.Records.HasField "rGFW_keyEvent_repeat" (Ptr.Ptr RGFW_keyEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_keyEvent_repeat")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyEvent "rGFW_keyEvent_mod" where
type CFieldType RGFW_keyEvent "rGFW_keyEvent_mod" =
RGFW_keymod
offset# = \_ -> \_ -> 19
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyEvent) "rGFW_keyEvent_mod")
) => GHC.Records.HasField "rGFW_keyEvent_mod" (Ptr.Ptr RGFW_keyEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_keyEvent_mod")
{-| __C declaration:__ @RGFW_dataDropEvent@
__defined at:__ @RGFW.h:747:16@
__exported by:__ @RGFW.h@
-}
data RGFW_dataDropEvent = RGFW_dataDropEvent
{ rGFW_dataDropEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:748:17@
__exported by:__ @RGFW.h@
-}
, rGFW_dataDropEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:749:15@
__exported by:__ @RGFW.h@
-}
, rGFW_dataDropEvent_files :: Ptr.Ptr (Ptr.Ptr FC.CChar)
{- ^ __C declaration:__ @files@
__defined at:__ @RGFW.h:751:9@
__exported by:__ @RGFW.h@
-}
, rGFW_dataDropEvent_count :: HsBindgen.Runtime.Prelude.CSize
{- ^ __C declaration:__ @count@
__defined at:__ @RGFW.h:752:9@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_dataDropEvent where
sizeOf = \_ -> (32 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_dataDropEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_files") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_count") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_dataDropEvent
rGFW_dataDropEvent_type2
rGFW_dataDropEvent_win3
rGFW_dataDropEvent_files4
rGFW_dataDropEvent_count5 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_type") ptr0 rGFW_dataDropEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_win") ptr0 rGFW_dataDropEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_files") ptr0 rGFW_dataDropEvent_files4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_count") ptr0 rGFW_dataDropEvent_count5
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDropEvent "rGFW_dataDropEvent_type" where
type CFieldType RGFW_dataDropEvent "rGFW_dataDropEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDropEvent) "rGFW_dataDropEvent_type")
) => GHC.Records.HasField "rGFW_dataDropEvent_type" (Ptr.Ptr RGFW_dataDropEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDropEvent "rGFW_dataDropEvent_win" where
type CFieldType RGFW_dataDropEvent "rGFW_dataDropEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDropEvent) "rGFW_dataDropEvent_win")
) => GHC.Records.HasField "rGFW_dataDropEvent_win" (Ptr.Ptr RGFW_dataDropEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDropEvent "rGFW_dataDropEvent_files" where
type CFieldType RGFW_dataDropEvent "rGFW_dataDropEvent_files" =
Ptr.Ptr (Ptr.Ptr FC.CChar)
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDropEvent) "rGFW_dataDropEvent_files")
) => GHC.Records.HasField "rGFW_dataDropEvent_files" (Ptr.Ptr RGFW_dataDropEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_files")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDropEvent "rGFW_dataDropEvent_count" where
type CFieldType RGFW_dataDropEvent "rGFW_dataDropEvent_count" =
HsBindgen.Runtime.Prelude.CSize
offset# = \_ -> \_ -> 24
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDropEvent) "rGFW_dataDropEvent_count")
) => GHC.Records.HasField "rGFW_dataDropEvent_count" (Ptr.Ptr RGFW_dataDropEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDropEvent_count")
{-| __C declaration:__ @RGFW_dataDragEvent@
__defined at:__ @RGFW.h:756:16@
__exported by:__ @RGFW.h@
-}
data RGFW_dataDragEvent = RGFW_dataDragEvent
{ rGFW_dataDragEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:757:17@
__exported by:__ @RGFW.h@
-}
, rGFW_dataDragEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:758:15@
__exported by:__ @RGFW.h@
-}
, rGFW_dataDragEvent_x :: I32
{- ^ __C declaration:__ @x@
__defined at:__ @RGFW.h:759:6@
__exported by:__ @RGFW.h@
-}
, rGFW_dataDragEvent_y :: I32
{- ^ __C declaration:__ @y@
__defined at:__ @RGFW.h:759:9@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_dataDragEvent where
sizeOf = \_ -> (24 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_dataDragEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_x") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_y") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_dataDragEvent
rGFW_dataDragEvent_type2
rGFW_dataDragEvent_win3
rGFW_dataDragEvent_x4
rGFW_dataDragEvent_y5 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_type") ptr0 rGFW_dataDragEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_win") ptr0 rGFW_dataDragEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_x") ptr0 rGFW_dataDragEvent_x4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_y") ptr0 rGFW_dataDragEvent_y5
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDragEvent "rGFW_dataDragEvent_type" where
type CFieldType RGFW_dataDragEvent "rGFW_dataDragEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDragEvent) "rGFW_dataDragEvent_type")
) => GHC.Records.HasField "rGFW_dataDragEvent_type" (Ptr.Ptr RGFW_dataDragEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDragEvent "rGFW_dataDragEvent_win" where
type CFieldType RGFW_dataDragEvent "rGFW_dataDragEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDragEvent) "rGFW_dataDragEvent_win")
) => GHC.Records.HasField "rGFW_dataDragEvent_win" (Ptr.Ptr RGFW_dataDragEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDragEvent "rGFW_dataDragEvent_x" where
type CFieldType RGFW_dataDragEvent "rGFW_dataDragEvent_x" =
I32
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDragEvent) "rGFW_dataDragEvent_x")
) => GHC.Records.HasField "rGFW_dataDragEvent_x" (Ptr.Ptr RGFW_dataDragEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_x")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDragEvent "rGFW_dataDragEvent_y" where
type CFieldType RGFW_dataDragEvent "rGFW_dataDragEvent_y" =
I32
offset# = \_ -> \_ -> 20
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDragEvent) "rGFW_dataDragEvent_y")
) => GHC.Records.HasField "rGFW_dataDragEvent_y" (Ptr.Ptr RGFW_dataDragEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_dataDragEvent_y")
{-| __C declaration:__ @RGFW_scaleUpdatedEvent@
__defined at:__ @RGFW.h:763:16@
__exported by:__ @RGFW.h@
-}
data RGFW_scaleUpdatedEvent = RGFW_scaleUpdatedEvent
{ rGFW_scaleUpdatedEvent_type :: RGFW_eventType
{- ^ __C declaration:__ @type@
__defined at:__ @RGFW.h:764:17@
__exported by:__ @RGFW.h@
-}
, rGFW_scaleUpdatedEvent_win :: Ptr.Ptr RGFW_window
{- ^ __C declaration:__ @win@
__defined at:__ @RGFW.h:765:15@
__exported by:__ @RGFW.h@
-}
, rGFW_scaleUpdatedEvent_x :: FC.CFloat
{- ^ __C declaration:__ @x@
__defined at:__ @RGFW.h:766:8@
__exported by:__ @RGFW.h@
-}
, rGFW_scaleUpdatedEvent_y :: FC.CFloat
{- ^ __C declaration:__ @y@
__defined at:__ @RGFW.h:766:11@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_scaleUpdatedEvent where
sizeOf = \_ -> (24 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_scaleUpdatedEvent
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_type") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_win") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_x") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_y") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_scaleUpdatedEvent
rGFW_scaleUpdatedEvent_type2
rGFW_scaleUpdatedEvent_win3
rGFW_scaleUpdatedEvent_x4
rGFW_scaleUpdatedEvent_y5 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_type") ptr0 rGFW_scaleUpdatedEvent_type2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_win") ptr0 rGFW_scaleUpdatedEvent_win3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_x") ptr0 rGFW_scaleUpdatedEvent_x4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_y") ptr0 rGFW_scaleUpdatedEvent_y5
instance HsBindgen.Runtime.HasCField.HasCField RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_type" where
type CFieldType RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_scaleUpdatedEvent) "rGFW_scaleUpdatedEvent_type")
) => GHC.Records.HasField "rGFW_scaleUpdatedEvent_type" (Ptr.Ptr RGFW_scaleUpdatedEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_win" where
type CFieldType RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_win" =
Ptr.Ptr RGFW_window
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_scaleUpdatedEvent) "rGFW_scaleUpdatedEvent_win")
) => GHC.Records.HasField "rGFW_scaleUpdatedEvent_win" (Ptr.Ptr RGFW_scaleUpdatedEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_win")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_x" where
type CFieldType RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_x" =
FC.CFloat
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_scaleUpdatedEvent) "rGFW_scaleUpdatedEvent_x")
) => GHC.Records.HasField "rGFW_scaleUpdatedEvent_x" (Ptr.Ptr RGFW_scaleUpdatedEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_x")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_y" where
type CFieldType RGFW_scaleUpdatedEvent "rGFW_scaleUpdatedEvent_y" =
FC.CFloat
offset# = \_ -> \_ -> 20
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_scaleUpdatedEvent) "rGFW_scaleUpdatedEvent_y")
) => GHC.Records.HasField "rGFW_scaleUpdatedEvent_y" (Ptr.Ptr RGFW_scaleUpdatedEvent) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_scaleUpdatedEvent_y")
{-| __C declaration:__ @RGFW_event@
__defined at:__ @RGFW.h:770:15@
__exported by:__ @RGFW.h@
-}
newtype RGFW_event = RGFW_event
{ un_RGFW_event :: Data.Array.Byte.ByteArray
}
deriving via (HsBindgen.Runtime.SizedByteArray.SizedByteArray 32) 8 instance F.Storable RGFW_event
{-|
__See:__ 'set_rGFW_event_type'
__C declaration:__ @type@
__defined at:__ @RGFW.h:771:17@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_type ::
RGFW_event
-> RGFW_eventType
get_rGFW_event_type =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_type'
-}
set_rGFW_event_type ::
RGFW_eventType
-> RGFW_event
set_rGFW_event_type =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_common'
__C declaration:__ @common@
__defined at:__ @RGFW.h:772:19@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_common ::
RGFW_event
-> RGFW_commonEvent
get_rGFW_event_common =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_common'
-}
set_rGFW_event_common ::
RGFW_commonEvent
-> RGFW_event
set_rGFW_event_common =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_button'
__C declaration:__ @button@
__defined at:__ @RGFW.h:773:24@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_button ::
RGFW_event
-> RGFW_mouseButtonEvent
get_rGFW_event_button =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_button'
-}
set_rGFW_event_button ::
RGFW_mouseButtonEvent
-> RGFW_event
set_rGFW_event_button =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_scroll'
__C declaration:__ @scroll@
__defined at:__ @RGFW.h:774:24@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_scroll ::
RGFW_event
-> RGFW_mouseScrollEvent
get_rGFW_event_scroll =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_scroll'
-}
set_rGFW_event_scroll ::
RGFW_mouseScrollEvent
-> RGFW_event
set_rGFW_event_scroll =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_mouse'
__C declaration:__ @mouse@
__defined at:__ @RGFW.h:775:21@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_mouse ::
RGFW_event
-> RGFW_mousePosEvent
get_rGFW_event_mouse =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_mouse'
-}
set_rGFW_event_mouse ::
RGFW_mousePosEvent
-> RGFW_event
set_rGFW_event_mouse =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_key'
__C declaration:__ @key@
__defined at:__ @RGFW.h:776:16@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_key ::
RGFW_event
-> RGFW_keyEvent
get_rGFW_event_key =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_key'
-}
set_rGFW_event_key ::
RGFW_keyEvent
-> RGFW_event
set_rGFW_event_key =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_drop'
__C declaration:__ @drop@
__defined at:__ @RGFW.h:777:21@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_drop ::
RGFW_event
-> RGFW_dataDropEvent
get_rGFW_event_drop =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_drop'
-}
set_rGFW_event_drop ::
RGFW_dataDropEvent
-> RGFW_event
set_rGFW_event_drop =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_drag'
__C declaration:__ @drag@
__defined at:__ @RGFW.h:778:21@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_drag ::
RGFW_event
-> RGFW_dataDragEvent
get_rGFW_event_drag =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_drag'
-}
set_rGFW_event_drag ::
RGFW_dataDragEvent
-> RGFW_event
set_rGFW_event_drag =
HsBindgen.Runtime.ByteArray.setUnionPayload
{-|
__See:__ 'set_rGFW_event_scale'
__C declaration:__ @scale@
__defined at:__ @RGFW.h:779:25@
__exported by:__ @RGFW.h@
-}
get_rGFW_event_scale ::
RGFW_event
-> RGFW_scaleUpdatedEvent
get_rGFW_event_scale =
HsBindgen.Runtime.ByteArray.getUnionPayload
{-|
__See:__ 'get_rGFW_event_scale'
-}
set_rGFW_event_scale ::
RGFW_scaleUpdatedEvent
-> RGFW_event
set_rGFW_event_scale =
HsBindgen.Runtime.ByteArray.setUnionPayload
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_type" where
type CFieldType RGFW_event "rGFW_event_type" =
RGFW_eventType
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_type")
) => GHC.Records.HasField "rGFW_event_type" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_type")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_common" where
type CFieldType RGFW_event "rGFW_event_common" =
RGFW_commonEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_common")
) => GHC.Records.HasField "rGFW_event_common" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_common")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_button" where
type CFieldType RGFW_event "rGFW_event_button" =
RGFW_mouseButtonEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_button")
) => GHC.Records.HasField "rGFW_event_button" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_button")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_scroll" where
type CFieldType RGFW_event "rGFW_event_scroll" =
RGFW_mouseScrollEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_scroll")
) => GHC.Records.HasField "rGFW_event_scroll" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_scroll")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_mouse" where
type CFieldType RGFW_event "rGFW_event_mouse" =
RGFW_mousePosEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_mouse")
) => GHC.Records.HasField "rGFW_event_mouse" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_mouse")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_key" where
type CFieldType RGFW_event "rGFW_event_key" =
RGFW_keyEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_key")
) => GHC.Records.HasField "rGFW_event_key" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_key")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_drop" where
type CFieldType RGFW_event "rGFW_event_drop" =
RGFW_dataDropEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_drop")
) => GHC.Records.HasField "rGFW_event_drop" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_drop")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_drag" where
type CFieldType RGFW_event "rGFW_event_drag" =
RGFW_dataDragEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_drag")
) => GHC.Records.HasField "rGFW_event_drag" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_drag")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_event "rGFW_event_scale" where
type CFieldType RGFW_event "rGFW_event_scale" =
RGFW_scaleUpdatedEvent
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_event) "rGFW_event_scale")
) => GHC.Records.HasField "rGFW_event_scale" (Ptr.Ptr RGFW_event) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_event_scale")
{-| __C declaration:__ @RGFW_eventWait@
__defined at:__ @RGFW.h:789:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_eventWait = RGFW_eventWait
{ un_RGFW_eventWait :: I32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_eventWait) "un_RGFW_eventWait")
) => GHC.Records.HasField "un_RGFW_eventWait" (Ptr.Ptr RGFW_eventWait) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_eventWait")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_eventWait "un_RGFW_eventWait" where
type CFieldType RGFW_eventWait "un_RGFW_eventWait" =
I32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowFlags@
__defined at:__ @RGFW.h:797:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowFlags = RGFW_windowFlags
{ un_RGFW_windowFlags :: U32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowFlags) "un_RGFW_windowFlags")
) => GHC.Records.HasField "un_RGFW_windowFlags" (Ptr.Ptr RGFW_windowFlags) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowFlags")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowFlags "un_RGFW_windowFlags" where
type CFieldType RGFW_windowFlags "un_RGFW_windowFlags" =
U32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_icon@
__defined at:__ @RGFW.h:820:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_icon = RGFW_icon
{ un_RGFW_icon :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_icon) "un_RGFW_icon")
) => GHC.Records.HasField "un_RGFW_icon" (Ptr.Ptr RGFW_icon) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_icon")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_icon "un_RGFW_icon" where
type CFieldType RGFW_icon "un_RGFW_icon" = U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_mouseIcons@
__defined at:__ @RGFW.h:827:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseIcons = RGFW_mouseIcons
{ un_RGFW_mouseIcons :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseIcons) "un_RGFW_mouseIcons")
) => GHC.Records.HasField "un_RGFW_mouseIcons" (Ptr.Ptr RGFW_mouseIcons) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseIcons")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseIcons "un_RGFW_mouseIcons" where
type CFieldType RGFW_mouseIcons "un_RGFW_mouseIcons" =
U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_debugType@
__defined at:__ @RGFW.h:844:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_debugType = RGFW_debugType
{ un_RGFW_debugType :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_debugType) "un_RGFW_debugType")
) => GHC.Records.HasField "un_RGFW_debugType" (Ptr.Ptr RGFW_debugType) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_debugType")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_debugType "un_RGFW_debugType" where
type CFieldType RGFW_debugType "un_RGFW_debugType" =
U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_errorCode@
__defined at:__ @RGFW.h:849:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_errorCode = RGFW_errorCode
{ un_RGFW_errorCode :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_errorCode) "un_RGFW_errorCode")
) => GHC.Records.HasField "un_RGFW_errorCode" (Ptr.Ptr RGFW_errorCode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_errorCode")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_errorCode "un_RGFW_errorCode" where
type CFieldType RGFW_errorCode "un_RGFW_errorCode" =
U8
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_debugfunc'
__defined at:__ @RGFW.h:865:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_debugfunc_Deref = RGFW_debugfunc_Deref
{ un_RGFW_debugfunc_Deref :: RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_debugfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_4d5a16936b176c72 ::
RGFW_debugfunc_Deref
-> IO (Ptr.FunPtr RGFW_debugfunc_Deref)
-- | __unique:__ @fromRGFW_debugfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_a5dadf2965212eab ::
Ptr.FunPtr RGFW_debugfunc_Deref
-> RGFW_debugfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_debugfunc_Deref where
toFunPtr = hs_bindgen_4d5a16936b176c72
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_debugfunc_Deref where
fromFunPtr = hs_bindgen_a5dadf2965212eab
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_debugfunc_Deref) "un_RGFW_debugfunc_Deref")
) => GHC.Records.HasField "un_RGFW_debugfunc_Deref" (Ptr.Ptr RGFW_debugfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_debugfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_debugfunc_Deref "un_RGFW_debugfunc_Deref" where
type CFieldType RGFW_debugfunc_Deref "un_RGFW_debugfunc_Deref" =
RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_debugfunc@
__defined at:__ @RGFW.h:865:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_debugfunc = RGFW_debugfunc
{ un_RGFW_debugfunc :: Ptr.FunPtr RGFW_debugfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_debugfunc) "un_RGFW_debugfunc")
) => GHC.Records.HasField "un_RGFW_debugfunc" (Ptr.Ptr RGFW_debugfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_debugfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_debugfunc "un_RGFW_debugfunc" where
type CFieldType RGFW_debugfunc "un_RGFW_debugfunc" =
Ptr.FunPtr RGFW_debugfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowMovedfunc'
__defined at:__ @RGFW.h:868:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowMovedfunc_Deref = RGFW_windowMovedfunc_Deref
{ un_RGFW_windowMovedfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowMovedfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_5fd1bc2328624224 ::
RGFW_windowMovedfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowMovedfunc_Deref)
-- | __unique:__ @fromRGFW_windowMovedfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_4b9779d6a6bba257 ::
Ptr.FunPtr RGFW_windowMovedfunc_Deref
-> RGFW_windowMovedfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowMovedfunc_Deref where
toFunPtr = hs_bindgen_5fd1bc2328624224
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowMovedfunc_Deref where
fromFunPtr = hs_bindgen_4b9779d6a6bba257
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowMovedfunc_Deref) "un_RGFW_windowMovedfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowMovedfunc_Deref" (Ptr.Ptr RGFW_windowMovedfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowMovedfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowMovedfunc_Deref "un_RGFW_windowMovedfunc_Deref" where
type CFieldType RGFW_windowMovedfunc_Deref "un_RGFW_windowMovedfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowMovedfunc@
__defined at:__ @RGFW.h:868:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowMovedfunc = RGFW_windowMovedfunc
{ un_RGFW_windowMovedfunc :: Ptr.FunPtr RGFW_windowMovedfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowMovedfunc) "un_RGFW_windowMovedfunc")
) => GHC.Records.HasField "un_RGFW_windowMovedfunc" (Ptr.Ptr RGFW_windowMovedfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowMovedfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowMovedfunc "un_RGFW_windowMovedfunc" where
type CFieldType RGFW_windowMovedfunc "un_RGFW_windowMovedfunc" =
Ptr.FunPtr RGFW_windowMovedfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowResizedfunc'
__defined at:__ @RGFW.h:870:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowResizedfunc_Deref = RGFW_windowResizedfunc_Deref
{ un_RGFW_windowResizedfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowResizedfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_e1572340cadc64e0 ::
RGFW_windowResizedfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowResizedfunc_Deref)
-- | __unique:__ @fromRGFW_windowResizedfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_2e69accabb147423 ::
Ptr.FunPtr RGFW_windowResizedfunc_Deref
-> RGFW_windowResizedfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowResizedfunc_Deref where
toFunPtr = hs_bindgen_e1572340cadc64e0
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowResizedfunc_Deref where
fromFunPtr = hs_bindgen_2e69accabb147423
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowResizedfunc_Deref) "un_RGFW_windowResizedfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowResizedfunc_Deref" (Ptr.Ptr RGFW_windowResizedfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowResizedfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowResizedfunc_Deref "un_RGFW_windowResizedfunc_Deref" where
type CFieldType RGFW_windowResizedfunc_Deref "un_RGFW_windowResizedfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowResizedfunc@
__defined at:__ @RGFW.h:870:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowResizedfunc = RGFW_windowResizedfunc
{ un_RGFW_windowResizedfunc :: Ptr.FunPtr RGFW_windowResizedfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowResizedfunc) "un_RGFW_windowResizedfunc")
) => GHC.Records.HasField "un_RGFW_windowResizedfunc" (Ptr.Ptr RGFW_windowResizedfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowResizedfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowResizedfunc "un_RGFW_windowResizedfunc" where
type CFieldType RGFW_windowResizedfunc "un_RGFW_windowResizedfunc" =
Ptr.FunPtr RGFW_windowResizedfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowRestoredfunc'
__defined at:__ @RGFW.h:872:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowRestoredfunc_Deref = RGFW_windowRestoredfunc_Deref
{ un_RGFW_windowRestoredfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowRestoredfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_b403c4085a8c46b9 ::
RGFW_windowRestoredfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowRestoredfunc_Deref)
-- | __unique:__ @fromRGFW_windowRestoredfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_0941b8028b2e42a9 ::
Ptr.FunPtr RGFW_windowRestoredfunc_Deref
-> RGFW_windowRestoredfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowRestoredfunc_Deref where
toFunPtr = hs_bindgen_b403c4085a8c46b9
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowRestoredfunc_Deref where
fromFunPtr = hs_bindgen_0941b8028b2e42a9
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowRestoredfunc_Deref) "un_RGFW_windowRestoredfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowRestoredfunc_Deref" (Ptr.Ptr RGFW_windowRestoredfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowRestoredfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowRestoredfunc_Deref "un_RGFW_windowRestoredfunc_Deref" where
type CFieldType RGFW_windowRestoredfunc_Deref "un_RGFW_windowRestoredfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowRestoredfunc@
__defined at:__ @RGFW.h:872:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowRestoredfunc = RGFW_windowRestoredfunc
{ un_RGFW_windowRestoredfunc :: Ptr.FunPtr RGFW_windowRestoredfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowRestoredfunc) "un_RGFW_windowRestoredfunc")
) => GHC.Records.HasField "un_RGFW_windowRestoredfunc" (Ptr.Ptr RGFW_windowRestoredfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowRestoredfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowRestoredfunc "un_RGFW_windowRestoredfunc" where
type CFieldType RGFW_windowRestoredfunc "un_RGFW_windowRestoredfunc" =
Ptr.FunPtr RGFW_windowRestoredfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowMaximizedfunc'
__defined at:__ @RGFW.h:874:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowMaximizedfunc_Deref = RGFW_windowMaximizedfunc_Deref
{ un_RGFW_windowMaximizedfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowMaximizedfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_7edeebcbca91b3d4 ::
RGFW_windowMaximizedfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowMaximizedfunc_Deref)
-- | __unique:__ @fromRGFW_windowMaximizedfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_14d1dc941854601f ::
Ptr.FunPtr RGFW_windowMaximizedfunc_Deref
-> RGFW_windowMaximizedfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowMaximizedfunc_Deref where
toFunPtr = hs_bindgen_7edeebcbca91b3d4
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowMaximizedfunc_Deref where
fromFunPtr = hs_bindgen_14d1dc941854601f
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowMaximizedfunc_Deref) "un_RGFW_windowMaximizedfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowMaximizedfunc_Deref" (Ptr.Ptr RGFW_windowMaximizedfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowMaximizedfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowMaximizedfunc_Deref "un_RGFW_windowMaximizedfunc_Deref" where
type CFieldType RGFW_windowMaximizedfunc_Deref "un_RGFW_windowMaximizedfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowMaximizedfunc@
__defined at:__ @RGFW.h:874:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowMaximizedfunc = RGFW_windowMaximizedfunc
{ un_RGFW_windowMaximizedfunc :: Ptr.FunPtr RGFW_windowMaximizedfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowMaximizedfunc) "un_RGFW_windowMaximizedfunc")
) => GHC.Records.HasField "un_RGFW_windowMaximizedfunc" (Ptr.Ptr RGFW_windowMaximizedfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowMaximizedfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowMaximizedfunc "un_RGFW_windowMaximizedfunc" where
type CFieldType RGFW_windowMaximizedfunc "un_RGFW_windowMaximizedfunc" =
Ptr.FunPtr RGFW_windowMaximizedfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowMinimizedfunc'
__defined at:__ @RGFW.h:876:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowMinimizedfunc_Deref = RGFW_windowMinimizedfunc_Deref
{ un_RGFW_windowMinimizedfunc_Deref :: (Ptr.Ptr RGFW_window) -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowMinimizedfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_1601017de08c745c ::
RGFW_windowMinimizedfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowMinimizedfunc_Deref)
-- | __unique:__ @fromRGFW_windowMinimizedfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_138161ff27cf9db5 ::
Ptr.FunPtr RGFW_windowMinimizedfunc_Deref
-> RGFW_windowMinimizedfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowMinimizedfunc_Deref where
toFunPtr = hs_bindgen_1601017de08c745c
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowMinimizedfunc_Deref where
fromFunPtr = hs_bindgen_138161ff27cf9db5
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowMinimizedfunc_Deref) "un_RGFW_windowMinimizedfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowMinimizedfunc_Deref" (Ptr.Ptr RGFW_windowMinimizedfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowMinimizedfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowMinimizedfunc_Deref "un_RGFW_windowMinimizedfunc_Deref" where
type CFieldType RGFW_windowMinimizedfunc_Deref "un_RGFW_windowMinimizedfunc_Deref" =
(Ptr.Ptr RGFW_window) -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowMinimizedfunc@
__defined at:__ @RGFW.h:876:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowMinimizedfunc = RGFW_windowMinimizedfunc
{ un_RGFW_windowMinimizedfunc :: Ptr.FunPtr RGFW_windowMinimizedfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowMinimizedfunc) "un_RGFW_windowMinimizedfunc")
) => GHC.Records.HasField "un_RGFW_windowMinimizedfunc" (Ptr.Ptr RGFW_windowMinimizedfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowMinimizedfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowMinimizedfunc "un_RGFW_windowMinimizedfunc" where
type CFieldType RGFW_windowMinimizedfunc "un_RGFW_windowMinimizedfunc" =
Ptr.FunPtr RGFW_windowMinimizedfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowQuitfunc'
__defined at:__ @RGFW.h:878:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowQuitfunc_Deref = RGFW_windowQuitfunc_Deref
{ un_RGFW_windowQuitfunc_Deref :: (Ptr.Ptr RGFW_window) -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowQuitfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_e4d762164f8ee301 ::
RGFW_windowQuitfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowQuitfunc_Deref)
-- | __unique:__ @fromRGFW_windowQuitfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_2450c98547eff756 ::
Ptr.FunPtr RGFW_windowQuitfunc_Deref
-> RGFW_windowQuitfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowQuitfunc_Deref where
toFunPtr = hs_bindgen_e4d762164f8ee301
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowQuitfunc_Deref where
fromFunPtr = hs_bindgen_2450c98547eff756
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowQuitfunc_Deref) "un_RGFW_windowQuitfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowQuitfunc_Deref" (Ptr.Ptr RGFW_windowQuitfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowQuitfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowQuitfunc_Deref "un_RGFW_windowQuitfunc_Deref" where
type CFieldType RGFW_windowQuitfunc_Deref "un_RGFW_windowQuitfunc_Deref" =
(Ptr.Ptr RGFW_window) -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowQuitfunc@
__defined at:__ @RGFW.h:878:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowQuitfunc = RGFW_windowQuitfunc
{ un_RGFW_windowQuitfunc :: Ptr.FunPtr RGFW_windowQuitfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowQuitfunc) "un_RGFW_windowQuitfunc")
) => GHC.Records.HasField "un_RGFW_windowQuitfunc" (Ptr.Ptr RGFW_windowQuitfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowQuitfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowQuitfunc "un_RGFW_windowQuitfunc" where
type CFieldType RGFW_windowQuitfunc "un_RGFW_windowQuitfunc" =
Ptr.FunPtr RGFW_windowQuitfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_focusfunc'
__defined at:__ @RGFW.h:880:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_focusfunc_Deref = RGFW_focusfunc_Deref
{ un_RGFW_focusfunc_Deref :: (Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_focusfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_478d512fb69953ac ::
RGFW_focusfunc_Deref
-> IO (Ptr.FunPtr RGFW_focusfunc_Deref)
-- | __unique:__ @fromRGFW_focusfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_0f0131a2c2c57e52 ::
Ptr.FunPtr RGFW_focusfunc_Deref
-> RGFW_focusfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_focusfunc_Deref where
toFunPtr = hs_bindgen_478d512fb69953ac
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_focusfunc_Deref where
fromFunPtr = hs_bindgen_0f0131a2c2c57e52
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_focusfunc_Deref) "un_RGFW_focusfunc_Deref")
) => GHC.Records.HasField "un_RGFW_focusfunc_Deref" (Ptr.Ptr RGFW_focusfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_focusfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_focusfunc_Deref "un_RGFW_focusfunc_Deref" where
type CFieldType RGFW_focusfunc_Deref "un_RGFW_focusfunc_Deref" =
(Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_focusfunc@
__defined at:__ @RGFW.h:880:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_focusfunc = RGFW_focusfunc
{ un_RGFW_focusfunc :: Ptr.FunPtr RGFW_focusfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_focusfunc) "un_RGFW_focusfunc")
) => GHC.Records.HasField "un_RGFW_focusfunc" (Ptr.Ptr RGFW_focusfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_focusfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_focusfunc "un_RGFW_focusfunc" where
type CFieldType RGFW_focusfunc "un_RGFW_focusfunc" =
Ptr.FunPtr RGFW_focusfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_mouseNotifyfunc'
__defined at:__ @RGFW.h:882:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseNotifyfunc_Deref = RGFW_mouseNotifyfunc_Deref
{ un_RGFW_mouseNotifyfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_mouseNotifyfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_8e201529afb180af ::
RGFW_mouseNotifyfunc_Deref
-> IO (Ptr.FunPtr RGFW_mouseNotifyfunc_Deref)
-- | __unique:__ @fromRGFW_mouseNotifyfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_9eba21d8399020c2 ::
Ptr.FunPtr RGFW_mouseNotifyfunc_Deref
-> RGFW_mouseNotifyfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_mouseNotifyfunc_Deref where
toFunPtr = hs_bindgen_8e201529afb180af
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_mouseNotifyfunc_Deref where
fromFunPtr = hs_bindgen_9eba21d8399020c2
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseNotifyfunc_Deref) "un_RGFW_mouseNotifyfunc_Deref")
) => GHC.Records.HasField "un_RGFW_mouseNotifyfunc_Deref" (Ptr.Ptr RGFW_mouseNotifyfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseNotifyfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseNotifyfunc_Deref "un_RGFW_mouseNotifyfunc_Deref" where
type CFieldType RGFW_mouseNotifyfunc_Deref "un_RGFW_mouseNotifyfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_mouseNotifyfunc@
__defined at:__ @RGFW.h:882:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseNotifyfunc = RGFW_mouseNotifyfunc
{ un_RGFW_mouseNotifyfunc :: Ptr.FunPtr RGFW_mouseNotifyfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseNotifyfunc) "un_RGFW_mouseNotifyfunc")
) => GHC.Records.HasField "un_RGFW_mouseNotifyfunc" (Ptr.Ptr RGFW_mouseNotifyfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseNotifyfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseNotifyfunc "un_RGFW_mouseNotifyfunc" where
type CFieldType RGFW_mouseNotifyfunc "un_RGFW_mouseNotifyfunc" =
Ptr.FunPtr RGFW_mouseNotifyfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_mousePosfunc'
__defined at:__ @RGFW.h:884:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mousePosfunc_Deref = RGFW_mousePosfunc_Deref
{ un_RGFW_mousePosfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_mousePosfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_cbdb914cc01519c6 ::
RGFW_mousePosfunc_Deref
-> IO (Ptr.FunPtr RGFW_mousePosfunc_Deref)
-- | __unique:__ @fromRGFW_mousePosfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_39fd95e24ea7088c ::
Ptr.FunPtr RGFW_mousePosfunc_Deref
-> RGFW_mousePosfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_mousePosfunc_Deref where
toFunPtr = hs_bindgen_cbdb914cc01519c6
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_mousePosfunc_Deref where
fromFunPtr = hs_bindgen_39fd95e24ea7088c
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosfunc_Deref) "un_RGFW_mousePosfunc_Deref")
) => GHC.Records.HasField "un_RGFW_mousePosfunc_Deref" (Ptr.Ptr RGFW_mousePosfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mousePosfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosfunc_Deref "un_RGFW_mousePosfunc_Deref" where
type CFieldType RGFW_mousePosfunc_Deref "un_RGFW_mousePosfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_mousePosfunc@
__defined at:__ @RGFW.h:884:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mousePosfunc = RGFW_mousePosfunc
{ un_RGFW_mousePosfunc :: Ptr.FunPtr RGFW_mousePosfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mousePosfunc) "un_RGFW_mousePosfunc")
) => GHC.Records.HasField "un_RGFW_mousePosfunc" (Ptr.Ptr RGFW_mousePosfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mousePosfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mousePosfunc "un_RGFW_mousePosfunc" where
type CFieldType RGFW_mousePosfunc "un_RGFW_mousePosfunc" =
Ptr.FunPtr RGFW_mousePosfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_dataDragfunc'
__defined at:__ @RGFW.h:886:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_dataDragfunc_Deref = RGFW_dataDragfunc_Deref
{ un_RGFW_dataDragfunc_Deref :: (Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_dataDragfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_a6aeb3a33cfd61fc ::
RGFW_dataDragfunc_Deref
-> IO (Ptr.FunPtr RGFW_dataDragfunc_Deref)
-- | __unique:__ @fromRGFW_dataDragfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_bf22d029dc56ac5a ::
Ptr.FunPtr RGFW_dataDragfunc_Deref
-> RGFW_dataDragfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_dataDragfunc_Deref where
toFunPtr = hs_bindgen_a6aeb3a33cfd61fc
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_dataDragfunc_Deref where
fromFunPtr = hs_bindgen_bf22d029dc56ac5a
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDragfunc_Deref) "un_RGFW_dataDragfunc_Deref")
) => GHC.Records.HasField "un_RGFW_dataDragfunc_Deref" (Ptr.Ptr RGFW_dataDragfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_dataDragfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDragfunc_Deref "un_RGFW_dataDragfunc_Deref" where
type CFieldType RGFW_dataDragfunc_Deref "un_RGFW_dataDragfunc_Deref" =
(Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_dataDragfunc@
__defined at:__ @RGFW.h:886:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_dataDragfunc = RGFW_dataDragfunc
{ un_RGFW_dataDragfunc :: Ptr.FunPtr RGFW_dataDragfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDragfunc) "un_RGFW_dataDragfunc")
) => GHC.Records.HasField "un_RGFW_dataDragfunc" (Ptr.Ptr RGFW_dataDragfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_dataDragfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDragfunc "un_RGFW_dataDragfunc" where
type CFieldType RGFW_dataDragfunc "un_RGFW_dataDragfunc" =
Ptr.FunPtr RGFW_dataDragfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_windowRefreshfunc'
__defined at:__ @RGFW.h:888:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowRefreshfunc_Deref = RGFW_windowRefreshfunc_Deref
{ un_RGFW_windowRefreshfunc_Deref :: (Ptr.Ptr RGFW_window) -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_windowRefreshfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_dce16f8630882ce2 ::
RGFW_windowRefreshfunc_Deref
-> IO (Ptr.FunPtr RGFW_windowRefreshfunc_Deref)
-- | __unique:__ @fromRGFW_windowRefreshfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_bb019a9d638a1734 ::
Ptr.FunPtr RGFW_windowRefreshfunc_Deref
-> RGFW_windowRefreshfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_windowRefreshfunc_Deref where
toFunPtr = hs_bindgen_dce16f8630882ce2
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_windowRefreshfunc_Deref where
fromFunPtr = hs_bindgen_bb019a9d638a1734
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowRefreshfunc_Deref) "un_RGFW_windowRefreshfunc_Deref")
) => GHC.Records.HasField "un_RGFW_windowRefreshfunc_Deref" (Ptr.Ptr RGFW_windowRefreshfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowRefreshfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowRefreshfunc_Deref "un_RGFW_windowRefreshfunc_Deref" where
type CFieldType RGFW_windowRefreshfunc_Deref "un_RGFW_windowRefreshfunc_Deref" =
(Ptr.Ptr RGFW_window) -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_windowRefreshfunc@
__defined at:__ @RGFW.h:888:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_windowRefreshfunc = RGFW_windowRefreshfunc
{ un_RGFW_windowRefreshfunc :: Ptr.FunPtr RGFW_windowRefreshfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_windowRefreshfunc) "un_RGFW_windowRefreshfunc")
) => GHC.Records.HasField "un_RGFW_windowRefreshfunc" (Ptr.Ptr RGFW_windowRefreshfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_windowRefreshfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_windowRefreshfunc "un_RGFW_windowRefreshfunc" where
type CFieldType RGFW_windowRefreshfunc "un_RGFW_windowRefreshfunc" =
Ptr.FunPtr RGFW_windowRefreshfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_keyfunc'
__defined at:__ @RGFW.h:890:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_keyfunc_Deref = RGFW_keyfunc_Deref
{ un_RGFW_keyfunc_Deref :: (Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_keyfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_f3d3d9d3e5a6d450 ::
RGFW_keyfunc_Deref
-> IO (Ptr.FunPtr RGFW_keyfunc_Deref)
-- | __unique:__ @fromRGFW_keyfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_c5cb72f70d32aa06 ::
Ptr.FunPtr RGFW_keyfunc_Deref
-> RGFW_keyfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_keyfunc_Deref where
toFunPtr = hs_bindgen_f3d3d9d3e5a6d450
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_keyfunc_Deref where
fromFunPtr = hs_bindgen_c5cb72f70d32aa06
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyfunc_Deref) "un_RGFW_keyfunc_Deref")
) => GHC.Records.HasField "un_RGFW_keyfunc_Deref" (Ptr.Ptr RGFW_keyfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_keyfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyfunc_Deref "un_RGFW_keyfunc_Deref" where
type CFieldType RGFW_keyfunc_Deref "un_RGFW_keyfunc_Deref" =
(Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_keyfunc@
__defined at:__ @RGFW.h:890:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_keyfunc = RGFW_keyfunc
{ un_RGFW_keyfunc :: Ptr.FunPtr RGFW_keyfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_keyfunc) "un_RGFW_keyfunc")
) => GHC.Records.HasField "un_RGFW_keyfunc" (Ptr.Ptr RGFW_keyfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_keyfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_keyfunc "un_RGFW_keyfunc" where
type CFieldType RGFW_keyfunc "un_RGFW_keyfunc" =
Ptr.FunPtr RGFW_keyfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_mouseButtonfunc'
__defined at:__ @RGFW.h:892:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseButtonfunc_Deref = RGFW_mouseButtonfunc_Deref
{ un_RGFW_mouseButtonfunc_Deref :: (Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_mouseButtonfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_da07a175c61781be ::
RGFW_mouseButtonfunc_Deref
-> IO (Ptr.FunPtr RGFW_mouseButtonfunc_Deref)
-- | __unique:__ @fromRGFW_mouseButtonfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_429f03f41e7ce2e3 ::
Ptr.FunPtr RGFW_mouseButtonfunc_Deref
-> RGFW_mouseButtonfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_mouseButtonfunc_Deref where
toFunPtr = hs_bindgen_da07a175c61781be
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_mouseButtonfunc_Deref where
fromFunPtr = hs_bindgen_429f03f41e7ce2e3
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseButtonfunc_Deref) "un_RGFW_mouseButtonfunc_Deref")
) => GHC.Records.HasField "un_RGFW_mouseButtonfunc_Deref" (Ptr.Ptr RGFW_mouseButtonfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseButtonfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseButtonfunc_Deref "un_RGFW_mouseButtonfunc_Deref" where
type CFieldType RGFW_mouseButtonfunc_Deref "un_RGFW_mouseButtonfunc_Deref" =
(Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_mouseButtonfunc@
__defined at:__ @RGFW.h:892:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseButtonfunc = RGFW_mouseButtonfunc
{ un_RGFW_mouseButtonfunc :: Ptr.FunPtr RGFW_mouseButtonfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseButtonfunc) "un_RGFW_mouseButtonfunc")
) => GHC.Records.HasField "un_RGFW_mouseButtonfunc" (Ptr.Ptr RGFW_mouseButtonfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseButtonfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseButtonfunc "un_RGFW_mouseButtonfunc" where
type CFieldType RGFW_mouseButtonfunc "un_RGFW_mouseButtonfunc" =
Ptr.FunPtr RGFW_mouseButtonfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_mouseScrollfunc'
__defined at:__ @RGFW.h:894:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseScrollfunc_Deref = RGFW_mouseScrollfunc_Deref
{ un_RGFW_mouseScrollfunc_Deref :: (Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_mouseScrollfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_8bbc1e3c338dedca ::
RGFW_mouseScrollfunc_Deref
-> IO (Ptr.FunPtr RGFW_mouseScrollfunc_Deref)
-- | __unique:__ @fromRGFW_mouseScrollfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_382286a10578cf36 ::
Ptr.FunPtr RGFW_mouseScrollfunc_Deref
-> RGFW_mouseScrollfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_mouseScrollfunc_Deref where
toFunPtr = hs_bindgen_8bbc1e3c338dedca
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_mouseScrollfunc_Deref where
fromFunPtr = hs_bindgen_382286a10578cf36
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseScrollfunc_Deref) "un_RGFW_mouseScrollfunc_Deref")
) => GHC.Records.HasField "un_RGFW_mouseScrollfunc_Deref" (Ptr.Ptr RGFW_mouseScrollfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseScrollfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseScrollfunc_Deref "un_RGFW_mouseScrollfunc_Deref" where
type CFieldType RGFW_mouseScrollfunc_Deref "un_RGFW_mouseScrollfunc_Deref" =
(Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_mouseScrollfunc@
__defined at:__ @RGFW.h:894:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_mouseScrollfunc = RGFW_mouseScrollfunc
{ un_RGFW_mouseScrollfunc :: Ptr.FunPtr RGFW_mouseScrollfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_mouseScrollfunc) "un_RGFW_mouseScrollfunc")
) => GHC.Records.HasField "un_RGFW_mouseScrollfunc" (Ptr.Ptr RGFW_mouseScrollfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_mouseScrollfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_mouseScrollfunc "un_RGFW_mouseScrollfunc" where
type CFieldType RGFW_mouseScrollfunc "un_RGFW_mouseScrollfunc" =
Ptr.FunPtr RGFW_mouseScrollfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_dataDropfunc'
__defined at:__ @RGFW.h:896:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_dataDropfunc_Deref = RGFW_dataDropfunc_Deref
{ un_RGFW_dataDropfunc_Deref :: (Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_dataDropfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_4adcb49cd67c0998 ::
RGFW_dataDropfunc_Deref
-> IO (Ptr.FunPtr RGFW_dataDropfunc_Deref)
-- | __unique:__ @fromRGFW_dataDropfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_7ac79e6c7935ca8a ::
Ptr.FunPtr RGFW_dataDropfunc_Deref
-> RGFW_dataDropfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_dataDropfunc_Deref where
toFunPtr = hs_bindgen_4adcb49cd67c0998
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_dataDropfunc_Deref where
fromFunPtr = hs_bindgen_7ac79e6c7935ca8a
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDropfunc_Deref) "un_RGFW_dataDropfunc_Deref")
) => GHC.Records.HasField "un_RGFW_dataDropfunc_Deref" (Ptr.Ptr RGFW_dataDropfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_dataDropfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDropfunc_Deref "un_RGFW_dataDropfunc_Deref" where
type CFieldType RGFW_dataDropfunc_Deref "un_RGFW_dataDropfunc_Deref" =
(Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_dataDropfunc@
__defined at:__ @RGFW.h:896:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_dataDropfunc = RGFW_dataDropfunc
{ un_RGFW_dataDropfunc :: Ptr.FunPtr RGFW_dataDropfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_dataDropfunc) "un_RGFW_dataDropfunc")
) => GHC.Records.HasField "un_RGFW_dataDropfunc" (Ptr.Ptr RGFW_dataDropfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_dataDropfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_dataDropfunc "un_RGFW_dataDropfunc" where
type CFieldType RGFW_dataDropfunc "un_RGFW_dataDropfunc" =
Ptr.FunPtr RGFW_dataDropfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_scaleUpdatedfunc'
__defined at:__ @RGFW.h:898:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_scaleUpdatedfunc_Deref = RGFW_scaleUpdatedfunc_Deref
{ un_RGFW_scaleUpdatedfunc_Deref :: (Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_scaleUpdatedfunc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_12924d4f75ba02b3 ::
RGFW_scaleUpdatedfunc_Deref
-> IO (Ptr.FunPtr RGFW_scaleUpdatedfunc_Deref)
-- | __unique:__ @fromRGFW_scaleUpdatedfunc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_f2133588f6ab1d9a ::
Ptr.FunPtr RGFW_scaleUpdatedfunc_Deref
-> RGFW_scaleUpdatedfunc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_scaleUpdatedfunc_Deref where
toFunPtr = hs_bindgen_12924d4f75ba02b3
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_scaleUpdatedfunc_Deref where
fromFunPtr = hs_bindgen_f2133588f6ab1d9a
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_scaleUpdatedfunc_Deref) "un_RGFW_scaleUpdatedfunc_Deref")
) => GHC.Records.HasField "un_RGFW_scaleUpdatedfunc_Deref" (Ptr.Ptr RGFW_scaleUpdatedfunc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_scaleUpdatedfunc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_scaleUpdatedfunc_Deref "un_RGFW_scaleUpdatedfunc_Deref" where
type CFieldType RGFW_scaleUpdatedfunc_Deref "un_RGFW_scaleUpdatedfunc_Deref" =
(Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_scaleUpdatedfunc@
__defined at:__ @RGFW.h:898:17@
__exported by:__ @RGFW.h@
-}
newtype RGFW_scaleUpdatedfunc = RGFW_scaleUpdatedfunc
{ un_RGFW_scaleUpdatedfunc :: Ptr.FunPtr RGFW_scaleUpdatedfunc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_scaleUpdatedfunc) "un_RGFW_scaleUpdatedfunc")
) => GHC.Records.HasField "un_RGFW_scaleUpdatedfunc" (Ptr.Ptr RGFW_scaleUpdatedfunc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_scaleUpdatedfunc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_scaleUpdatedfunc "un_RGFW_scaleUpdatedfunc" where
type CFieldType RGFW_scaleUpdatedfunc "un_RGFW_scaleUpdatedfunc" =
Ptr.FunPtr RGFW_scaleUpdatedfunc_Deref
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by 'RGFW_proc'
__defined at:__ @RGFW.h:901:16@
__exported by:__ @RGFW.h@
-}
newtype RGFW_proc_Deref = RGFW_proc_Deref
{ un_RGFW_proc_Deref :: IO ()
}
deriving newtype (HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
-- | __unique:__ @toRGFW_proc_Deref@
foreign import ccall safe "wrapper" hs_bindgen_d7cc0aa52d1b458d ::
RGFW_proc_Deref
-> IO (Ptr.FunPtr RGFW_proc_Deref)
-- | __unique:__ @fromRGFW_proc_Deref@
foreign import ccall safe "dynamic" hs_bindgen_7b968f55d4ede261 ::
Ptr.FunPtr RGFW_proc_Deref
-> RGFW_proc_Deref
instance HsBindgen.Runtime.FunPtr.ToFunPtr RGFW_proc_Deref where
toFunPtr = hs_bindgen_d7cc0aa52d1b458d
instance HsBindgen.Runtime.FunPtr.FromFunPtr RGFW_proc_Deref where
fromFunPtr = hs_bindgen_7b968f55d4ede261
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_proc_Deref) "un_RGFW_proc_Deref")
) => GHC.Records.HasField "un_RGFW_proc_Deref" (Ptr.Ptr RGFW_proc_Deref) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_proc_Deref")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_proc_Deref "un_RGFW_proc_Deref" where
type CFieldType RGFW_proc_Deref "un_RGFW_proc_Deref" =
IO ()
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_proc@
__defined at:__ @RGFW.h:901:16@
__exported by:__ @RGFW.h@
-}
newtype RGFW_proc = RGFW_proc
{ un_RGFW_proc :: Ptr.FunPtr RGFW_proc_Deref
}
deriving stock (Eq, Ord, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_proc) "un_RGFW_proc")
) => GHC.Records.HasField "un_RGFW_proc" (Ptr.Ptr RGFW_proc) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_proc")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_proc "un_RGFW_proc" where
type CFieldType RGFW_proc "un_RGFW_proc" =
Ptr.FunPtr RGFW_proc_Deref
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_monitorMode@
__defined at:__ @RGFW.h:906:16@
__exported by:__ @RGFW.h@
-}
data RGFW_monitorMode = RGFW_monitorMode
{ rGFW_monitorMode_w :: I32
{- ^ __C declaration:__ @w@
__defined at:__ @RGFW.h:907:6@
__exported by:__ @RGFW.h@
-}
, rGFW_monitorMode_h :: I32
{- ^ __C declaration:__ @h@
__defined at:__ @RGFW.h:907:9@
__exported by:__ @RGFW.h@
-}
, rGFW_monitorMode_refreshRate :: U32
{- ^ __C declaration:__ @refreshRate@
__defined at:__ @RGFW.h:908:6@
__exported by:__ @RGFW.h@
-}
, rGFW_monitorMode_red :: U8
{- ^ __C declaration:__ @red@
__defined at:__ @RGFW.h:909:5@
__exported by:__ @RGFW.h@
-}
, rGFW_monitorMode_blue :: U8
{- ^ __C declaration:__ @blue@
__defined at:__ @RGFW.h:909:10@
__exported by:__ @RGFW.h@
-}
, rGFW_monitorMode_green :: U8
{- ^ __C declaration:__ @green@
__defined at:__ @RGFW.h:909:16@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_monitorMode where
sizeOf = \_ -> (16 :: Int)
alignment = \_ -> (4 :: Int)
peek =
\ptr0 ->
pure RGFW_monitorMode
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitorMode_w") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitorMode_h") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitorMode_refreshRate") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitorMode_red") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitorMode_blue") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitorMode_green") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_monitorMode
rGFW_monitorMode_w2
rGFW_monitorMode_h3
rGFW_monitorMode_refreshRate4
rGFW_monitorMode_red5
rGFW_monitorMode_blue6
rGFW_monitorMode_green7 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitorMode_w") ptr0 rGFW_monitorMode_w2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitorMode_h") ptr0 rGFW_monitorMode_h3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitorMode_refreshRate") ptr0 rGFW_monitorMode_refreshRate4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitorMode_red") ptr0 rGFW_monitorMode_red5
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitorMode_blue") ptr0 rGFW_monitorMode_blue6
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitorMode_green") ptr0 rGFW_monitorMode_green7
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitorMode "rGFW_monitorMode_w" where
type CFieldType RGFW_monitorMode "rGFW_monitorMode_w" =
I32
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitorMode) "rGFW_monitorMode_w")
) => GHC.Records.HasField "rGFW_monitorMode_w" (Ptr.Ptr RGFW_monitorMode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitorMode_w")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitorMode "rGFW_monitorMode_h" where
type CFieldType RGFW_monitorMode "rGFW_monitorMode_h" =
I32
offset# = \_ -> \_ -> 4
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitorMode) "rGFW_monitorMode_h")
) => GHC.Records.HasField "rGFW_monitorMode_h" (Ptr.Ptr RGFW_monitorMode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitorMode_h")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitorMode "rGFW_monitorMode_refreshRate" where
type CFieldType RGFW_monitorMode "rGFW_monitorMode_refreshRate" =
U32
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitorMode) "rGFW_monitorMode_refreshRate")
) => GHC.Records.HasField "rGFW_monitorMode_refreshRate" (Ptr.Ptr RGFW_monitorMode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitorMode_refreshRate")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitorMode "rGFW_monitorMode_red" where
type CFieldType RGFW_monitorMode "rGFW_monitorMode_red" =
U8
offset# = \_ -> \_ -> 12
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitorMode) "rGFW_monitorMode_red")
) => GHC.Records.HasField "rGFW_monitorMode_red" (Ptr.Ptr RGFW_monitorMode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitorMode_red")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitorMode "rGFW_monitorMode_blue" where
type CFieldType RGFW_monitorMode "rGFW_monitorMode_blue" =
U8
offset# = \_ -> \_ -> 13
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitorMode) "rGFW_monitorMode_blue")
) => GHC.Records.HasField "rGFW_monitorMode_blue" (Ptr.Ptr RGFW_monitorMode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitorMode_blue")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitorMode "rGFW_monitorMode_green" where
type CFieldType RGFW_monitorMode "rGFW_monitorMode_green" =
U8
offset# = \_ -> \_ -> 14
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitorMode) "rGFW_monitorMode_green")
) => GHC.Records.HasField "rGFW_monitorMode_green" (Ptr.Ptr RGFW_monitorMode) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitorMode_green")
{-| __C declaration:__ @RGFW_monitor@
__defined at:__ @RGFW.h:913:16@
__exported by:__ @RGFW.h@
-}
data RGFW_monitor = RGFW_monitor
{ rGFW_monitor_x :: I32
{- ^ __C declaration:__ @x@
__defined at:__ @RGFW.h:914:6@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_y :: I32
{- ^ __C declaration:__ @y@
__defined at:__ @RGFW.h:914:9@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_name :: (HsBindgen.Runtime.ConstantArray.ConstantArray 128) FC.CChar
{- ^ __C declaration:__ @name@
__defined at:__ @RGFW.h:915:7@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_scaleX :: FC.CFloat
{- ^ __C declaration:__ @scaleX@
__defined at:__ @RGFW.h:916:8@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_scaleY :: FC.CFloat
{- ^ __C declaration:__ @scaleY@
__defined at:__ @RGFW.h:916:16@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_pixelRatio :: FC.CFloat
{- ^ __C declaration:__ @pixelRatio@
__defined at:__ @RGFW.h:917:8@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_physW :: FC.CFloat
{- ^ __C declaration:__ @physW@
__defined at:__ @RGFW.h:918:8@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_physH :: FC.CFloat
{- ^ __C declaration:__ @physH@
__defined at:__ @RGFW.h:918:15@
__exported by:__ @RGFW.h@
-}
, rGFW_monitor_mode :: RGFW_monitorMode
{- ^ __C declaration:__ @mode@
__defined at:__ @RGFW.h:919:19@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_monitor where
sizeOf = \_ -> (172 :: Int)
alignment = \_ -> (4 :: Int)
peek =
\ptr0 ->
pure RGFW_monitor
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_x") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_y") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_name") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_scaleX") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_scaleY") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_pixelRatio") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_physW") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_physH") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_monitor_mode") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_monitor
rGFW_monitor_x2
rGFW_monitor_y3
rGFW_monitor_name4
rGFW_monitor_scaleX5
rGFW_monitor_scaleY6
rGFW_monitor_pixelRatio7
rGFW_monitor_physW8
rGFW_monitor_physH9
rGFW_monitor_mode10 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_x") ptr0 rGFW_monitor_x2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_y") ptr0 rGFW_monitor_y3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_name") ptr0 rGFW_monitor_name4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_scaleX") ptr0 rGFW_monitor_scaleX5
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_scaleY") ptr0 rGFW_monitor_scaleY6
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_pixelRatio") ptr0 rGFW_monitor_pixelRatio7
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_physW") ptr0 rGFW_monitor_physW8
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_physH") ptr0 rGFW_monitor_physH9
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_monitor_mode") ptr0 rGFW_monitor_mode10
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_x" where
type CFieldType RGFW_monitor "rGFW_monitor_x" = I32
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_x")
) => GHC.Records.HasField "rGFW_monitor_x" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_x")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_y" where
type CFieldType RGFW_monitor "rGFW_monitor_y" = I32
offset# = \_ -> \_ -> 4
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_y")
) => GHC.Records.HasField "rGFW_monitor_y" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_y")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_name" where
type CFieldType RGFW_monitor "rGFW_monitor_name" =
(HsBindgen.Runtime.ConstantArray.ConstantArray 128) FC.CChar
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_name")
) => GHC.Records.HasField "rGFW_monitor_name" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_name")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_scaleX" where
type CFieldType RGFW_monitor "rGFW_monitor_scaleX" =
FC.CFloat
offset# = \_ -> \_ -> 136
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_scaleX")
) => GHC.Records.HasField "rGFW_monitor_scaleX" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_scaleX")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_scaleY" where
type CFieldType RGFW_monitor "rGFW_monitor_scaleY" =
FC.CFloat
offset# = \_ -> \_ -> 140
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_scaleY")
) => GHC.Records.HasField "rGFW_monitor_scaleY" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_scaleY")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_pixelRatio" where
type CFieldType RGFW_monitor "rGFW_monitor_pixelRatio" =
FC.CFloat
offset# = \_ -> \_ -> 144
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_pixelRatio")
) => GHC.Records.HasField "rGFW_monitor_pixelRatio" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_pixelRatio")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_physW" where
type CFieldType RGFW_monitor "rGFW_monitor_physW" =
FC.CFloat
offset# = \_ -> \_ -> 148
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_physW")
) => GHC.Records.HasField "rGFW_monitor_physW" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_physW")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_physH" where
type CFieldType RGFW_monitor "rGFW_monitor_physH" =
FC.CFloat
offset# = \_ -> \_ -> 152
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_physH")
) => GHC.Records.HasField "rGFW_monitor_physH" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_physH")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_monitor "rGFW_monitor_mode" where
type CFieldType RGFW_monitor "rGFW_monitor_mode" =
RGFW_monitorMode
offset# = \_ -> \_ -> 156
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_monitor) "rGFW_monitor_mode")
) => GHC.Records.HasField "rGFW_monitor_mode" (Ptr.Ptr RGFW_monitor) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_monitor_mode")
{-| __C declaration:__ @RGFW_modeRequest@
__defined at:__ @RGFW.h:923:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_modeRequest = RGFW_modeRequest
{ un_RGFW_modeRequest :: U8
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_modeRequest) "un_RGFW_modeRequest")
) => GHC.Records.HasField "un_RGFW_modeRequest" (Ptr.Ptr RGFW_modeRequest) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_modeRequest")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_modeRequest "un_RGFW_modeRequest" where
type CFieldType RGFW_modeRequest "un_RGFW_modeRequest" =
U8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_glContext@
__defined at:__ @RGFW.h:935:16@
__exported by:__ @RGFW.h@
-}
data RGFW_glContext
{-| __C declaration:__ @RGFW_eglContext@
__defined at:__ @RGFW.h:938:16@
__exported by:__ @RGFW.h@
-}
data RGFW_eglContext
{-| __C declaration:__ @RGFW_glReleaseBehavior@
__defined at:__ @RGFW.h:941:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_glReleaseBehavior = RGFW_glReleaseBehavior
{ un_RGFW_glReleaseBehavior :: I32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glReleaseBehavior) "un_RGFW_glReleaseBehavior")
) => GHC.Records.HasField "un_RGFW_glReleaseBehavior" (Ptr.Ptr RGFW_glReleaseBehavior) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_glReleaseBehavior")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glReleaseBehavior "un_RGFW_glReleaseBehavior" where
type CFieldType RGFW_glReleaseBehavior "un_RGFW_glReleaseBehavior" =
I32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_glProfile@
__defined at:__ @RGFW.h:947:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_glProfile = RGFW_glProfile
{ un_RGFW_glProfile :: I32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glProfile) "un_RGFW_glProfile")
) => GHC.Records.HasField "un_RGFW_glProfile" (Ptr.Ptr RGFW_glProfile) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_glProfile")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glProfile "un_RGFW_glProfile" where
type CFieldType RGFW_glProfile "un_RGFW_glProfile" =
I32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_glRenderer@
__defined at:__ @RGFW.h:955:9@
__exported by:__ @RGFW.h@
-}
newtype RGFW_glRenderer = RGFW_glRenderer
{ un_RGFW_glRenderer :: I32
}
deriving stock (Eq, Ord, Read, Show)
deriving newtype (F.Storable, HsBindgen.Runtime.HasBaseForeignType.HasBaseForeignType, Bits.Bits, Bounded, Enum, FiniteBits, Integral, Ix.Ix, Num, Real)
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glRenderer) "un_RGFW_glRenderer")
) => GHC.Records.HasField "un_RGFW_glRenderer" (Ptr.Ptr RGFW_glRenderer) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"un_RGFW_glRenderer")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glRenderer "un_RGFW_glRenderer" where
type CFieldType RGFW_glRenderer "un_RGFW_glRenderer" =
I32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @RGFW_glHints@
__defined at:__ @RGFW.h:961:16@
__exported by:__ @RGFW.h@
-}
data RGFW_glHints = RGFW_glHints
{ rGFW_glHints_stencil :: I32
{- ^ __C declaration:__ @stencil@
__defined at:__ @RGFW.h:962:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_samples :: I32
{- ^ __C declaration:__ @samples@
__defined at:__ @RGFW.h:963:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_stereo :: I32
{- ^ __C declaration:__ @stereo@
__defined at:__ @RGFW.h:964:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_auxBuffers :: I32
{- ^ __C declaration:__ @auxBuffers@
__defined at:__ @RGFW.h:965:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_doubleBuffer :: I32
{- ^ __C declaration:__ @doubleBuffer@
__defined at:__ @RGFW.h:966:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_red :: I32
{- ^ __C declaration:__ @red@
__defined at:__ @RGFW.h:967:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_green :: I32
{- ^ __C declaration:__ @green@
__defined at:__ @RGFW.h:967:11@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_blue :: I32
{- ^ __C declaration:__ @blue@
__defined at:__ @RGFW.h:967:18@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_alpha :: I32
{- ^ __C declaration:__ @alpha@
__defined at:__ @RGFW.h:967:24@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_depth :: I32
{- ^ __C declaration:__ @depth@
__defined at:__ @RGFW.h:968:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_accumRed :: I32
{- ^ __C declaration:__ @accumRed@
__defined at:__ @RGFW.h:969:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_accumGreen :: I32
{- ^ __C declaration:__ @accumGreen@
__defined at:__ @RGFW.h:969:16@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_accumBlue :: I32
{- ^ __C declaration:__ @accumBlue@
__defined at:__ @RGFW.h:969:28@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_accumAlpha :: I32
{- ^ __C declaration:__ @accumAlpha@
__defined at:__ @RGFW.h:969:39@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_sRGB :: RGFW_bool
{- ^ __C declaration:__ @sRGB@
__defined at:__ @RGFW.h:970:12@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_robustness :: RGFW_bool
{- ^ __C declaration:__ @robustness@
__defined at:__ @RGFW.h:971:12@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_debug :: RGFW_bool
{- ^ __C declaration:__ @debug@
__defined at:__ @RGFW.h:972:12@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_noError :: RGFW_bool
{- ^ __C declaration:__ @noError@
__defined at:__ @RGFW.h:973:12@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_releaseBehavior :: RGFW_glReleaseBehavior
{- ^ __C declaration:__ @releaseBehavior@
__defined at:__ @RGFW.h:974:25@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_profile :: RGFW_glProfile
{- ^ __C declaration:__ @profile@
__defined at:__ @RGFW.h:975:17@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_major :: I32
{- ^ __C declaration:__ @major@
__defined at:__ @RGFW.h:976:6@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_minor :: I32
{- ^ __C declaration:__ @minor@
__defined at:__ @RGFW.h:976:13@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_share :: Ptr.Ptr RGFW_glContext
{- ^ __C declaration:__ @share@
__defined at:__ @RGFW.h:977:18@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_shareEGL :: Ptr.Ptr RGFW_eglContext
{- ^ __C declaration:__ @shareEGL@
__defined at:__ @RGFW.h:978:19@
__exported by:__ @RGFW.h@
-}
, rGFW_glHints_renderer :: RGFW_glRenderer
{- ^ __C declaration:__ @renderer@
__defined at:__ @RGFW.h:979:18@
__exported by:__ @RGFW.h@
-}
}
deriving stock (Eq, Show)
instance F.Storable RGFW_glHints where
sizeOf = \_ -> (104 :: Int)
alignment = \_ -> (8 :: Int)
peek =
\ptr0 ->
pure RGFW_glHints
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_stencil") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_samples") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_stereo") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_auxBuffers") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_doubleBuffer") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_red") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_green") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_blue") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_alpha") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_depth") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_accumRed") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_accumGreen") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_accumBlue") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_accumAlpha") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_sRGB") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_robustness") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_debug") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_noError") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_releaseBehavior") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_profile") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_major") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_minor") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_share") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_shareEGL") ptr0
<*> HsBindgen.Runtime.HasCField.peekCField (Data.Proxy.Proxy @"rGFW_glHints_renderer") ptr0
poke =
\ptr0 ->
\s1 ->
case s1 of
RGFW_glHints
rGFW_glHints_stencil2
rGFW_glHints_samples3
rGFW_glHints_stereo4
rGFW_glHints_auxBuffers5
rGFW_glHints_doubleBuffer6
rGFW_glHints_red7
rGFW_glHints_green8
rGFW_glHints_blue9
rGFW_glHints_alpha10
rGFW_glHints_depth11
rGFW_glHints_accumRed12
rGFW_glHints_accumGreen13
rGFW_glHints_accumBlue14
rGFW_glHints_accumAlpha15
rGFW_glHints_sRGB16
rGFW_glHints_robustness17
rGFW_glHints_debug18
rGFW_glHints_noError19
rGFW_glHints_releaseBehavior20
rGFW_glHints_profile21
rGFW_glHints_major22
rGFW_glHints_minor23
rGFW_glHints_share24
rGFW_glHints_shareEGL25
rGFW_glHints_renderer26 ->
HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_stencil") ptr0 rGFW_glHints_stencil2
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_samples") ptr0 rGFW_glHints_samples3
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_stereo") ptr0 rGFW_glHints_stereo4
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_auxBuffers") ptr0 rGFW_glHints_auxBuffers5
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_doubleBuffer") ptr0 rGFW_glHints_doubleBuffer6
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_red") ptr0 rGFW_glHints_red7
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_green") ptr0 rGFW_glHints_green8
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_blue") ptr0 rGFW_glHints_blue9
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_alpha") ptr0 rGFW_glHints_alpha10
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_depth") ptr0 rGFW_glHints_depth11
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_accumRed") ptr0 rGFW_glHints_accumRed12
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_accumGreen") ptr0 rGFW_glHints_accumGreen13
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_accumBlue") ptr0 rGFW_glHints_accumBlue14
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_accumAlpha") ptr0 rGFW_glHints_accumAlpha15
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_sRGB") ptr0 rGFW_glHints_sRGB16
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_robustness") ptr0 rGFW_glHints_robustness17
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_debug") ptr0 rGFW_glHints_debug18
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_noError") ptr0 rGFW_glHints_noError19
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_releaseBehavior") ptr0 rGFW_glHints_releaseBehavior20
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_profile") ptr0 rGFW_glHints_profile21
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_major") ptr0 rGFW_glHints_major22
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_minor") ptr0 rGFW_glHints_minor23
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_share") ptr0 rGFW_glHints_share24
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_shareEGL") ptr0 rGFW_glHints_shareEGL25
>> HsBindgen.Runtime.HasCField.pokeCField (Data.Proxy.Proxy @"rGFW_glHints_renderer") ptr0 rGFW_glHints_renderer26
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_stencil" where
type CFieldType RGFW_glHints "rGFW_glHints_stencil" =
I32
offset# = \_ -> \_ -> 0
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_stencil")
) => GHC.Records.HasField "rGFW_glHints_stencil" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_stencil")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_samples" where
type CFieldType RGFW_glHints "rGFW_glHints_samples" =
I32
offset# = \_ -> \_ -> 4
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_samples")
) => GHC.Records.HasField "rGFW_glHints_samples" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_samples")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_stereo" where
type CFieldType RGFW_glHints "rGFW_glHints_stereo" =
I32
offset# = \_ -> \_ -> 8
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_stereo")
) => GHC.Records.HasField "rGFW_glHints_stereo" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_stereo")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_auxBuffers" where
type CFieldType RGFW_glHints "rGFW_glHints_auxBuffers" =
I32
offset# = \_ -> \_ -> 12
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_auxBuffers")
) => GHC.Records.HasField "rGFW_glHints_auxBuffers" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_auxBuffers")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_doubleBuffer" where
type CFieldType RGFW_glHints "rGFW_glHints_doubleBuffer" =
I32
offset# = \_ -> \_ -> 16
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_doubleBuffer")
) => GHC.Records.HasField "rGFW_glHints_doubleBuffer" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_doubleBuffer")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_red" where
type CFieldType RGFW_glHints "rGFW_glHints_red" = I32
offset# = \_ -> \_ -> 20
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_red")
) => GHC.Records.HasField "rGFW_glHints_red" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_red")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_green" where
type CFieldType RGFW_glHints "rGFW_glHints_green" =
I32
offset# = \_ -> \_ -> 24
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_green")
) => GHC.Records.HasField "rGFW_glHints_green" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_green")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_blue" where
type CFieldType RGFW_glHints "rGFW_glHints_blue" =
I32
offset# = \_ -> \_ -> 28
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_blue")
) => GHC.Records.HasField "rGFW_glHints_blue" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_blue")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_alpha" where
type CFieldType RGFW_glHints "rGFW_glHints_alpha" =
I32
offset# = \_ -> \_ -> 32
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_alpha")
) => GHC.Records.HasField "rGFW_glHints_alpha" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_alpha")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_depth" where
type CFieldType RGFW_glHints "rGFW_glHints_depth" =
I32
offset# = \_ -> \_ -> 36
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_depth")
) => GHC.Records.HasField "rGFW_glHints_depth" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_depth")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_accumRed" where
type CFieldType RGFW_glHints "rGFW_glHints_accumRed" =
I32
offset# = \_ -> \_ -> 40
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_accumRed")
) => GHC.Records.HasField "rGFW_glHints_accumRed" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_accumRed")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_accumGreen" where
type CFieldType RGFW_glHints "rGFW_glHints_accumGreen" =
I32
offset# = \_ -> \_ -> 44
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_accumGreen")
) => GHC.Records.HasField "rGFW_glHints_accumGreen" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_accumGreen")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_accumBlue" where
type CFieldType RGFW_glHints "rGFW_glHints_accumBlue" =
I32
offset# = \_ -> \_ -> 48
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_accumBlue")
) => GHC.Records.HasField "rGFW_glHints_accumBlue" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_accumBlue")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_accumAlpha" where
type CFieldType RGFW_glHints "rGFW_glHints_accumAlpha" =
I32
offset# = \_ -> \_ -> 52
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_accumAlpha")
) => GHC.Records.HasField "rGFW_glHints_accumAlpha" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_accumAlpha")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_sRGB" where
type CFieldType RGFW_glHints "rGFW_glHints_sRGB" =
RGFW_bool
offset# = \_ -> \_ -> 56
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_sRGB")
) => GHC.Records.HasField "rGFW_glHints_sRGB" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_sRGB")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_robustness" where
type CFieldType RGFW_glHints "rGFW_glHints_robustness" =
RGFW_bool
offset# = \_ -> \_ -> 57
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_robustness")
) => GHC.Records.HasField "rGFW_glHints_robustness" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_robustness")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_debug" where
type CFieldType RGFW_glHints "rGFW_glHints_debug" =
RGFW_bool
offset# = \_ -> \_ -> 58
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_debug")
) => GHC.Records.HasField "rGFW_glHints_debug" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_debug")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_noError" where
type CFieldType RGFW_glHints "rGFW_glHints_noError" =
RGFW_bool
offset# = \_ -> \_ -> 59
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_noError")
) => GHC.Records.HasField "rGFW_glHints_noError" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_noError")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_releaseBehavior" where
type CFieldType RGFW_glHints "rGFW_glHints_releaseBehavior" =
RGFW_glReleaseBehavior
offset# = \_ -> \_ -> 60
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_releaseBehavior")
) => GHC.Records.HasField "rGFW_glHints_releaseBehavior" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_releaseBehavior")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_profile" where
type CFieldType RGFW_glHints "rGFW_glHints_profile" =
RGFW_glProfile
offset# = \_ -> \_ -> 64
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_profile")
) => GHC.Records.HasField "rGFW_glHints_profile" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_profile")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_major" where
type CFieldType RGFW_glHints "rGFW_glHints_major" =
I32
offset# = \_ -> \_ -> 68
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_major")
) => GHC.Records.HasField "rGFW_glHints_major" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_major")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_minor" where
type CFieldType RGFW_glHints "rGFW_glHints_minor" =
I32
offset# = \_ -> \_ -> 72
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_minor")
) => GHC.Records.HasField "rGFW_glHints_minor" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_minor")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_share" where
type CFieldType RGFW_glHints "rGFW_glHints_share" =
Ptr.Ptr RGFW_glContext
offset# = \_ -> \_ -> 80
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_share")
) => GHC.Records.HasField "rGFW_glHints_share" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_share")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_shareEGL" where
type CFieldType RGFW_glHints "rGFW_glHints_shareEGL" =
Ptr.Ptr RGFW_eglContext
offset# = \_ -> \_ -> 88
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_shareEGL")
) => GHC.Records.HasField "rGFW_glHints_shareEGL" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_shareEGL")
instance HsBindgen.Runtime.HasCField.HasCField RGFW_glHints "rGFW_glHints_renderer" where
type CFieldType RGFW_glHints "rGFW_glHints_renderer" =
RGFW_glRenderer
offset# = \_ -> \_ -> 96
instance ( TyEq ty ((HsBindgen.Runtime.HasCField.CFieldType RGFW_glHints) "rGFW_glHints_renderer")
) => GHC.Records.HasField "rGFW_glHints_renderer" (Ptr.Ptr RGFW_glHints) (Ptr.Ptr ty) where
getField =
HsBindgen.Runtime.HasCField.ptrToCField (Data.Proxy.Proxy @"rGFW_glHints_renderer")
{-| __C declaration:__ @wl_display@
__defined at:__ @RGFW.h:1040:16@
__exported by:__ @RGFW.h@
-}
data Wl_display
{-| __C declaration:__ @wl_surface@
__defined at:__ @RGFW.h:1463:16@
__exported by:__ @RGFW.h@
-}
data Wl_surface
-- | __unique:__ @instance ToFunPtr (RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_904b568465885596 ::
(RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ())
-> IO (Ptr.FunPtr (RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ()))
-- | __unique:__ @instance FromFunPtr (RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_e4ec60ddb9fb837b ::
Ptr.FunPtr (RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ())
-> RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr (RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ()) where
toFunPtr = hs_bindgen_904b568465885596
instance HsBindgen.Runtime.FunPtr.FromFunPtr (RGFW_debugType -> RGFW_errorCode -> (HsBindgen.Runtime.ConstPtr.ConstPtr FC.CChar) -> IO ()) where
fromFunPtr = hs_bindgen_e4ec60ddb9fb837b
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_a5053d5fdec3608b ::
((Ptr.Ptr RGFW_window) -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_b3f75fa0c88460f3 ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> IO ())
-> (Ptr.Ptr RGFW_window) -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> IO ()) where
toFunPtr = hs_bindgen_a5053d5fdec3608b
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> IO ()) where
fromFunPtr = hs_bindgen_b3f75fa0c88460f3
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_a4837afae6a0387e ::
((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_0b4d3ff7738b8f3f ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ())
-> (Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()) where
toFunPtr = hs_bindgen_a4837afae6a0387e
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> FC.CFloat -> FC.CFloat -> IO ()) where
fromFunPtr = hs_bindgen_0b4d3ff7738b8f3f
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_8536f1a194d91478 ::
((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_0c1598295f962e5f ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ())
-> (Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ()) where
toFunPtr = hs_bindgen_8536f1a194d91478
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_bool -> IO ()) where
fromFunPtr = hs_bindgen_0c1598295f962e5f
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_412237c60f55a4ff ::
((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_304b2ccabd59dc8d ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ())
-> (Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ()) where
toFunPtr = hs_bindgen_412237c60f55a4ff
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> RGFW_mouseButton -> RGFW_bool -> IO ()) where
fromFunPtr = hs_bindgen_304b2ccabd59dc8d
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_9ecab19527108d20 ::
((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_540d5424c64a3bca ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ())
-> (Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()) where
toFunPtr = hs_bindgen_9ecab19527108d20
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> IO ()) where
fromFunPtr = hs_bindgen_540d5424c64a3bca
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_1bd0d96a04b00525 ::
((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_5c51355504cc36cd ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ())
-> (Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ()) where
toFunPtr = hs_bindgen_1bd0d96a04b00525
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> FC.CFloat -> FC.CFloat -> IO ()) where
fromFunPtr = hs_bindgen_5c51355504cc36cd
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_0541b4afab431914 ::
((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_366551744fc90dba ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ())
-> (Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ()) where
toFunPtr = hs_bindgen_0541b4afab431914
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> RGFW_bool -> IO ()) where
fromFunPtr = hs_bindgen_366551744fc90dba
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_dd3f39289d0a2e5f ::
((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_cd56076a28401221 ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ())
-> (Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()) where
toFunPtr = hs_bindgen_dd3f39289d0a2e5f
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> I32 -> I32 -> I32 -> I32 -> IO ()) where
fromFunPtr = hs_bindgen_cd56076a28401221
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_6d8aa8a68d705627 ::
((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_fb245323185c5f0f ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ())
-> (Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ()) where
toFunPtr = hs_bindgen_6d8aa8a68d705627
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> U8 -> U8 -> RGFW_keymod -> RGFW_bool -> RGFW_bool -> IO ()) where
fromFunPtr = hs_bindgen_fb245323185c5f0f
-- | __unique:__ @instance ToFunPtr ((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_9f5ec97cb78bab98 ::
((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ())
-> IO (Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ()))
-- | __unique:__ @instance FromFunPtr ((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_677535b28fb460d9 ::
Ptr.FunPtr ((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ())
-> (Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ()
instance HsBindgen.Runtime.FunPtr.ToFunPtr ((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ()) where
toFunPtr = hs_bindgen_9f5ec97cb78bab98
instance HsBindgen.Runtime.FunPtr.FromFunPtr ((Ptr.Ptr RGFW_window) -> (Ptr.Ptr (Ptr.Ptr FC.CChar)) -> HsBindgen.Runtime.Prelude.CSize -> IO ()) where
fromFunPtr = hs_bindgen_677535b28fb460d9