Class FlatNativeMacLibrary
java.lang.Object
com.formdev.flatlaf.ui.FlatNativeMacLibrary
Native methods for macOS.
Note: This is private API. Do not use!
Methods that use windows as parameter
For all methods that accept aWindow as parameter,
the underlying macOS window must be already created,
otherwise the method fails. You can use following to ensure this:
if( !window.isDisplayable() )
window.addNotify();
or invoke the method after packing the window. E.g.
window.pack();
- Since:
- 3.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RectanglegetWindowButtonsBounds(Window window) static booleanisLoaded()Checks whether native library is loaded/available.static booleanisWindowFullScreen(Window window) static booleansetWindowButtonsSpacing(Window window, int buttonsSpacing) static booleansetWindowRoundedBorder(Window window, float radius, float borderWidth, int borderColor) static booleantoggleWindowFullScreen(Window window)
-
Field Details
-
API_VERSION_MACOS
private static int API_VERSION_MACOS -
BUTTONS_SPACING_DEFAULT
public static final int BUTTONS_SPACING_DEFAULT- Since:
- 3.4
- See Also:
-
BUTTONS_SPACING_MEDIUM
public static final int BUTTONS_SPACING_MEDIUM- Since:
- 3.4
- See Also:
-
BUTTONS_SPACING_LARGE
public static final int BUTTONS_SPACING_LARGE- Since:
- 3.4
- See Also:
-
-
Constructor Details
-
FlatNativeMacLibrary
public FlatNativeMacLibrary()
-
-
Method Details
-
isLoaded
public static boolean isLoaded()Checks whether native library is loaded/available.Note: It is required to invoke this method before invoking any other method of this class. Otherwise, the native library may not be loaded.
-
setWindowRoundedBorder
public static boolean setWindowRoundedBorder(Window window, float radius, float borderWidth, int borderColor) -
setWindowButtonsSpacing
- Since:
- 3.4
-
getWindowButtonsBounds
-
isWindowFullScreen
- Since:
- 3.4
-
toggleWindowFullScreen
- Since:
- 3.4
-