Interface SyMenuItemType

All Superinterfaces:
SyActiveReadableType, SyActiveType, SyBoundedReadableType<SySpaceParentRelativeType>, SyBoundedType<SySpaceParentRelativeType>, SyComponentReadableType, SyComponentType, SyEventReceiverType, SyKeyboardFocusableReadableType, SyKeyboardFocusableType, SyMouseFocusAcceptingReadableType, SyMouseFocusAcceptingType, SySizedReadableType<SySpaceParentRelativeType>, SySizedType<SySpaceParentRelativeType>, SyThemeableReadableType, SyThemeableType, SyVisibleReadableType, SyVisibleType
All Known Subinterfaces:
SyMenuItemAtomType, SyMenuItemSeparatorType, SyMenuItemSubmenuType

public sealed interface SyMenuItemType extends SyComponentType permits SyMenuItemAtomType, SyMenuItemSeparatorType, SyMenuItemSubmenuType
The base type of menu items.
  • Method Details

    • minimumSizeRequired

      com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceParentRelativeType> minimumSizeRequired(SyLayoutContextType layoutContext)
      Determine the minimum size required to render this menu item. This method is used to determine the region required to render the menu containing all of the items.
      Parameters:
      layoutContext - The layout context
      Returns:
      The minimum size required for this item
    • isMouseOverMenuDescendant

      boolean isMouseOverMenuDescendant()
      Returns:
      true if this menu has a descendant that is currently under the mouse cursor