Class WindowConfig

java.lang.Object
dev.prozilla.pine.core.state.config.WindowConfig

public class WindowConfig extends Object
  • Field Details

    • WIDTH

      public static final ConfigKey<Integer> WIDTH
    • HEIGHT

      public static final ConfigKey<Integer> HEIGHT
    • TITLE

      public static final ConfigKey<String> TITLE
    • ICON

      public static final ConfigKey<String[]> ICON
    • SHOW_DECORATIONS

      public static final ConfigKey<Boolean> SHOW_DECORATIONS
    • FULLSCREEN

      public static final ConfigKey<Boolean> FULLSCREEN
    • ENABLE_VSYNC

      public static final ConfigKey<Boolean> ENABLE_VSYNC
    • ENABLE_TOGGLE_FULLSCREEN

      public static final ConfigKey<Boolean> ENABLE_TOGGLE_FULLSCREEN
    • width

      public final IntConfigOption width
      Width of the window. Defaults to 900.
    • height

      public final IntConfigOption height
      Height of the window. Defaults to 600.
    • title

      public final StringConfigOption title
      Title of the window. Defaults to "Untitled".
    • icon

      public final ObjectConfigOption<String[]> icon
      Icon of the window. Defaults to null.
    • showDecorations

      public final BooleanConfigOption showDecorations
      Determines whether the window will have window decorations such as a border, a close widget, etc. Defaults to true.
    • fullscreen

      public final BooleanConfigOption fullscreen
      Determines whether the window is in fullscreen or windowed mode. Defaults to false.
    • enableVSync

      public final BooleanConfigOption enableVSync
      Enables vertical synchronization of the window. Defaults to true.
    • enableToggleFullscreen

      public final BooleanConfigOption enableToggleFullscreen
      Enables toggling between fullscreen and windowed mode with a keyboard shortcut. Defaults to true.
  • Constructor Details

    • WindowConfig

      public WindowConfig()