Class WindowOptions
java.lang.Object
nl.colorize.multimedialib.renderer.WindowOptions
Defines the window appearance on desktop platforms. The interpretation of
these options depends on both the platform and the renderer.
The window size is defined in terms of logical size. This might
be different from its physical size, depending on the device
pixel ratio. Do not that isFullscreen()
takes precedence over
window size: If the application is fullscreen, it will always fill the
screen regardless of the requested window size. If the window size is
not explicitly defined, it will be defined based on the application's
display mode.
When the window is set to "embedded mode", it is assumed the MultimediaLib application is embedded within a regular desktop application. Some renderers will use special behavior when started in this mode.
-
Constructor Summary
ConstructorDescriptionWindowOptions
(String title) WindowOptions
(String title, FilePointer iconFile, boolean fullscreen) -
Method Summary
Modifier and TypeMethodDescriptionnl.colorize.util.swing.ApplicationMenuListener
getTitle()
boolean
boolean
void
setAppMenu
(nl.colorize.util.swing.ApplicationMenuListener appMenu) void
setEmbedded
(boolean embedded) void
setFullscreen
(boolean fullscreen) void
setIconFile
(FilePointer iconFile) void
void
setWindowSize
(Size windowSize)
-
Constructor Details
-
WindowOptions
-
WindowOptions
-
-
Method Details
-
getWindowSize
-
getTitle
-
getIconFile
-
isFullscreen
public boolean isFullscreen() -
getAppMenu
public nl.colorize.util.swing.ApplicationMenuListener getAppMenu() -
isEmbedded
public boolean isEmbedded() -
setTitle
-
setIconFile
-
setFullscreen
public void setFullscreen(boolean fullscreen) -
setWindowSize
-
setAppMenu
public void setAppMenu(nl.colorize.util.swing.ApplicationMenuListener appMenu) -
setEmbedded
public void setEmbedded(boolean embedded)
-