Wrap ImGui::SameLine()

This commit is contained in:
Ollie Charles
2021-01-24 16:58:52 +00:00
parent bfa31b53a2
commit 85c6f34054
2 changed files with 14 additions and 3 deletions

View File

@ -48,6 +48,9 @@ module DearImGui
, begin
, end
-- * Cursor/Layout
, sameLine
-- * Widgets
-- ** Text
, text
@ -308,6 +311,14 @@ end = liftIO do
[C.exp| void { ImGui::End(); } |]
-- | Call between widgets or groups to layout them horizontally.
--
-- Wraps @ImGui::SameLine@.
sameLine :: MonadIO m => m ()
sameLine = liftIO do
[C.exp| void { SameLine(); } |]
-- | Formatted text.
--
-- Wraps @ImGui::Text()@.