Top Description Inners Constructors Methods
org.lwjgl.glfw

public Class GLFWNativeX11

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the GLFW library's X11 native access functions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GLFWNativeX11.Functions

Contains the function pointers loaded from GLFW.getLibrary().

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

the RRCrtc of the specified monitor, or None if an error occurred.

Possible errors include NOT_INITIALIZED.

glfwGetX11Adapter
(long
the GLFW monitor
monitor
)

Returns the RRCrtc of the specified monitor.

public static long

Returns:

the Display used by GLFW, or NULL if an error occurred.

Possible errors include NOT_INITIALIZED.

glfwGetX11Display
()

Returns the Display used by GLFW.

public static long

Returns:

the RROutput of the specified monitor, or None if an error occurred.

Possible errors include NOT_INITIALIZED.

glfwGetX11Monitor
(long
the GLFW monitor
monitor
)

Returns the RROutput of the specified monitor.

public static String

Returns:

the contents of the selection as a UTF-8 encoded string, or NULL if an error occurred
glfwGetX11SelectionString
()

Returns the contents of the current primary selection as a string.

public static long

Returns:

the Window of the specified window, or None if an error occurred.

Possible errors include NOT_INITIALIZED.

glfwGetX11Window
(long
a GLFW window
window
)

Returns the Window of the specified window.

public static void
glfwSetX11SelectionString(ByteBuffer
a UTF-8 encoded string. The specified string is copied before this function returns.
string
)

Sets the current primary selection to the specified string.

public static void
glfwSetX11SelectionString(CharSequence
a UTF-8 encoded string. The specified string is copied before this function returns.
string
)

Sets the current primary selection to the specified string.

public static long
public static void
nglfwSetX11SelectionString(long string)

Unsafe version of: SetX11SelectionString

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GLFWNativeX11back to summary
protected GLFWNativeX11()

Method Detail

glfwGetX11Adapterback to summary
public static long glfwGetX11Adapter(long monitor)

Returns the RRCrtc of the specified monitor.

Note

This function may be called from any thread. Access is not synchronized.

Parameters
monitor:long

the GLFW monitor

Returns:long

the RRCrtc of the specified monitor, or None if an error occurred.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:RRCrtc
Since
version 3.1
glfwGetX11Displayback to summary
public static long glfwGetX11Display()

Returns the Display used by GLFW.

Note

This function may be called from any thread. Access is not synchronized.

Returns:long

the Display used by GLFW, or NULL if an error occurred.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:Display *
Since
version 3.0
glfwGetX11Monitorback to summary
public static long glfwGetX11Monitor(long monitor)

Returns the RROutput of the specified monitor.

Note

This function may be called from any thread. Access is not synchronized.

Parameters
monitor:long

the GLFW monitor

Returns:long

the RROutput of the specified monitor, or None if an error occurred.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:RROutput
Since
version 3.1
glfwGetX11SelectionStringback to summary
public static String glfwGetX11SelectionString()

Returns the contents of the current primary selection as a string.

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.

Returns:String

the contents of the selection as a UTF-8 encoded string, or NULL if an error occurred

Annotations
@Nullable
@NativeType:char const *
Since
version 3.3
glfwGetX11Windowback to summary
public static long glfwGetX11Window(long window)

Returns the Window of the specified window.

Note

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

a GLFW window

Returns:long

the Window of the specified window, or None if an error occurred.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:Window
Since
version 3.0
glfwSetX11SelectionStringback to summary
public static void glfwSetX11SelectionString(ByteBuffer string)

Sets the current primary selection to the specified string.

This function must only be called from the main thread.

Parameters
string:ByteBuffer

a UTF-8 encoded string. The specified string is copied before this function returns.

Since
version 3.3
glfwSetX11SelectionStringback to summary
public static void glfwSetX11SelectionString(CharSequence string)

Sets the current primary selection to the specified string.

This function must only be called from the main thread.

Parameters
string:CharSequence

a UTF-8 encoded string. The specified string is copied before this function returns.

Since
version 3.3
nglfwGetX11SelectionStringback to summary
public static long nglfwGetX11SelectionString()

Unsafe version of: GetX11SelectionString

nglfwSetX11SelectionStringback to summary
public static void nglfwSetX11SelectionString(long string)

Unsafe version of: SetX11SelectionString

org.lwjgl.glfw back to summary

public final Class GLFWNativeX11.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from GLFW.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
GetX11Adapter

Function address.

public static final long
GetX11Display

Function address.

public static final long
GetX11Monitor

Function address.

public static final long
GetX11SelectionString

Function address.

public static final long
GetX11Window

Function address.

public static final long
SetX11SelectionString

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GetX11Adapterback to summary
public static final long GetX11Adapter

Function address.

GetX11Displayback to summary
public static final long GetX11Display

Function address.

GetX11Monitorback to summary
public static final long GetX11Monitor

Function address.

GetX11SelectionStringback to summary
public static final long GetX11SelectionString

Function address.

GetX11Windowback to summary
public static final long GetX11Window

Function address.

SetX11SelectionStringback to summary
public static final long SetX11SelectionString

Function address.

Constructor Detail

Functionsback to summary
private Functions()