mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-12-22 20:56:36 +00:00
add string formatter
This commit is contained in:
parent
76ea3f80ec
commit
f632e99500
@ -296,7 +296,7 @@ sameLine = liftIO do
|
||||
text :: MonadIO m => String -> m ()
|
||||
text t = liftIO do
|
||||
withCString t \textPtr ->
|
||||
[C.exp| void { Text($(char* textPtr)) } |]
|
||||
[C.exp| void { Text("%s", $(char* textPtr)) } |]
|
||||
|
||||
|
||||
-- | A button. Returns 'True' when clicked.
|
||||
|
Loading…
Reference in New Issue
Block a user