Remove size and position w/ decoration getters
All checks were successful
build-and-test / test (push) Successful in 1m56s
build-and-test / build (push) Successful in 2m3s
build-and-test / generate-javadoc (push) Successful in 2m1s

This commit is contained in:
JeremyStar™ 2024-08-20 20:31:27 +02:00
parent ca3bf94a48
commit 29ac99c478
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 0 additions and 37 deletions

View file

@ -82,25 +82,4 @@ public final class OpenGlWindow extends GlfwWindow {
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API);
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_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();
}
} }

View file

@ -575,22 +575,6 @@ public abstract class Window implements AutoCloseable {
*/ */
public abstract void terminate(); 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 * Returns if the user, window manager or
* compositor send a request for the window to close. * compositor send a request for the window to close.