forked from HACKERALERT/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FocusFlags.go
13 lines (11 loc) · 942 Bytes
/
FocusFlags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
package imgui
type GocusedFlags int
const (
FocusedFlagsNone = 0
FocusedFlagsChildWindows = 1 << 0 // Return true if any children of the window is focused
FocusedFlagsRootWindow = 1 << 1 // Test from root window (top most parent of the current hierarchy)
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!
FocusedFlagsNoPopupHierarchy = 1 << 3 // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with ChildWindows or RootWindow)
//FocusedFlagsDockHierarchy = 1 << 4 // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with ChildWindows or RootWindow)
FocusedFlagsRootAndChildWindows = FocusedFlagsRootWindow | FocusedFlagsChildWindows
)