Class VirtualMenuSession
java.lang.Object
com.render.api.gui.ScreenExtensionView
com.render.api.VirtualMenuSession
Retained screen-extension host specialized for handled-screen virtual menus.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbuild(MenuHostContext context) protected final voidbuild(ScreenExtensionContext context) final voidClears every attached stylesheet.final voidfinal voidcloseDialog(DialogModalComponent dialog) final booleancom.render.api.gui.GuiHostViewdevtoolsEnabled(boolean devtoolsEnabled) final voidfinal Optional<GuiComponent<?>> Finds a uniquely identified component across the retained content and managed overlay trees.final <C extends GuiComponent<?>>
Optional<C> Finds and type-checks a uniquely identified component across this view.final GuiFontPolicyReturns this view's external-font authorization policy.com.render.api.gui.GuiHostViewfontPolicy(GuiFontPolicy policy) Selects the external-font authorization policy for this view.final MenuHostContextmode()final GuiMotionPreferenceReturns this view's effective motion preference policy.com.render.api.gui.GuiHostViewmotionPreference(GuiMotionPreference preference) Selects how this view responds to reduced-motion preferences.protected voidonAttached(MenuHostContext context) protected final voidonAttached(ScreenExtensionContext context) protected voidonDetached(MenuHostContext context) protected final voidonDetached(ScreenExtensionContext context) voidonHostMenuChanged(MenuTransitionContext transition) voidonHostMenuRefreshed(MenuHostContext context) protected final voidonHostScreenChanged(ScreenExtensionContext previous, ScreenExtensionContext next) voidfinal MenuActionQueuequeue()final booleanremoveStyleSheet(GuiStyleSheet styleSheet) Removes an attached stylesheet.Returns capabilities and fallbacks for the most recently compiled GUI render graph.final GuiRenderStatsReturns statistics for the most recently compiled GUI render graph.final ContainerComponentroot()booleanshouldContinue(MenuTransitionContext transition) final voidshowDialog(DialogModalComponent dialog) final ToastHandleshowToast(ToastComponent toast) final List<GuiStyleSheet> Returns attached stylesheets in cascade order.protected voidtick(MenuHostContext context) protected final voidtick(ScreenExtensionContext context) final GuiUiModeuiMode()Returns the selected retained runtime mode.final GuiViewTransitionReturns this host's single retained view-transition controller.Methods inherited from class ScreenExtensionView
attached, buildHost, context, detach, onClose, styleSheet, tick, uiMode, updateContext
-
Constructor Details
-
VirtualMenuSession
public VirtualMenuSession()
-
-
Method Details
-
queue
-
mode
-
build
-
tick
-
onAttached
-
onDetached
-
shouldContinue
-
onHostMenuChanged
-
onHostMenuRefreshed
-
onQueueStateChanged
-
build
- Specified by:
buildin classScreenExtensionView
-
tick
- Overrides:
tickin classScreenExtensionView
-
onAttached
- Overrides:
onAttachedin classScreenExtensionView
-
onDetached
- Overrides:
onDetachedin classScreenExtensionView
-
onHostScreenChanged
protected final void onHostScreenChanged(ScreenExtensionContext previous, ScreenExtensionContext next) - Overrides:
onHostScreenChangedin classScreenExtensionView
-
root
-
findById
Finds a uniquely identified component across the retained content and managed overlay trees.This is the stable cross-class access point for updating a component without retaining the concrete field that originally created it. Duplicate IDs are rejected.
- Parameters:
id- component identifier- Returns:
- matching component, when present
-
findById
Finds and type-checks a uniquely identified component across this view.- Type Parameters:
C- component type- Parameters:
id- component identifiercomponentType- required component type- Returns:
- matching typed component, when present
-
viewTransition
Returns this host's single retained view-transition controller.- Returns:
- view-transition controller
-
devtoolsEnabled
public com.render.api.gui.GuiHostView devtoolsEnabled(boolean devtoolsEnabled) -
devtoolsEnabled
public final boolean devtoolsEnabled() -
renderCompatibilityReport
Returns capabilities and fallbacks for the most recently compiled GUI render graph.- Returns:
- current GUI render compatibility report
-
renderStats
Returns statistics for the most recently compiled GUI render graph.- Returns:
- current GUI render statistics
-
fontPolicy
Selects the external-font authorization policy for this view.- Parameters:
policy- font policy- Returns:
- this host
-
fontPolicy
Returns this view's external-font authorization policy.- Returns:
- font policy
-
motionPreference
Selects how this view responds to reduced-motion preferences.- Parameters:
preference- motion preference- Returns:
- this host
-
motionPreference
Returns this view's effective motion preference policy.- Returns:
- motion preference
-
uiMode
-
removeStyleSheet
Removes an attached stylesheet.- Parameters:
styleSheet- stylesheet- Returns:
- whether it was attached
-
clearStyleSheets
public final void clearStyleSheets()Clears every attached stylesheet. -
styleSheets
Returns attached stylesheets in cascade order.- Returns:
- immutable stylesheet list
-
showDialog
-
closeDialog
-
showToast
-
clearToasts
public final void clearToasts() -
ensureBuilt
public final void ensureBuilt()
-