com.mojang.blaze3d.platform

public final class Window

implements AutoCloseable

fey
com.mojang.blaze3d.platform.Window
net.minecraft.class_1041
net.minecraft.client.util.Window

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_5178
LOGGER
public static final int
a
BASE_WIDTH
field_52250
field_52250
public static final int
b
BASE_HEIGHT
field_52251
field_52251
private final org.lwjgl.glfw.GLFWErrorCallback
d
defaultErrorCallback
field_5190
errorCallback
private final WindowEventHandler
e
eventHandler
field_5176
eventHandler
private final ScreenManager
f
screenManager
field_5195
monitorTracker
private final long
g
window
field_5187
handle
private int
h
windowedX
field_5175
windowedX
private int
i
windowedY
field_5185
windowedY
private int
j
windowedWidth
field_5174
windowedWidth
private int
k
windowedHeight
field_5184
windowedHeight
private Optional<VideoMode>
l
preferredFullscreenVideoMode
field_5193
fullscreenVideoMode
private boolean
m
fullscreen
field_5191
fullscreen
private boolean
n
actuallyFullscreen
field_5177
currentFullscreen
private int
o
x
field_5183
x
private int
p
y
field_5198
y
private int
q
width
field_5182
width
private int
r
height
field_5197
height
private int
s
framebufferWidth
field_5181
framebufferWidth
private int
t
framebufferHeight
field_5196
framebufferHeight
private int
u
guiScaledWidth
field_5180
scaledWidth
private int
v
guiScaledHeight
field_5194
scaledHeight
private double
w
guiScale
field_5179
scaleFactor
private String
x
errorSection
field_5192
phase
private boolean
y
dirty
field_5186
fullscreenVideoModeDirty
private boolean
z
vsync
field_16517
vsync
private boolean
A
iconified
field_52735
minimized
private boolean
B
minimized
field_55579
zeroWidthOrHeight

Constructor summary

ModifierConstructor
public (WindowEventHandler eventHandler, ScreenManager monitorTracker, DisplayData settings, String fullscreenVideoMode, String title)

Method summary

