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 Summary
Modifier and TypeMethodDescriptionbooleanmenu()com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceParentRelativeType> minimumSizeRequired(SyLayoutContextType layoutContext) Determine the minimum size required to render this menu item.Methods inherited from interface SyActiveReadableType
isMouseOverMethods inherited from interface SyActiveType
activity, setActiveMethods inherited from interface SyBoundedReadableType
boundingAreaMethods inherited from interface SyBoundedType
position, setPositionMethods inherited from interface SyComponentReadableType
ancestorMatchingReadable, childCount, isActive, isVisible, nodeReadable, relativePositionOf, screen, viewportPositionOf, windowReadableMethods inherited from interface SyComponentType
ancestorMatching, childAdd, childRemove, childrenClear, componentForWindowRelative, layout, node, windowMethods inherited from interface SyEventReceiverType
eventSendMethods inherited from interface SyKeyboardFocusableType
keyboardFocusBehaviorMethods inherited from interface SyMouseFocusAcceptingReadableType
isMouseQueryAcceptingMethods inherited from interface SyMouseFocusAcceptingType
setMouseQueryAcceptingMethods inherited from interface SySizedType
setSize, setSizeUpperLimit, size, sizeUpperLimitMethods inherited from interface SyThemeableReadableType
themeClassesDefaultForComponent, themeClassesExtra, themeClassesInPreferenceOrderMethods inherited from interface SyVisibleType
setVisible, visibility
-
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:
trueif this menu has a descendant that is currently under the mouse cursor
-