Class DelayedInitGuiContext

java.lang.Object
dev.pfaff.altargui.glfw.DelayedInitGuiContext

public final class DelayedInitGuiContext extends Object
  • Field Details

    • MH_GuiContext_null

      public static final MethodHandle MH_GuiContext_null
  • Method Details

    • create

      public static DelayedInitGuiContext create(dev.pfaff.altargui.Widget widget)
      Creates a new UI instance, bound to the specified widget.
      Returns:
      the new UI instance.
    • renderBufferByteCount

      public int renderBufferByteCount()
    • onWindowResize

      public void onWindowResize(int width, int height, float contentScale)
      Must be called on the GL thread.
    • shadersLoaded

      public static void shadersLoaded()
    • render

      public void render()
    • keyPressed

      public void keyPressed(dev.pfaff.altargui.input.InputKey keyCode, int scanCode, dev.pfaff.altargui.input.InputMods modifiers)
    • keyReleased

      public void keyReleased(dev.pfaff.altargui.input.InputKey keyCode, int scanCode, dev.pfaff.altargui.input.InputMods modifiers)
    • mouseClicked

      public void mouseClicked(double mouseX, double mouseY, int button)
    • mouseDragged

      public void mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
    • mouseMoved

      public void mouseMoved(double mouseX, double mouseY)
    • mouseReleased

      public void mouseReleased(double mouseX, double mouseY, int button)
    • mouseScrolled

      public void mouseScrolled(double mouseX, double mouseY, double delta)