mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-06 04:58:48 +02:00
Wrap ImGui::SameLine()
This commit is contained in:
6
Main.hs
6
Main.hs
@ -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 ()
|
||||
|
||||
|
Reference in New Issue
Block a user