Class GLFWNativeX11
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromGLFW.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic longglfwGetX11Adapter(long monitor) Returns theRRCrtcof the specified monitor.static longReturns theDisplayused by GLFW.static longglfwGetX11Monitor(long monitor) Returns theRROutputof the specified monitor.static @Nullable StringReturns the contents of the current primary selection as a string.static longglfwGetX11Window(long window) Returns theWindowof the specified window.static voidSets the current primary selection to the specified string.static voidglfwSetX11SelectionString(ByteBuffer string) Sets the current primary selection to the specified string.static longUnsafe version of:GetX11SelectionStringstatic voidnglfwSetX11SelectionString(long string) Unsafe version of:SetX11SelectionString
-
Method Details
-
glfwGetX11Display
public static long glfwGetX11Display()Returns theDisplayused by GLFW.Note: This function may be called from any thread. Access is not synchronized.
- Returns:
- the
Displayused by GLFW, orNULLif an error occurred.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.0
-
glfwGetX11Adapter
public static long glfwGetX11Adapter(long monitor) Returns theRRCrtcof the specified monitor.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
monitor- the GLFW monitor- Returns:
- the
RRCrtcof the specified monitor, orNoneif an error occurred.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.1
-
glfwGetX11Monitor
public static long glfwGetX11Monitor(long monitor) Returns theRROutputof the specified monitor.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
monitor- the GLFW monitor- Returns:
- the
RROutputof the specified monitor, orNoneif an error occurred.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.1
-
glfwGetX11Window
public static long glfwGetX11Window(long window) Returns theWindowof the specified window.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
window- a GLFW window- Returns:
- the
Windowof the specified window, orNoneif an error occurred.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.0
-
nglfwSetX11SelectionString
public static void nglfwSetX11SelectionString(long string) Unsafe version of:SetX11SelectionString -
glfwSetX11SelectionString
Sets the current primary selection to the specified string.This function must only be called from the main thread.
- Parameters:
string- a UTF-8 encoded string. The specified string is copied before this function returns.- Since:
- version 3.3
-
glfwSetX11SelectionString
Sets the current primary selection to the specified string.This function must only be called from the main thread.
- Parameters:
string- a UTF-8 encoded string. The specified string is copied before this function returns.- Since:
- version 3.3
-
nglfwGetX11SelectionString
public static long nglfwGetX11SelectionString()Unsafe version of:GetX11SelectionString -
glfwGetX11SelectionString
Returns the contents of the current primary selection as a string.If the selection is empty or if its contents cannot be converted,
NULLis returned and aFORMAT_UNAVAILABLEerror 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
GetX11SelectionStringorSetX11SelectionString, or until the library is terminated.This function must only be called from the main thread.
- Returns:
- the contents of the selection as a UTF-8 encoded string, or
NULLif an error occurred - Since:
- version 3.3
-