Class WindowOptions
java.lang.Object
nl.colorize.multimedialib.renderer.WindowOptions
Defines how the application window should be displayed on desktop platforms.
Mobile platforms and browsers do not allow applications to modify the window
appearance at runtime, so the renderer will ignore these options when
running on those platforms.
If the window size is not explicitly defined, it will be based on the size
of the application Canvas. If the application window is set to
fullscreen, this takes precedence over both the explicit window size and
the canvas size.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnl.colorize.util.ResourceFilegetTitle()Returns the requested window size.booleanvoidsetFullscreen(boolean fullscreen) voidsetIconFile(nl.colorize.util.ResourceFile iconFile) voidvoidsetWindowSize(Size windowSize)
-
Constructor Details
-
WindowOptions
protected WindowOptions()
-
-
Method Details
-
getWindowSize
Returns the requested window size. If the optional is empty, the renderer will determine the window size considering both the application canvas and the screen size. If the optional is present, the renderer will base the window size directly on the returned value. -
getTitle
-
getIconFile
public nl.colorize.util.ResourceFile getIconFile() -
isFullscreen
public boolean isFullscreen() -
setTitle
-
setIconFile
public void setIconFile(nl.colorize.util.ResourceFile iconFile) -
setFullscreen
public void setFullscreen(boolean fullscreen) -
setWindowSize
-