public final class LibXUtil extends Object
There are two types of method provided by this class:
Modifier and Type | Method and Description |
---|---|
static void |
initialise()
Attempt to initialise LibX threads.
|
static boolean |
setFullScreenWindow(Window w,
boolean fullScreen)
Ask the window manager to make a window full-screen.
|
public static void initialise()
It is safe to invoke this on any operating system and it will silently fail if X is not supported.
This can prevent some fatal native crashes on Linux and related operating systems.
This should not be required, but in practice it may be useful.
public static boolean setFullScreenWindow(Window w, boolean fullScreen)
This method sends a low-level event to an X window to request that the window be made 'real' full-screen - i.e. the window will be sized to fill the entire screen bounds, and will appear above any window manager screen furniture such as panels and menus.
This method should only be called on platforms where X is supported.
The implementation makes use of the JNA X11 platform binding.
w
- window to make full-screenfullScreen
- true
to make the window full-screen; false
to restore the window to it's original size and positiontrue
if the message was successfully sent to the window; false
otherwiseCopyright © 2009–2014 Caprica Software Limited. All rights reserved.