From 29ac99c478a53b50902478309d15019a2fc40ccb Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 20 Aug 2024 20:31:27 +0200 Subject: [PATCH] Remove size and position w/ decoration getters --- .../graphics/opengl/classes/OpenGlWindow.java | 21 ------------------- .../sosengine/graphics/classes/Window.java | 16 -------------- 2 files changed, 37 deletions(-) diff --git a/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/classes/OpenGlWindow.java b/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/classes/OpenGlWindow.java index d9a35793..cd056cbd 100644 --- a/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/classes/OpenGlWindow.java +++ b/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/classes/OpenGlWindow.java @@ -82,25 +82,4 @@ public final class OpenGlWindow extends GlfwWindow { glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API); glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API); } - - // ------------------------------------------------ [ Information/Action methods ] ------------------------------------------------ // - /** {@inheritDoc} */ - @Override - public @NotNull Vec2i getSizeWithDecorations() { - // Ensure the window is not terminated - if (isTerminated()) - return new Vec2i(-1, -1); - - return getSize(); - } - - /** {@inheritDoc} */ - @Override - public @NotNull Vec2i getPositionWithDecorations() { - // Ensure the window is not terminated - if (isTerminated()) - return new Vec2i(-1, -1); - - return getPosition(); - } } diff --git a/graphics/src/main/java/de/staropensource/sosengine/graphics/classes/Window.java b/graphics/src/main/java/de/staropensource/sosengine/graphics/classes/Window.java index 7a8dbabf..ec1dbd56 100644 --- a/graphics/src/main/java/de/staropensource/sosengine/graphics/classes/Window.java +++ b/graphics/src/main/java/de/staropensource/sosengine/graphics/classes/Window.java @@ -575,22 +575,6 @@ public abstract class Window implements AutoCloseable { */ public abstract void terminate(); - /** - * Returns the window size including decorations (e.g. title bar). - * - * @return window size including decorations - * @since v1-alpha2 - */ - public abstract @NotNull Vec2i getSizeWithDecorations(); - - /** - * Returns the window position including decorations (e.g. title bar). - * - * @return window position including decorations - * @since v1-alpha2 - */ - public abstract @NotNull Vec2i getPositionWithDecorations(); - /** * Returns if the user, window manager or * compositor send a request for the window to close.