Conditions.go 795 B

1234567891011121314151617
  1. package imgui
  2. // Condition for SetWindow***(), SetNextWindow***(), SetNextTreeNode***() functions.
  3. // Important: Treat as a regular enum! Do NOT combine multiple values using binary operators!
  4. // All the functions above treat 0 as a shortcut to ConditionAlways.
  5. type Condition int
  6. const (
  7. // ConditionAlways sets the variable.
  8. ConditionAlways Condition = 1 << 0
  9. // ConditionOnce sets the variable once per runtime session (only the first call with succeed).
  10. ConditionOnce = 1 << 1
  11. // ConditionFirstUseEver sets the variable if the object/window has no persistently saved data (no entry in .ini file).
  12. ConditionFirstUseEver = 1 << 2
  13. // ConditionAppearing sets the variable if the object/window is appearing after being hidden/inactive (or the first time).
  14. ConditionAppearing = 1 << 3
  15. )