Package it.univr.wordautomata.stylings
Class FXWinUtil
java.lang.Object
it.univr.wordautomata.stylings.FXWinUtil
The FXWinUtil class provides utility methods for working with
Windows-specific features in JavaFX applications.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.platform.win32.WinDef.HWND
getNativeHandleForStage
(javafx.stage.Stage stage) Represents a handle to a window in the Windows operating system.static void
setImmersiveDarkMode
(javafx.stage.Stage stage, boolean darkMode) Sets the immersive dark mode for the specified stage.
-
Method Details
-
getNativeHandleForStage
public static com.sun.jna.platform.win32.WinDef.HWND getNativeHandleForStage(javafx.stage.Stage stage) Represents a handle to a window in the Windows operating system. The handle is used to uniquely identify a window and interact with it.- Parameters:
stage
- the stage for which to get the native handle- Returns:
- the native handle for the specified stage
-
setImmersiveDarkMode
public static void setImmersiveDarkMode(javafx.stage.Stage stage, boolean darkMode) Sets the immersive dark mode for the specified stage.- Parameters:
stage
- the stage for which to set the immersive dark modedarkMode
- true to enable dark mode, false to disable it
-