mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-12-23 05:06:34 +00:00
Wrap ImGui::Separator()
This commit is contained in:
parent
85c6f34054
commit
c4d54a6e36
2
Main.hs
2
Main.hs
@ -58,6 +58,8 @@ loop w checked = do
|
||||
True -> readIORef checked >>= print
|
||||
False -> return ()
|
||||
|
||||
separator
|
||||
|
||||
progressBar 0.314 (Just "Pi")
|
||||
|
||||
beginCombo "Label" "Preview" >>= whenTrue do
|
||||
|
@ -49,6 +49,7 @@ module DearImGui
|
||||
, end
|
||||
|
||||
-- * Cursor/Layout
|
||||
, separator
|
||||
, sameLine
|
||||
|
||||
-- * Widgets
|
||||
@ -311,6 +312,15 @@ end = liftIO do
|
||||
[C.exp| void { ImGui::End(); } |]
|
||||
|
||||
|
||||
-- | Separator, generally horizontal. inside a menu bar or in horizontal layout
|
||||
-- mode, this becomes a vertical separator.
|
||||
--
|
||||
-- Wraps @ImGui::Separator()@
|
||||
separator :: MonadIO m => m ()
|
||||
separator = liftIO do
|
||||
[C.exp| void { Separator(); } |]
|
||||
|
||||
|
||||
-- | Call between widgets or groups to layout them horizontally.
|
||||
--
|
||||
-- Wraps @ImGui::SameLine@.
|
||||
|
Loading…
Reference in New Issue
Block a user