HoveredFlags.go 1.9 KB

1234567891011121314151617
  1. package imgui
  2. const (
  3. HoveredFlagsNone = 0 // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them.
  4. HoveredFlagsChildWindows = 1 << 0 // IsWindowHovered() only: Return true if any children of the window is hovered
  5. HoveredFlagsRootWindow = 1 << 1 // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy)
  6. HoveredFlagsAnyWindow = 1 << 2 // IsWindowHovered() only: Return true if any window is hovered
  7. HoveredFlagsNoPopupHierarchy = 1 << 3 // IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with ChildWindows or RootWindow)
  8. //HoveredFlagsDockHierarchy = 1 << 4 // IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with ChildWindows or RootWindow)
  9. HoveredFlagsAllowWhenBlockedByPopup = 1 << 5 // Return true even if a popup window is normally blocking access to this item/window
  10. //HoveredFlagsAllowWhenBlockedByModal = 1 << 6 // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet.
  11. HoveredFlagsAllowWhenBlockedByActiveItem = 1 << 7 // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns.
  12. HoveredFlagsAllowWhenOverlapped = 1 << 8 // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window
  13. HoveredFlagsAllowWhenDisabled = 1 << 9 // IsItemHovered() only: Return true even if the item is disabled
  14. HoveredFlagsRectOnly = HoveredFlagsAllowWhenBlockedByPopup | HoveredFlagsAllowWhenBlockedByActiveItem | HoveredFlagsAllowWhenOverlapped
  15. HoveredFlagsRootAndChildWindows = HoveredFlagsRootWindow | HoveredFlagsChildWindows
  16. )