Skip to content

Commit 1bd51ab

Browse files
committed
Wrap ImGui::Bullet()
1 parent 90d96ad commit 1bd51ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/DearImGui.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module DearImGui
5757
, smallButton
5858
, arrowButton
5959
, checkbox
60+
, bullet
6061

6162
-- * Types
6263
, ImGuiDir
@@ -315,6 +316,12 @@ checkbox label ref = do
315316
return changed
316317

317318

319+
-- | Draw a small circle + keep the cursor on the same line. Advance cursor x
320+
-- position by 'getTreeNodeToLabelSpacing', same distance that 'treeNode' uses.
321+
bullet :: IO ()
322+
bullet = [C.exp| void { Bullet() } |]
323+
324+
318325
-- | A cardinal direction.
319326
newtype ImGuiDir = ImGuiDir CInt
320327

0 commit comments

Comments
 (0)