Package org.lwjgl.sdl
Class SDL_Event.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<SDL_Event>
,NativeResource
,Pointer
- Enclosing class:
SDL_Event
public static class SDL_Event.Buffer
extends StructBuffer<SDL_Event,SDL_Event.Buffer>
implements NativeResource
An array of
SDL_Event
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newSDL_Event.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionadevice()
adevice
(Consumer<SDL_AudioDeviceEvent> consumer) Passes theadevice
field to the specifiedConsumer
.adevice
(SDL_AudioDeviceEvent value) Copies the specifiedSDL_AudioDeviceEvent
to theadevice
field.button()
button
(Consumer<SDL_MouseButtonEvent> consumer) Passes thebutton
field to the specifiedConsumer
.button
(SDL_MouseButtonEvent value) Copies the specifiedSDL_MouseButtonEvent
to thebutton
field.cdevice()
cdevice
(Consumer<SDL_CameraDeviceEvent> consumer) Passes thecdevice
field to the specifiedConsumer
.cdevice
(SDL_CameraDeviceEvent value) Copies the specifiedSDL_CameraDeviceEvent
to thecdevice
field.clipboard
(Consumer<SDL_ClipboardEvent> consumer) Passes theclipboard
field to the specifiedConsumer
.clipboard
(SDL_ClipboardEvent value) Copies the specifiedSDL_ClipboardEvent
to theclipboard
field.common()
common
(Consumer<SDL_CommonEvent> consumer) Passes thecommon
field to the specifiedConsumer
.common
(SDL_CommonEvent value) Copies the specifiedSDL_CommonEvent
to thecommon
field.display()
display
(Consumer<SDL_DisplayEvent> consumer) Passes thedisplay
field to the specifiedConsumer
.display
(SDL_DisplayEvent value) Copies the specifiedSDL_DisplayEvent
to thedisplay
field.drop()
drop
(Consumer<SDL_DropEvent> consumer) Passes thedrop
field to the specifiedConsumer
.drop
(SDL_DropEvent value) Copies the specifiedSDL_DropEvent
to thedrop
field.edit()
edit
(Consumer<SDL_TextEditingEvent> consumer) Passes theedit
field to the specifiedConsumer
.edit
(SDL_TextEditingEvent value) Copies the specifiedSDL_TextEditingEvent
to theedit
field.Passes theedit_candidates
field to the specifiedConsumer
.Copies the specifiedSDL_TextEditingCandidatesEvent
to theedit_candidates
field.gaxis()
gaxis
(Consumer<SDL_GamepadAxisEvent> consumer) Passes thegaxis
field to the specifiedConsumer
.gaxis
(SDL_GamepadAxisEvent value) Copies the specifiedSDL_GamepadAxisEvent
to thegaxis
field.gbutton()
gbutton
(Consumer<SDL_GamepadButtonEvent> consumer) Passes thegbutton
field to the specifiedConsumer
.gbutton
(SDL_GamepadButtonEvent value) Copies the specifiedSDL_GamepadButtonEvent
to thegbutton
field.gdevice()
gdevice
(Consumer<SDL_GamepadDeviceEvent> consumer) Passes thegdevice
field to the specifiedConsumer
.gdevice
(SDL_GamepadDeviceEvent value) Copies the specifiedSDL_GamepadDeviceEvent
to thegdevice
field.gsensor()
gsensor
(Consumer<SDL_GamepadSensorEvent> consumer) Passes thegsensor
field to the specifiedConsumer
.gsensor
(SDL_GamepadSensorEvent value) Copies the specifiedSDL_GamepadSensorEvent
to thegsensor
field.gtouchpad
(Consumer<SDL_GamepadTouchpadEvent> consumer) Passes thegtouchpad
field to the specifiedConsumer
.Copies the specifiedSDL_GamepadTouchpadEvent
to thegtouchpad
field.jaxis()
jaxis
(Consumer<SDL_JoyAxisEvent> consumer) Passes thejaxis
field to the specifiedConsumer
.jaxis
(SDL_JoyAxisEvent value) Copies the specifiedSDL_JoyAxisEvent
to thejaxis
field.jball()
jball
(Consumer<SDL_JoyBallEvent> consumer) Passes thejball
field to the specifiedConsumer
.jball
(SDL_JoyBallEvent value) Copies the specifiedSDL_JoyBallEvent
to thejball
field.jbattery()
jbattery
(Consumer<SDL_JoyBatteryEvent> consumer) Passes thejbattery
field to the specifiedConsumer
.jbattery
(SDL_JoyBatteryEvent value) Copies the specifiedSDL_JoyBatteryEvent
to thejbattery
field.jbutton()
jbutton
(Consumer<SDL_JoyButtonEvent> consumer) Passes thejbutton
field to the specifiedConsumer
.jbutton
(SDL_JoyButtonEvent value) Copies the specifiedSDL_JoyButtonEvent
to thejbutton
field.jdevice()
jdevice
(Consumer<SDL_JoyDeviceEvent> consumer) Passes thejdevice
field to the specifiedConsumer
.jdevice
(SDL_JoyDeviceEvent value) Copies the specifiedSDL_JoyDeviceEvent
to thejdevice
field.jhat()
jhat
(Consumer<SDL_JoyHatEvent> consumer) Passes thejhat
field to the specifiedConsumer
.jhat
(SDL_JoyHatEvent value) Copies the specifiedSDL_JoyHatEvent
to thejhat
field.kdevice()
kdevice
(Consumer<SDL_KeyboardDeviceEvent> consumer) Passes thekdevice
field to the specifiedConsumer
.kdevice
(SDL_KeyboardDeviceEvent value) Copies the specifiedSDL_KeyboardDeviceEvent
to thekdevice
field.key()
key
(Consumer<SDL_KeyboardEvent> consumer) Passes thekey
field to the specifiedConsumer
.key
(SDL_KeyboardEvent value) Copies the specifiedSDL_KeyboardEvent
to thekey
field.mdevice()
mdevice
(Consumer<SDL_MouseDeviceEvent> consumer) Passes themdevice
field to the specifiedConsumer
.mdevice
(SDL_MouseDeviceEvent value) Copies the specifiedSDL_MouseDeviceEvent
to themdevice
field.motion()
motion
(Consumer<SDL_MouseMotionEvent> consumer) Passes themotion
field to the specifiedConsumer
.motion
(SDL_MouseMotionEvent value) Copies the specifiedSDL_MouseMotionEvent
to themotion
field.paxis()
paxis
(Consumer<SDL_PenAxisEvent> consumer) Passes thepaxis
field to the specifiedConsumer
.paxis
(SDL_PenAxisEvent value) Copies the specifiedSDL_PenAxisEvent
to thepaxis
field.pbutton()
pbutton
(Consumer<SDL_PenButtonEvent> consumer) Passes thepbutton
field to the specifiedConsumer
.pbutton
(SDL_PenButtonEvent value) Copies the specifiedSDL_PenButtonEvent
to thepbutton
field.pmotion()
pmotion
(Consumer<SDL_PenMotionEvent> consumer) Passes thepmotion
field to the specifiedConsumer
.pmotion
(SDL_PenMotionEvent value) Copies the specifiedSDL_PenMotionEvent
to thepmotion
field.pproximity
(Consumer<SDL_PenProximityEvent> consumer) Passes thepproximity
field to the specifiedConsumer
.pproximity
(SDL_PenProximityEvent value) Copies the specifiedSDL_PenProximityEvent
to thepproximity
field.ptouch()
ptouch
(Consumer<SDL_PenTouchEvent> consumer) Passes theptouch
field to the specifiedConsumer
.ptouch
(SDL_PenTouchEvent value) Copies the specifiedSDL_PenTouchEvent
to theptouch
field.quit()
quit
(Consumer<SDL_QuitEvent> consumer) Passes thequit
field to the specifiedConsumer
.quit
(SDL_QuitEvent value) Copies the specifiedSDL_QuitEvent
to thequit
field.render()
render
(Consumer<SDL_RenderEvent> consumer) Passes therender
field to the specifiedConsumer
.render
(SDL_RenderEvent value) Copies the specifiedSDL_RenderEvent
to therender
field.sensor()
sensor
(Consumer<SDL_SensorEvent> consumer) Passes thesensor
field to the specifiedConsumer
.sensor
(SDL_SensorEvent value) Copies the specifiedSDL_SensorEvent
to thesensor
field.text()
text
(Consumer<SDL_TextInputEvent> consumer) Passes thetext
field to the specifiedConsumer
.text
(SDL_TextInputEvent value) Copies the specifiedSDL_TextInputEvent
to thetext
field.tfinger()
tfinger
(Consumer<SDL_TouchFingerEvent> consumer) Passes thetfinger
field to the specifiedConsumer
.tfinger
(SDL_TouchFingerEvent value) Copies the specifiedSDL_TouchFingerEvent
to thetfinger
field.int
type()
type
(int value) Sets the specified value to thetype
field.user()
user
(Consumer<SDL_UserEvent> consumer) Passes theuser
field to the specifiedConsumer
.user
(SDL_UserEvent value) Copies the specifiedSDL_UserEvent
to theuser
field.wheel()
wheel
(Consumer<SDL_MouseWheelEvent> consumer) Passes thewheel
field to the specifiedConsumer
.wheel
(SDL_MouseWheelEvent value) Copies the specifiedSDL_MouseWheelEvent
to thewheel
field.window()
window
(Consumer<SDL_WindowEvent> consumer) Passes thewindow
field to the specifiedConsumer
.window
(SDL_WindowEvent value) Copies the specifiedSDL_WindowEvent
to thewindow
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_Event.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
SDL_Event.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
type
public int type()- Returns:
- the value of the
type
field.
-
common
- Returns:
- a
SDL_CommonEvent
view of thecommon
field.
-
display
- Returns:
- a
SDL_DisplayEvent
view of thedisplay
field.
-
window
- Returns:
- a
SDL_WindowEvent
view of thewindow
field.
-
kdevice
- Returns:
- a
SDL_KeyboardDeviceEvent
view of thekdevice
field.
-
key
- Returns:
- a
SDL_KeyboardEvent
view of thekey
field.
-
edit
- Returns:
- a
SDL_TextEditingEvent
view of theedit
field.
-
edit_candidates
- Returns:
- a
SDL_TextEditingCandidatesEvent
view of theedit_candidates
field.
-
text
- Returns:
- a
SDL_TextInputEvent
view of thetext
field.
-
mdevice
- Returns:
- a
SDL_MouseDeviceEvent
view of themdevice
field.
-
motion
- Returns:
- a
SDL_MouseMotionEvent
view of themotion
field.
-
button
- Returns:
- a
SDL_MouseButtonEvent
view of thebutton
field.
-
wheel
- Returns:
- a
SDL_MouseWheelEvent
view of thewheel
field.
-
jdevice
- Returns:
- a
SDL_JoyDeviceEvent
view of thejdevice
field.
-
jaxis
- Returns:
- a
SDL_JoyAxisEvent
view of thejaxis
field.
-
jball
- Returns:
- a
SDL_JoyBallEvent
view of thejball
field.
-
jhat
- Returns:
- a
SDL_JoyHatEvent
view of thejhat
field.
-
jbutton
- Returns:
- a
SDL_JoyButtonEvent
view of thejbutton
field.
-
jbattery
- Returns:
- a
SDL_JoyBatteryEvent
view of thejbattery
field.
-
gdevice
- Returns:
- a
SDL_GamepadDeviceEvent
view of thegdevice
field.
-
gaxis
- Returns:
- a
SDL_GamepadAxisEvent
view of thegaxis
field.
-
gbutton
- Returns:
- a
SDL_GamepadButtonEvent
view of thegbutton
field.
-
gtouchpad
- Returns:
- a
SDL_GamepadTouchpadEvent
view of thegtouchpad
field.
-
gsensor
- Returns:
- a
SDL_GamepadSensorEvent
view of thegsensor
field.
-
adevice
- Returns:
- a
SDL_AudioDeviceEvent
view of theadevice
field.
-
cdevice
- Returns:
- a
SDL_CameraDeviceEvent
view of thecdevice
field.
-
sensor
- Returns:
- a
SDL_SensorEvent
view of thesensor
field.
-
quit
- Returns:
- a
SDL_QuitEvent
view of thequit
field.
-
user
- Returns:
- a
SDL_UserEvent
view of theuser
field.
-
tfinger
- Returns:
- a
SDL_TouchFingerEvent
view of thetfinger
field.
-
pproximity
- Returns:
- a
SDL_PenProximityEvent
view of thepproximity
field.
-
ptouch
- Returns:
- a
SDL_PenTouchEvent
view of theptouch
field.
-
pmotion
- Returns:
- a
SDL_PenMotionEvent
view of thepmotion
field.
-
pbutton
- Returns:
- a
SDL_PenButtonEvent
view of thepbutton
field.
-
paxis
- Returns:
- a
SDL_PenAxisEvent
view of thepaxis
field.
-
render
- Returns:
- a
SDL_RenderEvent
view of therender
field.
-
drop
- Returns:
- a
SDL_DropEvent
view of thedrop
field.
-
clipboard
- Returns:
- a
SDL_ClipboardEvent
view of theclipboard
field.
-
type
Sets the specified value to thetype
field. -
common
Copies the specifiedSDL_CommonEvent
to thecommon
field. -
common
Passes thecommon
field to the specifiedConsumer
. -
display
Copies the specifiedSDL_DisplayEvent
to thedisplay
field. -
display
Passes thedisplay
field to the specifiedConsumer
. -
window
Copies the specifiedSDL_WindowEvent
to thewindow
field. -
window
Passes thewindow
field to the specifiedConsumer
. -
kdevice
Copies the specifiedSDL_KeyboardDeviceEvent
to thekdevice
field. -
kdevice
Passes thekdevice
field to the specifiedConsumer
. -
key
Copies the specifiedSDL_KeyboardEvent
to thekey
field. -
key
Passes thekey
field to the specifiedConsumer
. -
edit
Copies the specifiedSDL_TextEditingEvent
to theedit
field. -
edit
Passes theedit
field to the specifiedConsumer
. -
edit_candidates
Copies the specifiedSDL_TextEditingCandidatesEvent
to theedit_candidates
field. -
edit_candidates
Passes theedit_candidates
field to the specifiedConsumer
. -
text
Copies the specifiedSDL_TextInputEvent
to thetext
field. -
text
Passes thetext
field to the specifiedConsumer
. -
mdevice
Copies the specifiedSDL_MouseDeviceEvent
to themdevice
field. -
mdevice
Passes themdevice
field to the specifiedConsumer
. -
motion
Copies the specifiedSDL_MouseMotionEvent
to themotion
field. -
motion
Passes themotion
field to the specifiedConsumer
. -
button
Copies the specifiedSDL_MouseButtonEvent
to thebutton
field. -
button
Passes thebutton
field to the specifiedConsumer
. -
wheel
Copies the specifiedSDL_MouseWheelEvent
to thewheel
field. -
wheel
Passes thewheel
field to the specifiedConsumer
. -
jdevice
Copies the specifiedSDL_JoyDeviceEvent
to thejdevice
field. -
jdevice
Passes thejdevice
field to the specifiedConsumer
. -
jaxis
Copies the specifiedSDL_JoyAxisEvent
to thejaxis
field. -
jaxis
Passes thejaxis
field to the specifiedConsumer
. -
jball
Copies the specifiedSDL_JoyBallEvent
to thejball
field. -
jball
Passes thejball
field to the specifiedConsumer
. -
jhat
Copies the specifiedSDL_JoyHatEvent
to thejhat
field. -
jhat
Passes thejhat
field to the specifiedConsumer
. -
jbutton
Copies the specifiedSDL_JoyButtonEvent
to thejbutton
field. -
jbutton
Passes thejbutton
field to the specifiedConsumer
. -
jbattery
Copies the specifiedSDL_JoyBatteryEvent
to thejbattery
field. -
jbattery
Passes thejbattery
field to the specifiedConsumer
. -
gdevice
Copies the specifiedSDL_GamepadDeviceEvent
to thegdevice
field. -
gdevice
Passes thegdevice
field to the specifiedConsumer
. -
gaxis
Copies the specifiedSDL_GamepadAxisEvent
to thegaxis
field. -
gaxis
Passes thegaxis
field to the specifiedConsumer
. -
gbutton
Copies the specifiedSDL_GamepadButtonEvent
to thegbutton
field. -
gbutton
Passes thegbutton
field to the specifiedConsumer
. -
gtouchpad
Copies the specifiedSDL_GamepadTouchpadEvent
to thegtouchpad
field. -
gtouchpad
Passes thegtouchpad
field to the specifiedConsumer
. -
gsensor
Copies the specifiedSDL_GamepadSensorEvent
to thegsensor
field. -
gsensor
Passes thegsensor
field to the specifiedConsumer
. -
adevice
Copies the specifiedSDL_AudioDeviceEvent
to theadevice
field. -
adevice
Passes theadevice
field to the specifiedConsumer
. -
cdevice
Copies the specifiedSDL_CameraDeviceEvent
to thecdevice
field. -
cdevice
Passes thecdevice
field to the specifiedConsumer
. -
sensor
Copies the specifiedSDL_SensorEvent
to thesensor
field. -
sensor
Passes thesensor
field to the specifiedConsumer
. -
quit
Copies the specifiedSDL_QuitEvent
to thequit
field. -
quit
Passes thequit
field to the specifiedConsumer
. -
user
Copies the specifiedSDL_UserEvent
to theuser
field. -
user
Passes theuser
field to the specifiedConsumer
. -
tfinger
Copies the specifiedSDL_TouchFingerEvent
to thetfinger
field. -
tfinger
Passes thetfinger
field to the specifiedConsumer
. -
pproximity
Copies the specifiedSDL_PenProximityEvent
to thepproximity
field. -
pproximity
Passes thepproximity
field to the specifiedConsumer
. -
ptouch
Copies the specifiedSDL_PenTouchEvent
to theptouch
field. -
ptouch
Passes theptouch
field to the specifiedConsumer
. -
pmotion
Copies the specifiedSDL_PenMotionEvent
to thepmotion
field. -
pmotion
Passes thepmotion
field to the specifiedConsumer
. -
pbutton
Copies the specifiedSDL_PenButtonEvent
to thepbutton
field. -
pbutton
Passes thepbutton
field to the specifiedConsumer
. -
paxis
Copies the specifiedSDL_PenAxisEvent
to thepaxis
field. -
paxis
Passes thepaxis
field to the specifiedConsumer
. -
render
Copies the specifiedSDL_RenderEvent
to therender
field. -
render
Passes therender
field to the specifiedConsumer
. -
drop
Copies the specifiedSDL_DropEvent
to thedrop
field. -
drop
Passes thedrop
field to the specifiedConsumer
. -
clipboard
Copies the specifiedSDL_ClipboardEvent
to theclipboard
field. -
clipboard
Passes theclipboard
field to the specifiedConsumer
.
-