Modifier and TypeMethod
public static String
a()
getPlatform()
method_60793()
getGlfwPlatform()
public int
b()
getRefreshRate()
method_22092()
getRefreshRate()
public boolean
c()
shouldClose()
method_22093()
shouldClose()
public static void
a(BiConsumer<Integer, String> arg0)
checkGlfwError(BiConsumer<Integer, String> arg0)
method_4492(BiConsumer<Integer, String> arg0)
acceptError(BiConsumer<Integer, String> consumer)
public void
a(atc arg0, fep arg1)
setIcon(PackResources arg0, IconSet arg1)
method_4491(class_3262 arg0, class_8518 arg1)
setIcon(ResourcePack resourcePack, Icons icons)
public void
a(String arg0)
setErrorSection(String arg0)
method_4474(String arg0)
setPhase(String phase)
private void
v()
setBootErrorCallback()
method_4481()
throwOnGlError()
private static void
b(int arg0, long arg1)
bootCrash(int arg0, long arg1)
method_4501(int arg0, long arg1)
throwGlError(int error, long description)
public void
a(int arg0, long arg1)
defaultErrorCallback(int arg0, long arg1)
method_4482(int arg0, long arg1)
logGlError(int error, long description)
public void
d()
setDefaultErrorCallback()
method_4513()
logOnGlError()
public void
a(boolean arg0)
updateVsync(boolean arg0)
method_4497(boolean arg0)
setVsync(boolean vsync)
public void
close()
close()
private void
a(long arg0, int arg1, int arg2)
onMove(long arg0, int arg1, int arg2)
method_4478(long arg0, int arg1, int arg2)
onWindowPosChanged(long window, int x, int y)
private void
b(long arg0, int arg1, int arg2)
onFramebufferResize(long arg0, int arg1, int arg2)
method_4504(long arg0, int arg1, int arg2)
onFramebufferSizeChanged(long window, int width, int height)
private void
w()
refreshFramebufferSize()
method_4483()
updateFramebufferSize()
private void
c(long arg0, int arg1, int arg2)
onResize(long arg0, int arg1, int arg2)
method_4488(long arg0, int arg1, int arg2)
onWindowSizeChanged(long window, int width, int height)
private void
a(long arg0, boolean arg1)
onFocus(long arg0, boolean arg1)
method_4494(long arg0, boolean arg1)
onWindowFocusChanged(long window, boolean focused)
private void
b(long arg0, boolean arg1)
onEnter(long arg0, boolean arg1)
method_30132(long arg0, boolean arg1)
onCursorEnterChanged(long window, boolean entered)
private void
c(long arg0, boolean arg1)
onIconify(long arg0, boolean arg1)
method_61945(long arg0, boolean arg1)
onMinimizeChanged(long window, boolean minimized)
public void
a(fdg arg0)
updateDisplay(TracyFrameCapture arg0)
method_15998(class_10219 arg0)
swapBuffers(TracyFrameCapturer capturer)
public Optional<VideoMode>
e()
getPreferredFullscreenVideoMode()
method_4511()
getFullscreenVideoMode()
public void
a(Optional<fex> arg0)
setPreferredFullscreenVideoMode(Optional<VideoMode> arg0)
method_4505(Optional<class_319> arg0)
setFullscreenVideoMode(Optional<VideoMode> fullscreenVideoMode)
public void
f()
changeFullscreenVideoMode()
method_4475()
applyFullscreenVideoMode()
private void
x()
setMode()
method_4479()
updateWindowRegion()
public void
g()
toggleFullScreen()
method_4500()
toggleFullscreen()
public void
a(int arg0, int arg1)
setWindowed(int arg0, int arg1)
method_36813(int arg0, int arg1)
setWindowedSize(int width, int height)
private void
a(boolean arg0, fdg arg1)
updateFullscreen(boolean arg0, TracyFrameCapture arg1)
method_4485(boolean arg0, class_10219 arg1)
updateFullscreen(boolean vsync, TracyFrameCapturer capturer)
public int
a(int arg0, boolean arg1)
calculateScale(int arg0, boolean arg1)
method_4476(int arg0, boolean arg1)
calculateScaleFactor(int guiScale, boolean forceUnicodeFont)
public void
a(double arg0)
setGuiScale(double arg0)
method_15997(double arg0)
setScaleFactor(double scaleFactor)
public void
b(String arg0)
setTitle(String arg0)
method_24286(String arg0)
setTitle(String title)
public long
h()
getWindow()
method_4490()
getHandle()
public boolean
i()
isFullscreen()
method_4498()
isFullscreen()
public boolean
j()
isIconified()
method_61946()
isMinimized()
public int
k()
getWidth()
method_4489()
getFramebufferWidth()
public int
l()
getHeight()
method_4506()
getFramebufferHeight()
public void
a(int arg0)
setWidth(int arg0)
method_35642(int arg0)
setFramebufferWidth(int framebufferWidth)
public void
b(int arg0)
setHeight(int arg0)
method_35643(int arg0)
setFramebufferHeight(int framebufferHeight)
public int
m()
getScreenWidth()
method_4480()
getWidth()
public int
n()
getScreenHeight()
method_4507()
getHeight()
public int
o()
getGuiScaledWidth()
method_4486()
getScaledWidth()
public int
p()
getGuiScaledHeight()
method_4502()
getScaledHeight()
public int
q()
getX()
method_4499()
getX()
public int
r()
getY()
method_4477()
getY()
public double
s()
getGuiScale()
method_4495()
getScaleFactor()
public Monitor
t()
findBestMonitor()
method_20831()
getMonitor()
public void
b(boolean arg0)
updateRawMouseInput(boolean arg0)
method_21668(boolean arg0)
setRawMouseMotion(boolean rawMouseMotion)
public void
a(Runnable arg0)
setWindowCloseCallback(Runnable arg0)
method_61943(Runnable arg0)
setCloseCallback(Runnable callback)
public boolean
u()
isMinimized()
method_65966()
hasZeroWidthOrHeight()