Wrap ImGui::SameLine()

This commit is contained in:
Ollie Charles
2021-01-24 16:58:52 +00:00
parent bfa31b53a2
commit 85c6f34054
2 changed files with 14 additions and 3 deletions

View File

@ -48,13 +48,13 @@ loop w checked = do
True -> putStrLn "Oh hi Mark"
False -> return ()
smallButton "Click me" >>= \case
sameLine >> smallButton "Click me" >>= \case
True -> putStrLn "Oh hi Mark"
False -> return ()
arrowButton "Arrow" ImGuiDirUp
sameLine >> arrowButton "Arrow" ImGuiDirUp
checkbox "Check!" checked >>= \case
sameLine >> checkbox "Check!" checked >>= \case
True -> readIORef checked >>= print
False -> return ()