File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ module DearImGui
283
283
284
284
-- ** Trees
285
285
, treeNode
286
+ , treeNodeWith
286
287
, treePush
287
288
, Raw. treePop
288
289
, setNextItemOpen
@@ -1958,6 +1959,10 @@ treeNode :: MonadIO m => Text -> m Bool
1958
1959
treeNode label = liftIO do
1959
1960
Text. withCString label Raw. treeNode
1960
1961
1962
+ -- | Wraps @ImGui::TreeNodeEx()@.
1963
+ treeNodeWith :: MonadIO m => Text -> ImGuiTreeNodeFlags -> m Bool
1964
+ treeNodeWith label flags = liftIO do
1965
+ Text. withCString label (flip Raw. treeNodeEx flags)
1961
1966
1962
1967
-- | Wraps @ImGui::TreePush()@.
1963
1968
treePush :: MonadIO m => Text -> m ()
Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ module DearImGui.Raw
245
245
246
246
-- * Trees
247
247
, treeNode
248
+ , treeNodeEx
248
249
, treePush
249
250
, treePop
250
251
, getTreeNodeToLabelSpacing
@@ -1520,6 +1521,10 @@ treeNode :: (MonadIO m) => CString -> m Bool
1520
1521
treeNode labelPtr = liftIO do
1521
1522
(0 /= ) <$> [C. exp | bool { TreeNode($(char* labelPtr)) } |]
1522
1523
1524
+ -- | Wraps @ImGui::TreeNodeEx()@.
1525
+ treeNodeEx :: (MonadIO m ) => CString -> ImGuiTreeNodeFlags -> m Bool
1526
+ treeNodeEx labelPtr flags = liftIO do
1527
+ (0 /= ) <$> [C. exp | bool { TreeNodeEx($(char* labelPtr), $(ImGuiTreeNodeFlags flags)) } |]
1523
1528
1524
1529
-- | Wraps @ImGui::TreePush()@.
1525
1530
treePush :: (MonadIO m ) => CString -> m ()
You can’t perform that action at this time.
0 commit comments