forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCondition.go
19 lines (17 loc) · 942 Bytes
/
Condition.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package imgui
// Condition for SetWindow***(), SetNextWindow***(), SetNextTreeNode***() functions.
// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators!
// All the functions above treat 0 as a shortcut to ConditionAlways.
type Condition int
const (
// ConditionNone sets no condition (always set the variable), same as ConditionAlways.
ConditionNone Condition = 0
// ConditionAlways sets the variable.
ConditionAlways Condition = 1 << 0
// ConditionOnce sets the variable once per runtime session (only the first call with succeed).
ConditionOnce Condition = 1 << 1
// ConditionFirstUseEver sets the variable if the object/window has no persistently saved data (no entry in .ini file).
ConditionFirstUseEver Condition = 1 << 2
// ConditionAppearing sets the variable if the object/window is appearing after being hidden/inactive (or the first time).
ConditionAppearing Condition = 1 << 3
)