Remove size and position w/ decoration getters
This commit is contained in:
parent
ca3bf94a48
commit
29ac99c478
2 changed files with 0 additions and 37 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue