Class GuiContext

java.lang.Object
dev.pfaff.altargui.GuiContext

public final class GuiContext extends Object
  • Field Details

  • Constructor Details

    • GuiContext

      public GuiContext(Widget widget)
  • Method Details

    • dispose

      public void dispose()
    • setWindowProps

      public void setWindowProps(double scaleFactor, int windowWidth, int windowHeight)
      Parameters:
      scaleFactor - the scale factor that should be applied to the UI.
      windowWidth - the framebuffer width, unscaled.
      windowHeight - the framebuffer height, unscaled.
    • updateAndPaint

      public void updateAndPaint()
    • charTyped

      public boolean charTyped(int codePoint)
    • keyPressed

      public boolean keyPressed(InputKey keyCode, int scanCode, InputMods modifiers)
    • keyReleased

      public boolean keyReleased(InputKey keyCode, int scanCode, InputMods modifiers)
    • mousePressed

      public boolean mousePressed(double mouseX, double mouseY, int button)
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
    • mouseMoved

      public boolean mouseMoved(double mouseX, double mouseY)
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
    • lastMouseX

      public float lastMouseX()
    • lastMouseY

      public float lastMouseY()
    • renderBufferByteCount

      public int renderBufferByteCount()