Class WindowOptions

java.lang.Object
nl.colorize.multimedialib.renderer.WindowOptions

public class WindowOptions extends Object
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 Details

    • WindowOptions

      protected WindowOptions()
  • Method Details

    • getWindowSize

      public Optional<Size> 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

      public String getTitle()
    • getIconFile

      public nl.colorize.util.ResourceFile getIconFile()
    • isFullscreen

      public boolean isFullscreen()
    • setTitle

      public void setTitle(String title)
    • setIconFile

      public void setIconFile(nl.colorize.util.ResourceFile iconFile)
    • setFullscreen

      public void setFullscreen(boolean fullscreen)
    • setWindowSize

      public void setWindowSize(Size windowSize)