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 1
1
# Changelog for dear-imgui
2
2
3
+ ## [ 2.0.0]
4
+
5
+ - ` String ` arguments replaced with ` Text ` .
6
+ * Upgrading to ` text-2 ` recommended to reap the UTF-8 benefits.
7
+
3
8
## [ 1.5.0]
4
9
5
10
- Added table wrappers.
@@ -76,6 +81,7 @@ Initial Hackage release based on [1.83].
76
81
[ 1.3.1 ] : https://github.com/haskell-game/dear-imgui.hs/tree/v1.3.1
77
82
[ 1.4.0 ] : https://github.com/haskell-game/dear-imgui.hs/tree/v1.4.0
78
83
[ 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
79
85
80
86
[ 1.87 ] : https://github.com/ocornut/imgui/releases/tag/v1.87
81
87
[ 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(..))
119
119
import qualified DearImGui.Raw.Font.Config as FontConfig
120
120
import DearImGui.Raw.Font.GlyphRanges (GlyphRanges (.. ), GlyphRangesBuilder (.. ))
121
121
import qualified DearImGui.Raw.Font.GlyphRanges as GlyphRanges
122
+ import DearImGui.Internal.Text (Text )
123
+ import qualified DearImGui.Internal.Text as Text
122
124
123
125
import DearImGui.Structs (ImVec2 (.. ), ImWchar )
124
126
@@ -332,10 +334,10 @@ addChar char =
332
334
GlyphRanges. addChar builder char
333
335
334
336
-- | UTF-8 string
335
- addText :: String -> RangesBuilderSetup
337
+ addText :: Text -> RangesBuilderSetup
336
338
addText str =
337
339
RangesBuilderSetup \ builder ->
338
- withCString str (GlyphRanges. addText builder)
340
+ Text. withCString str (GlyphRanges. addText builder)
339
341
340
342
-- | Existing ranges (as is)
341
343
addRangesRaw :: GlyphRanges -> RangesBuilderSetup
You can’t perform that action at this time.
0 commit comments