mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-13 08:19:56 +02:00
Prepare 2.0.0 (#148)
This commit is contained in:
committed by
GitHub
parent
3c1d381c14
commit
cf87988336
@ -119,6 +119,8 @@ import DearImGui.Raw.Font.Config (FontConfig(..))
|
||||
import qualified DearImGui.Raw.Font.Config as FontConfig
|
||||
import DearImGui.Raw.Font.GlyphRanges (GlyphRanges(..), GlyphRangesBuilder(..))
|
||||
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)
|
||||
|
||||
@ -332,10 +334,10 @@ addChar char =
|
||||
GlyphRanges.addChar builder char
|
||||
|
||||
-- | UTF-8 string
|
||||
addText :: String -> RangesBuilderSetup
|
||||
addText :: Text -> RangesBuilderSetup
|
||||
addText str =
|
||||
RangesBuilderSetup \builder ->
|
||||
withCString str (GlyphRanges.addText builder)
|
||||
Text.withCString str (GlyphRanges.addText builder)
|
||||
|
||||
-- | Existing ranges (as is)
|
||||
addRangesRaw :: GlyphRanges -> RangesBuilderSetup
|
||||
|
Reference in New Issue
Block a user