Skip to content

Commit c4d54a6

Browse files
committed
Wrap ImGui::Separator()
1 parent 85c6f34 commit c4d54a6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Main.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ loop w checked = do
5858
True -> readIORef checked >>= print
5959
False -> return ()
6060

61+
separator
62+
6163
progressBar 0.314 (Just "Pi")
6264

6365
beginCombo "Label" "Preview" >>= whenTrue do

src/DearImGui.hs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ module DearImGui
4949
, end
5050

5151
-- * Cursor/Layout
52+
, separator
5253
, sameLine
5354

5455
-- * Widgets
@@ -311,6 +312,15 @@ end = liftIO do
311312
[C.exp| void { ImGui::End(); } |]
312313

313314

315+
-- | Separator, generally horizontal. inside a menu bar or in horizontal layout
316+
-- mode, this becomes a vertical separator.
317+
--
318+
-- Wraps @ImGui::Separator()@
319+
separator :: MonadIO m => m ()
320+
separator = liftIO do
321+
[C.exp| void { Separator(); } |]
322+
323+
314324
-- | Call between widgets or groups to layout them horizontally.
315325
--
316326
-- Wraps @ImGui::SameLine@.

0 commit comments

Comments
 (0)