mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-15 17:23:14 +02:00
Add wchar32 and disable-obsolete flags (#127)
This commit is contained in:
committed by
GitHub
parent
af6ba9e989
commit
ccdff36774
@ -1,11 +1,17 @@
|
||||
{-# LANGUAGE DuplicateRecordFields #-}
|
||||
{-# LANGUAGE NamedFieldPuns #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
|
||||
module DearImGui.Structs where
|
||||
|
||||
-- base
|
||||
import Data.Word
|
||||
( Word32, Word16 )
|
||||
( Word32
|
||||
#ifndef IMGUI_USE_WCHAR32
|
||||
, Word16
|
||||
#endif
|
||||
)
|
||||
|
||||
import Foreign
|
||||
( Storable(..), castPtr, plusPtr )
|
||||
|
||||
@ -96,5 +102,8 @@ data ImGuiListClipper
|
||||
type ImU32 = Word32
|
||||
|
||||
-- | Single wide character (used mostly in glyph management)
|
||||
#ifdef IMGUI_USE_WCHAR32
|
||||
type ImWchar = Word32
|
||||
#else
|
||||
type ImWchar = Word16
|
||||
-- FIXME: consider IMGUI_USE_WCHAR32
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user