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
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangleprivate Rectangleprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final longprivate Rectangleprivate Rectangleprivate intprivate Window -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intclipRound(double value) Rounds in the same way as AWT.private booleanprivate voidprivate longinstallImpl(Window window) private booleanprivate intonNcHitTest(int x, int y, boolean isOnResizeBorder) voidprivate PointscaleDown(int x, int y) Scales down in the same way as AWT.private voidsetWindowBackground(long hwnd, int r, int g, int b) private voidshowWindow(long hwnd, int cmd) (package private) voidprivate voiduninstallImpl(long hwnd) private voidupdateFrame(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:
propertyChangein 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()
-