File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog for dear-imgui
22
3+ ## [ 2.0.0]
4+
5+ - ` String ` arguments replaced with ` Text ` .
6+ * Upgrading to ` text-2 ` recommended to reap the UTF-8 benefits.
7+
38## [ 1.5.0]
49
510- Added table wrappers.
@@ -76,6 +81,7 @@ Initial Hackage release based on [1.83].
7681[ 1.3.1 ] : https://github.com/haskell-game/dear-imgui.hs/tree/v1.3.1
7782[ 1.4.0 ] : https://github.com/haskell-game/dear-imgui.hs/tree/v1.4.0
7883[ 1.5.0 ] : https://github.com/haskell-game/dear-imgui.hs/tree/v1.5.0
84+ [ 2.0.0 ] : https://github.com/haskell-game/dear-imgui.hs/tree/v2.0.0
7985
8086[ 1.87 ] : https://github.com/ocornut/imgui/releases/tag/v1.87
8187[ 1.86 ] : https://github.com/ocornut/imgui/releases/tag/v1.86
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ import DearImGui.Raw.Font.Config (FontConfig(..))
119119import qualified DearImGui.Raw.Font.Config as FontConfig
120120import DearImGui.Raw.Font.GlyphRanges (GlyphRanges (.. ), GlyphRangesBuilder (.. ))
121121import qualified DearImGui.Raw.Font.GlyphRanges as GlyphRanges
122+ import DearImGui.Internal.Text (Text )
123+ import qualified DearImGui.Internal.Text as Text
122124
123125import DearImGui.Structs (ImVec2 (.. ), ImWchar )
124126
@@ -332,10 +334,10 @@ addChar char =
332334 GlyphRanges. addChar builder char
333335
334336-- | UTF-8 string
335- addText :: String -> RangesBuilderSetup
337+ addText :: Text -> RangesBuilderSetup
336338addText str =
337339 RangesBuilderSetup \ builder ->
338- withCString str (GlyphRanges. addText builder)
340+ Text. withCString str (GlyphRanges. addText builder)
339341
340342-- | Existing ranges (as is)
341343addRangesRaw :: GlyphRanges -> RangesBuilderSetup
You can’t perform that action at this time.
0 commit comments