mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 16:57:00 +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 :: MonadIO m => String -> m ()
|
||||||
text t = liftIO do
|
text t = liftIO do
|
||||||
withCString t \textPtr ->
|
withCString t \textPtr ->
|
||||||
[C.exp| void { Text($(char* textPtr)) } |]
|
[C.exp| void { Text("%s", $(char* textPtr)) } |]
|
||||||
|
|
||||||
|
|
||||||
-- | A button. Returns 'True' when clicked.
|
-- | A button. Returns 'True' when clicked.
|
||||||
|
Loading…
Reference in New Issue
Block a user