Class FSController
Object
FSController
- All Implemented Interfaces:
EventHandler, FullscreenChangeHandler
Manages fullscreen handling and GUI sizing for EvoLudoWeb instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CLOptionCommand line option to set the size of the GUI or enter fullscreen.private final EvoLudoGWTReference to the engine so fullscreen requests propagate to the core.private HandlerRegistrationRegistration for the native fullscreen change handler.private WidgetWidget whose size/fullscreen state is controlled (typically the lab container). -
Constructor Summary
ConstructorsConstructorDescriptionFSController(EvoLudoGWT engine, Widget widget) Create a new controller for the given engine. -
Method Summary
Modifier and TypeMethodDescriptionReturn the CLO option controlling fullscreen/sizing.voidReact to browser fullscreen toggles by adding/removing the helper CSS class.voidApply the --size option (or its default) using the currently registered widget.
-
Field Details
-
cloSize
Command line option to set the size of the GUI or enter fullscreen. -
engine
Reference to the engine so fullscreen requests propagate to the core. -
fullscreenWidget
Widget whose size/fullscreen state is controlled (typically the lab container). -
fullscreenHandler
Registration for the native fullscreen change handler.
-
-
Constructor Details
-
FSController
Create a new controller for the given engine.- Parameters:
engine- the owning EvoLudoGWT instancewidget- widget whose size/fullscreen state should be managed
-
-
Method Details
-
getCloSize
-
parseSize
public void parseSize()Apply the --size option (or its default) using the currently registered widget. -
onFullscreenChange
React to browser fullscreen toggles by adding/removing the helper CSS class.- Specified by:
onFullscreenChangein interfaceFullscreenChangeHandler- Parameters:
event- theFullscreenChangeEventthat was fired
-