Class WindowOptions

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

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

    • WindowOptions

      public WindowOptions(String title, FilePointer iconFile, boolean fullscreen)
    • WindowOptions

      public WindowOptions(String title)
  • Method Details

    • getWindowSize

      public Optional<Size> getWindowSize()
    • getTitle

      public String getTitle()
    • getIconFile

      public FilePointer getIconFile()
    • isFullscreen

      public boolean isFullscreen()
    • getAppMenu

      public nl.colorize.util.swing.ApplicationMenuListener getAppMenu()
    • isEmbedded

      public boolean isEmbedded()
    • setTitle

      public void setTitle(String title)
    • setIconFile

      public void setIconFile(FilePointer iconFile)
    • setFullscreen

      public void setFullscreen(boolean fullscreen)
    • setWindowSize

      public void setWindowSize(Size windowSize)
    • setAppMenu

      public void setAppMenu(nl.colorize.util.swing.ApplicationMenuListener appMenu)
    • setEmbedded

      public void setEmbedded(boolean embedded)