FocusFlags.go 942 B

12345678910111213
  1. package imgui
  2. type GocusedFlags int
  3. const (
  4. FocusedFlagsNone = 0
  5. FocusedFlagsChildWindows = 1 << 0 // Return true if any children of the window is focused
  6. FocusedFlagsRootWindow = 1 << 1 // Test from root window (top most parent of the current hierarchy)
  7. FocusedFlagsAnyWindow = 1 << 2 // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ!
  8. FocusedFlagsNoPopupHierarchy = 1 << 3 // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with ChildWindows or RootWindow)
  9. //FocusedFlagsDockHierarchy = 1 << 4 // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with ChildWindows or RootWindow)
  10. FocusedFlagsRootAndChildWindows = FocusedFlagsRootWindow | FocusedFlagsChildWindows
  11. )