public class GLFWNativeX11
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWNativeX11.Functions
Contains the function pointers loaded from
GLFW.getLibrary(). |
| Modifier and Type | Method and Description |
|---|---|
static long |
glfwGetX11Adapter(long monitor)
Returns the
RRCrtc of the specified monitor. |
static long |
glfwGetX11Display()
Returns the
Display used by GLFW. |
static long |
glfwGetX11Monitor(long monitor)
Returns the
RROutput of the specified monitor. |
static java.lang.String |
glfwGetX11SelectionString()
Returns the contents of the current primary selection as a string.
|
static long |
glfwGetX11Window(long window)
Returns the
Window of the specified window. |
static void |
glfwSetX11SelectionString(java.nio.ByteBuffer string)
Sets the current primary selection to the specified string.
|
static void |
glfwSetX11SelectionString(java.lang.CharSequence string)
Sets the current primary selection to the specified string.
|
static long |
nglfwGetX11SelectionString()
Unsafe version of:
GetX11SelectionString |
static void |
nglfwSetX11SelectionString(long string)
Unsafe version of:
SetX11SelectionString |
public static long glfwGetX11Display()
Display used by GLFW.
Note: This function may be called from any thread. Access is not synchronized.
Display used by GLFW, or NULL if an error occurred.public static long glfwGetX11Adapter(long monitor)
RRCrtc of the specified monitor.
Note: This function may be called from any thread. Access is not synchronized.
monitor - the GLFW monitorRRCrtc of the specified monitor, or None if an error occurred.public static long glfwGetX11Monitor(long monitor)
RROutput of the specified monitor.
Note: This function may be called from any thread. Access is not synchronized.
monitor - the GLFW monitorRROutput of the specified monitor, or None if an error occurred.public static long glfwGetX11Window(long window)
Window of the specified window.
Note: This function may be called from any thread. Access is not synchronized.
window - a GLFW windowWindow of the specified window, or None if an error occurred.public static void nglfwSetX11SelectionString(long string)
SetX11SelectionStringpublic static void glfwSetX11SelectionString(java.nio.ByteBuffer string)
This function must only be called from the main thread.
string - a UTF-8 encoded string. The specified string is copied before this function returns.public static void glfwSetX11SelectionString(java.lang.CharSequence string)
This function must only be called from the main thread.
string - a UTF-8 encoded string. The specified string is copied before this function returns.public static long nglfwGetX11SelectionString()
GetX11SelectionString@Nullable public static java.lang.String glfwGetX11SelectionString()
If the selection is empty or if its contents cannot be converted, NULL is returned and a FORMAT_UNAVAILABLE error is generated.
The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the next call to GetX11SelectionString or
SetX11SelectionString, or until the library is terminated.
This function must only be called from the main thread.
NULL if an error occurredCopyright LWJGL. All Rights Reserved. License terms.