Package com.formdev.flatlaf.ui
Class FlatWindowsNativeWindowBorder.WndProc
java.lang.Object
com.formdev.flatlaf.ui.FlatWindowsNativeWindowBorder.WndProc
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
- Enclosing class:
FlatWindowsNativeWindowBorder
private class FlatWindowsNativeWindowBorder.WndProc
extends Object
implements PropertyChangeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangle
private Rectangle
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final long
private Rectangle
private Rectangle
private int
private Window
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
clipRound
(double value) Rounds in the same way as AWT.private boolean
private void
private long
installImpl
(Window window) private boolean
private int
onNcHitTest
(int x, int y, boolean isOnResizeBorder) void
private Point
scaleDown
(int x, int y) Scales down in the same way as AWT.private void
setWindowBackground
(long hwnd, int r, int g, int b) private void
showWindow
(long hwnd, int cmd) (package private) void
private void
uninstallImpl
(long hwnd) private void
updateFrame
(long hwnd, int state) private void
-
Field Details
-
HTCLIENT
private static final int HTCLIENT- See Also:
-
HTCAPTION
private static final int HTCAPTION- See Also:
-
HTSYSMENU
private static final int HTSYSMENU- See Also:
-
HTMINBUTTON
private static final int HTMINBUTTON- See Also:
-
HTMAXBUTTON
private static final int HTMAXBUTTON- See Also:
-
HTTOP
private static final int HTTOP- See Also:
-
HTCLOSE
private static final int HTCLOSE- See Also:
-
window
-
hwnd
private final long hwnd -
titleBarHeight
private int titleBarHeight -
captionHitTestCallback
-
appIconBounds
-
minimizeButtonBounds
-
maximizeButtonBounds
-
closeButtonBounds
-
-
Constructor Details
-
WndProc
WndProc(Window window)
-
-
Method Details
-
uninstall
void uninstall() -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
updateWindowBackground
private void updateWindowBackground() -
installImpl
-
uninstallImpl
private void uninstallImpl(long hwnd) -
updateFrame
private void updateFrame(long hwnd, int state) -
setWindowBackground
private void setWindowBackground(long hwnd, int r, int g, int b) -
showWindow
private void showWindow(long hwnd, int cmd) -
onNcHitTest
private int onNcHitTest(int x, int y, boolean isOnResizeBorder) -
contains
-
scaleDown
Scales down in the same way as AWT. See AwtWin32GraphicsDevice::ScaleDownX() and ::ScaleDownY() -
clipRound
private int clipRound(double value) Rounds in the same way as AWT. See AwtWin32GraphicsDevice::ClipRound() -
isFullscreen
private boolean isFullscreen() -
fireStateChangedLaterOnce
private void fireStateChangedLaterOnce()
-