forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TreeNodeFlags.go
43 lines (42 loc) · 2.47 KB
/
TreeNodeFlags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package imgui
const (
// TreeNodeFlagsNone default = 0
TreeNodeFlagsNone = 0
// TreeNodeFlagsSelected Draw as selected
TreeNodeFlagsSelected = 1 << 0
// TreeNodeFlagsFramed Full colored frame (e.g. for CollapsingHeader)
TreeNodeFlagsFramed = 1 << 1
// TreeNodeFlagsAllowItemOverlap Hit testing to allow subsequent widgets to overlap this one
TreeNodeFlagsAllowItemOverlap = 1 << 2
// TreeNodeFlagsNoTreePushOnOpen Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor
// pushing on ID stack
TreeNodeFlagsNoTreePushOnOpen = 1 << 3
// TreeNodeFlagsNoAutoOpenOnLog Don't automatically and temporarily open node when Logging is active (by default
// logging will automatically open tree nodes)
TreeNodeFlagsNoAutoOpenOnLog = 1 << 4
// TreeNodeFlagsDefaultOpen Default node to be open
TreeNodeFlagsDefaultOpen = 1 << 5
// TreeNodeFlagsOpenOnDoubleClick Need double-click to open node
TreeNodeFlagsOpenOnDoubleClick = 1 << 6
// TreeNodeFlagsOpenOnArrow Only open when clicking on the arrow part. If TreeNodeFlagsOpenOnDoubleClick is also
// set, single-click arrow or double-click all box to open.
TreeNodeFlagsOpenOnArrow = 1 << 7
// TreeNodeFlagsLeaf No collapsing, no arrow (use as a convenience for leaf nodes).
TreeNodeFlagsLeaf = 1 << 8
// TreeNodeFlagsBullet Display a bullet instead of arrow
TreeNodeFlagsBullet = 1 << 9
// TreeNodeFlagsFramePadding Use FramePadding (even for an unframed text node) to vertically align text baseline to
// regular widget height. Equivalent to calling AlignTextToFramePadding().
TreeNodeFlagsFramePadding = 1 << 10
// TreeNodeFlagsSpanAvailWidth Extend hit box to the right-most edge, even if not framed. This is not the default in
// order to allow adding other items on the same line. In the future we may refactor the hit system to be
// front-to-back, allowing natural overlaps and then this can become the default.
TreeNodeFlagsSpanAvailWidth = 1 << 11
// TreeNodeFlagsSpanFullWidth Extend hit box to the left-most and right-most edges (bypass the indented area).
TreeNodeFlagsSpanFullWidth = 1 << 12
// TreeNodeFlagsNavLeftJumpsBackHere (WIP) Nav: left direction may move to this TreeNode() from any of its child
// (items submitted between TreeNode and TreePop)
TreeNodeFlagsNavLeftJumpsBackHere = 1 << 13
// TreeNodeFlagsCollapsingHeader combines TreeNodeFlagsFramed and TreeNodeFlagsNoAutoOpenOnLog.
TreeNodeFlagsCollapsingHeader = TreeNodeFlagsFramed | TreeNodeFlagsNoTreePushOnOpen | TreeNodeFlagsNoAutoOpenOnLog
)