mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-12 07:49:56 +02:00
Add Show instances to structs and enums (#90)
This commit is contained in:
committed by
GitHub
parent
be7aa1e9b1
commit
efaaa5723a
@ -9,6 +9,7 @@ import Foreign
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
data ImVec2 = ImVec2 { x, y :: {-# unpack #-} !Float }
|
||||
deriving (Show)
|
||||
|
||||
|
||||
instance Storable ImVec2 where
|
||||
@ -27,6 +28,7 @@ instance Storable ImVec2 where
|
||||
|
||||
|
||||
data ImVec3 = ImVec3 { x, y, z :: {-# unpack #-} !Float }
|
||||
deriving (Show)
|
||||
|
||||
|
||||
instance Storable ImVec3 where
|
||||
@ -47,6 +49,7 @@ instance Storable ImVec3 where
|
||||
|
||||
|
||||
data ImVec4 = ImVec4 { x, y, z, w :: {-# unpack #-} !Float }
|
||||
deriving (Show)
|
||||
|
||||
|
||||
instance Storable ImVec4 where
|
||||
|
Reference in New Issue
Block a user