Wrap ImGui::Separator()

This commit is contained in:
Ollie Charles 2021-01-24 17:00:25 +00:00
parent 85c6f34054
commit c4d54a6e36
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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@.