Package org.lwjgl.system.linux
Class XSelectionRequestEvent
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XSelectionRequestEvent
extends Struct<XSelectionRequestEvent>
implements NativeResource
struct XSelectionRequestEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window owner;
Window requestor;
Atom selection;
Atom target;
Atom property;
Time time;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXSelectionRequestEvent(ByteBuffer container) Creates aXSelectionRequestEventinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XSelectionRequestEventcalloc()Returns a newXSelectionRequestEventinstance allocated withmemCalloc.calloc(int capacity) Returns a newXSelectionRequestEvent.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXSelectionRequestEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XSelectionRequestEventcalloc(MemoryStack stack) Returns a newXSelectionRequestEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XSelectionRequestEventcreate()Returns a newXSelectionRequestEventinstance allocated withBufferUtils.create(int capacity) Returns a newXSelectionRequestEvent.Bufferinstance allocated withBufferUtils.static XSelectionRequestEventcreate(long address) Returns a newXSelectionRequestEventinstance for the specified memory address.create(long address, int capacity) Create aXSelectionRequestEvent.Bufferinstance at the specified memory.static @Nullable XSelectionRequestEventcreateSafe(long address) static @Nullable XSelectionRequestEvent.BuffercreateSafe(long address, int capacity) longdisplay()display(long value) Sets the specified value to thedisplayfield.static XSelectionRequestEventmalloc()Returns a newXSelectionRequestEventinstance allocated withmemAlloc.malloc(int capacity) Returns a newXSelectionRequestEvent.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXSelectionRequestEvent.Bufferinstance allocated on the specifiedMemoryStack.static XSelectionRequestEventmalloc(MemoryStack stack) Returns a newXSelectionRequestEventinstance allocated on the specifiedMemoryStack.static longndisplay(long struct) Unsafe version ofdisplay().static voidndisplay(long struct, long value) Unsafe version ofdisplay.static longnowner(long struct) Unsafe version ofowner().static voidnowner(long struct, long value) Unsafe version ofowner.static longnproperty(long struct) Unsafe version ofproperty().static voidnproperty(long struct, long value) Unsafe version ofproperty.static longnrequestor(long struct) Unsafe version ofrequestor().static voidnrequestor(long struct, long value) Unsafe version ofrequestor.static longnselection(long struct) Unsafe version ofselection().static voidnselection(long struct, long value) Unsafe version ofselection.static intnsend_event(long struct) Unsafe version ofsend_event().static voidnsend_event(long struct, int value) Unsafe version ofsend_event.static longnserial(long struct) Unsafe version ofserial().static voidnserial(long struct, long value) Unsafe version ofserial.static longntarget(long struct) Unsafe version oftarget().static voidntarget(long struct, long value) Unsafe version oftarget.static longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.longowner()owner(long value) Sets the specified value to theownerfield.longproperty()property(long value) Sets the specified value to thepropertyfield.longrequestor(long value) Sets the specified value to therequestorfield.longselection(long value) Sets the specified value to theselectionfield.booleansend_event(boolean value) Sets the specified value to thesend_eventfield.longserial()serial(long value) Sets the specified value to theserialfield.set(int type, long serial, boolean send_event, long display, long owner, long requestor, long selection, long target, long property, long time) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longtarget()target(long value) Sets the specified value to thetargetfield.longtime()time(long value) Sets the specified value to thetimefield.inttype()type(int value) Sets the specified value to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
SERIAL
public static final int SERIALThe struct member offsets. -
SEND_EVENT
public static final int SEND_EVENTThe struct member offsets. -
DISPLAY
public static final int DISPLAYThe struct member offsets. -
OWNER
public static final int OWNERThe struct member offsets. -
REQUESTOR
public static final int REQUESTORThe struct member offsets. -
SELECTION
public static final int SELECTIONThe struct member offsets. -
TARGET
public static final int TARGETThe struct member offsets. -
PROPERTY
public static final int PROPERTYThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets.
-
-
Constructor Details
-
XSelectionRequestEvent
Creates aXSelectionRequestEventinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XSelectionRequestEvent>
-
type
public int type()- Returns:
- the value of the
typefield.
-
serial
public long serial()- Returns:
- the value of the
serialfield.
-
send_event
public boolean send_event()- Returns:
- the value of the
send_eventfield.
-
display
public long display()- Returns:
- the value of the
displayfield.
-
owner
public long owner()- Returns:
- the value of the
ownerfield.
-
requestor
public long requestor()- Returns:
- the value of the
requestorfield.
-
selection
public long selection()- Returns:
- the value of the
selectionfield.
-
target
public long target()- Returns:
- the value of the
targetfield.
-
property
public long property()- Returns:
- the value of the
propertyfield.
-
time
public long time()- Returns:
- the value of the
timefield.
-
type
Sets the specified value to thetypefield. -
serial
Sets the specified value to theserialfield. -
send_event
Sets the specified value to thesend_eventfield. -
display
Sets the specified value to thedisplayfield. -
owner
Sets the specified value to theownerfield. -
requestor
Sets the specified value to therequestorfield. -
selection
Sets the specified value to theselectionfield. -
target
Sets the specified value to thetargetfield. -
property
Sets the specified value to thepropertyfield. -
time
Sets the specified value to thetimefield. -
set
public XSelectionRequestEvent set(int type, long serial, boolean send_event, long display, long owner, long requestor, long selection, long target, long property, long time) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXSelectionRequestEventinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXSelectionRequestEventinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXSelectionRequestEventinstance allocated withBufferUtils. -
create
Returns a newXSelectionRequestEventinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXSelectionRequestEvent.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXSelectionRequestEvent.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXSelectionRequestEvent.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXSelectionRequestEvent.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXSelectionRequestEventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXSelectionRequestEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXSelectionRequestEvent.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXSelectionRequestEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nserial
public static long nserial(long struct) Unsafe version ofserial(). -
nsend_event
public static int nsend_event(long struct) Unsafe version ofsend_event(). -
ndisplay
public static long ndisplay(long struct) Unsafe version ofdisplay(). -
nowner
public static long nowner(long struct) Unsafe version ofowner(). -
nrequestor
public static long nrequestor(long struct) Unsafe version ofrequestor(). -
nselection
public static long nselection(long struct) Unsafe version ofselection(). -
ntarget
public static long ntarget(long struct) Unsafe version oftarget(). -
nproperty
public static long nproperty(long struct) Unsafe version ofproperty(). -
ntime
public static long ntime(long struct) Unsafe version oftime(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nserial
public static void nserial(long struct, long value) Unsafe version ofserial. -
nsend_event
public static void nsend_event(long struct, int value) Unsafe version ofsend_event. -
ndisplay
public static void ndisplay(long struct, long value) Unsafe version ofdisplay. -
nowner
public static void nowner(long struct, long value) Unsafe version ofowner. -
nrequestor
public static void nrequestor(long struct, long value) Unsafe version ofrequestor. -
nselection
public static void nselection(long struct, long value) Unsafe version ofselection. -
ntarget
public static void ntarget(long struct, long value) Unsafe version oftarget. -
nproperty
public static void nproperty(long struct, long value) Unsafe version ofproperty. -
ntime
public static void ntime(long struct, long value) Unsafe version oftime. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-