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 True -> readIORef checked >>= print
False -> return () False -> return ()
separator
progressBar 0.314 (Just "Pi") progressBar 0.314 (Just "Pi")
beginCombo "Label" "Preview" >>= whenTrue do beginCombo "Label" "Preview" >>= whenTrue do

View File

@ -49,6 +49,7 @@ module DearImGui
, end , end
-- * Cursor/Layout -- * Cursor/Layout
, separator
, sameLine , sameLine
-- * Widgets -- * Widgets
@ -311,6 +312,15 @@ end = liftIO do
[C.exp| void { ImGui::End(); } |] [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. -- | Call between widgets or groups to layout them horizontally.
-- --
-- Wraps @ImGui::SameLine@. -- Wraps @ImGui::SameLine@.