forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConditions.go
More file actions
17 lines (15 loc) · 771 Bytes
/
Conditions.go
File metadata and controls
17 lines (15 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 (
// ConditionAlways sets the variable.
ConditionAlways Condition = 1 << iota
// ConditionOnce sets the variable once per runtime session (only the first call with succeed).
ConditionOnce
// ConditionFirstUseEver sets the variable if the object/window has no persistently saved data (no entry in .ini file).
ConditionFirstUseEver
// ConditionAppearing sets the variable if the object/window is appearing after being hidden/inactive (or the first time).
ConditionAppearing
)