mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 08:56:59 +00:00
Prepare 2.0.0 (#148)
This commit is contained in:
parent
3c1d381c14
commit
cf87988336
@ -1,5 +1,10 @@
|
|||||||
# Changelog for dear-imgui
|
# Changelog for dear-imgui
|
||||||
|
|
||||||
|
## [2.0.0]
|
||||||
|
|
||||||
|
- `String` arguments replaced with `Text`.
|
||||||
|
* Upgrading to `text-2` recommended to reap the UTF-8 benefits.
|
||||||
|
|
||||||
## [1.5.0]
|
## [1.5.0]
|
||||||
|
|
||||||
- Added table wrappers.
|
- Added table wrappers.
|
||||||
@ -76,6 +81,7 @@ Initial Hackage release based on [1.83].
|
|||||||
[1.3.1]: https://github.com/haskell-game/dear-imgui.hs/tree/v1.3.1
|
[1.3.1]: https://github.com/haskell-game/dear-imgui.hs/tree/v1.3.1
|
||||||
[1.4.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v1.4.0
|
[1.4.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v1.4.0
|
||||||
[1.5.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v1.5.0
|
[1.5.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v1.5.0
|
||||||
|
[2.0.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v2.0.0
|
||||||
|
|
||||||
[1.87]: https://github.com/ocornut/imgui/releases/tag/v1.87
|
[1.87]: https://github.com/ocornut/imgui/releases/tag/v1.87
|
||||||
[1.86]: https://github.com/ocornut/imgui/releases/tag/v1.86
|
[1.86]: https://github.com/ocornut/imgui/releases/tag/v1.86
|
||||||
|
@ -119,6 +119,8 @@ import DearImGui.Raw.Font.Config (FontConfig(..))
|
|||||||
import qualified DearImGui.Raw.Font.Config as FontConfig
|
import qualified DearImGui.Raw.Font.Config as FontConfig
|
||||||
import DearImGui.Raw.Font.GlyphRanges (GlyphRanges(..), GlyphRangesBuilder(..))
|
import DearImGui.Raw.Font.GlyphRanges (GlyphRanges(..), GlyphRangesBuilder(..))
|
||||||
import qualified DearImGui.Raw.Font.GlyphRanges as GlyphRanges
|
import qualified DearImGui.Raw.Font.GlyphRanges as GlyphRanges
|
||||||
|
import DearImGui.Internal.Text (Text)
|
||||||
|
import qualified DearImGui.Internal.Text as Text
|
||||||
|
|
||||||
import DearImGui.Structs (ImVec2(..), ImWchar)
|
import DearImGui.Structs (ImVec2(..), ImWchar)
|
||||||
|
|
||||||
@ -332,10 +334,10 @@ addChar char =
|
|||||||
GlyphRanges.addChar builder char
|
GlyphRanges.addChar builder char
|
||||||
|
|
||||||
-- | UTF-8 string
|
-- | UTF-8 string
|
||||||
addText :: String -> RangesBuilderSetup
|
addText :: Text -> RangesBuilderSetup
|
||||||
addText str =
|
addText str =
|
||||||
RangesBuilderSetup \builder ->
|
RangesBuilderSetup \builder ->
|
||||||
withCString str (GlyphRanges.addText builder)
|
Text.withCString str (GlyphRanges.addText builder)
|
||||||
|
|
||||||
-- | Existing ranges (as is)
|
-- | Existing ranges (as is)
|
||||||
addRangesRaw :: GlyphRanges -> RangesBuilderSetup
|
addRangesRaw :: GlyphRanges -> RangesBuilderSetup
|
||||||
|
Loading…
Reference in New Issue
Block a user