Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Add CollapsingHeaderV with flags parameter #133

Merged
merged 3 commits into from
Dec 29, 2020

Conversation

ptxmac
Copy link
Contributor

@ptxmac ptxmac commented Dec 28, 2020

This allows TreeNode flags to be passed along. In particular it's useful for having headers default to open:

if imgui.CollapsingHeaderV("Header", imgui.TreeNodeFlagsDefaultOpen) {
  // ....
}

Copy link
Member

@dertseha dertseha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there and thank you for your contribution.
If you could add a minor change please, then it's good to go.

Widgets.go Outdated Show resolved Hide resolved
Co-authored-by: Christian Haas <christian.haas@sevensuns.at>
@dertseha
Copy link
Member

Thank you!

@dertseha dertseha merged commit 8d558b4 into inkyblackness:master Dec 29, 2020
@ptxmac ptxmac deleted the collapse-flags branch December 30, 2020 14:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants