Package uk.co.caprica.vlcj.runtime.x
Class LibXUtil
- java.lang.Object
-
- uk.co.caprica.vlcj.runtime.x.LibXUtil
-
public final class LibXUtil extends Object
A helper class that provides various methods that may be useful when running on an X-Windows platform.There are two types of method provided by this class:
- Explicitly initialise the X-Windows system threads;
- Interaction with the Window Manager itself.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
initialise
public static void initialise()
Attempt to initialise LibX threads.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.
-
setFullScreenWindow
public static boolean setFullScreenWindow(Window w, boolean fullScreen)
Ask the window manager to make a window full-screen.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.
- Parameters:
w
- window to make full-screenfullScreen
-true
to make the window full-screen;false
to restore the window to it's original size and position- Returns:
true
if the message was successfully sent to the window;false
otherwise
-
-