Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data LibType
- type family TypeOf (x :: LibType) a
- class GodotFFI low high | low -> high where
- fromLowLevel :: low -> IO high
- toLowLevel :: high -> IO low
- type Rect2 = M22 Float
- type AABB = M23 Float
- type Basis = M33 Float
- data Transform = TF {
- _tfBasis :: Basis
- _tfPosition :: V3 Float
- type NodePath = Text
- data Variant (ty :: LibType)
- = VariantNil
- | VariantBool !Bool
- | VariantInt !Int
- | VariantReal !Float
- | VariantString !(TypeOf ty GodotString)
- | VariantVector2 !(TypeOf ty GodotVector2)
- | VariantRect2 !(TypeOf ty GodotRect2)
- | VariantVector3 !(TypeOf ty GodotVector3)
- | VariantTransform2d !(TypeOf ty GodotTransform2d)
- | VariantPlane !(TypeOf ty GodotPlane)
- | VariantQuat !(TypeOf ty GodotQuat)
- | VariantAabb !(TypeOf ty GodotAabb)
- | VariantBasis !(TypeOf ty GodotBasis)
- | VariantTransform !(TypeOf ty GodotTransform)
- | VariantColor !(TypeOf ty GodotColor)
- | VariantNodePath !(TypeOf ty GodotNodePath)
- | VariantRid !(TypeOf ty GodotRid)
- | VariantObject !(TypeOf ty GodotObject)
- | VariantDictionary !(TypeOf ty GodotDictionary)
- | VariantArray !(TypeOf ty GodotArray)
- | VariantPoolByteArray !(TypeOf ty GodotPoolByteArray)
- | VariantPoolIntArray !(TypeOf ty GodotPoolIntArray)
- | VariantPoolRealArray !(TypeOf ty GodotPoolRealArray)
- | VariantPoolStringArray !(TypeOf ty GodotPoolStringArray)
- | VariantPoolVector2Array !(TypeOf ty GodotPoolVector2Array)
- | VariantPoolVector3Array !(TypeOf ty GodotPoolVector3Array)
- | VariantPoolColorArray !(TypeOf ty GodotPoolColorArray)
- withVariantArray :: [Variant GodotTy] -> ((Ptr (Ptr GodotVariant), CInt) -> IO a) -> IO a
- throwIfErr :: GodotVariantCallError -> IO ()
- class AsVariant a where
- fromGodotVariant :: forall a. (Typeable a, AsVariant a) => GodotVariant -> IO a
Documentation
type family TypeOf (x :: LibType) a Source #
Instances
type TypeOf GodotTy a Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotVector3 Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotVector2 Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotTransform Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotString Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotRect2 Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotQuat Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotNodePath Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotColor Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotBasis Source # | |
Defined in Godot.Gdnative.Types | |
type TypeOf HaskellTy GodotAabb Source # | |
Defined in Godot.Gdnative.Types |
class GodotFFI low high | low -> high where Source #
GodotFFI is a relation between low-level and high-level |Godot types, and conversions between them.
fromLowLevel :: low -> IO high Source #
toLowLevel :: high -> IO low Source #
Instances
Instances
GodotFFI GodotTransform Transform Source # | |
Defined in Godot.Gdnative.Types fromLowLevel :: GodotTransform -> IO Transform Source # toLowLevel :: Transform -> IO GodotTransform Source # |
data Variant (ty :: LibType) Source #
Instances
throwIfErr :: GodotVariantCallError -> IO () Source #
class AsVariant a where Source #
Instances
fromGodotVariant :: forall a. (Typeable a, AsVariant a) => GodotVariant -> IO a Source #