Class HeadlessWindow

java.lang.Object
dev.prozilla.pine.core.Window
dev.prozilla.pine.core.HeadlessWindow
All Implemented Interfaces:
Destructible, Initializable, Printable

public class HeadlessWindow extends Window
  • Constructor Details

    • HeadlessWindow

      public HeadlessWindow(Application application)
  • Method Details

    • init

      public void init()
      Description copied from class: Window
      Sets the window hints and creates a GLFW window object.
      Specified by:
      init in interface Initializable
      Overrides:
      init in class Window
    • setIcons

      public void setIcons(Image[] images)
      Description copied from class: Window
      Updates the icons of this window. Uses the first element of the images array as the default icon.
      Overrides:
      setIcons in class Window
      Parameters:
      images - Array of icon images
    • setOpacity

      public void setOpacity(float opacity)
      Description copied from class: Window
      Sets the opacity of the entire window.
      Overrides:
      setOpacity in class Window
      Parameters:
      opacity - The opacity, in the range of 0f and 1f
    • setHint

      public void setHint(int hint, int value)
      Description copied from class: Window
      Sets the value of the given window hint.

      The window hints determine how the next window will be created. Invalid values will only cause an error when the next window is created.

      Some hints will only have an effect on specific platforms and will be ignored on other platforms.

      Overrides:
      setHint in class Window
      Parameters:
      hint - The window hint to set the value of
      value - The value to use
    • setDefaultHints

      public void setDefaultHints()
      Description copied from class: Window
      Resets all window hints to their default values.
      Overrides:
      setDefaultHints in class Window
    • checkStatus

      protected void checkStatus()
      Description copied from class: Window
      Checks if the window has been initialized.
      Overrides:
      checkStatus in class Window