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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionadevice()adevice(Consumer<SDL_AudioDeviceEvent> consumer) Passes theadevicefield to the specifiedConsumer.adevice(SDL_AudioDeviceEvent value) Copies the specifiedSDL_AudioDeviceEventto theadevicefield.button()button(Consumer<SDL_MouseButtonEvent> consumer) Passes thebuttonfield to the specifiedConsumer.button(SDL_MouseButtonEvent value) Copies the specifiedSDL_MouseButtonEventto thebuttonfield.cdevice()cdevice(Consumer<SDL_CameraDeviceEvent> consumer) Passes thecdevicefield to the specifiedConsumer.cdevice(SDL_CameraDeviceEvent value) Copies the specifiedSDL_CameraDeviceEventto thecdevicefield.clipboard(Consumer<SDL_ClipboardEvent> consumer) Passes theclipboardfield to the specifiedConsumer.clipboard(SDL_ClipboardEvent value) Copies the specifiedSDL_ClipboardEventto theclipboardfield.common()common(Consumer<SDL_CommonEvent> consumer) Passes thecommonfield to the specifiedConsumer.common(SDL_CommonEvent value) Copies the specifiedSDL_CommonEventto thecommonfield.display()display(Consumer<SDL_DisplayEvent> consumer) Passes thedisplayfield to the specifiedConsumer.display(SDL_DisplayEvent value) Copies the specifiedSDL_DisplayEventto thedisplayfield.drop()drop(Consumer<SDL_DropEvent> consumer) Passes thedropfield to the specifiedConsumer.drop(SDL_DropEvent value) Copies the specifiedSDL_DropEventto thedropfield.edit()edit(Consumer<SDL_TextEditingEvent> consumer) Passes theeditfield to the specifiedConsumer.edit(SDL_TextEditingEvent value) Copies the specifiedSDL_TextEditingEventto theeditfield.Passes theedit_candidatesfield to the specifiedConsumer.Copies the specifiedSDL_TextEditingCandidatesEventto theedit_candidatesfield.gaxis()gaxis(Consumer<SDL_GamepadAxisEvent> consumer) Passes thegaxisfield to the specifiedConsumer.gaxis(SDL_GamepadAxisEvent value) Copies the specifiedSDL_GamepadAxisEventto thegaxisfield.gbutton()gbutton(Consumer<SDL_GamepadButtonEvent> consumer) Passes thegbuttonfield to the specifiedConsumer.gbutton(SDL_GamepadButtonEvent value) Copies the specifiedSDL_GamepadButtonEventto thegbuttonfield.gdevice()gdevice(Consumer<SDL_GamepadDeviceEvent> consumer) Passes thegdevicefield to the specifiedConsumer.gdevice(SDL_GamepadDeviceEvent value) Copies the specifiedSDL_GamepadDeviceEventto thegdevicefield.gsensor()gsensor(Consumer<SDL_GamepadSensorEvent> consumer) Passes thegsensorfield to the specifiedConsumer.gsensor(SDL_GamepadSensorEvent value) Copies the specifiedSDL_GamepadSensorEventto thegsensorfield.gtouchpad(Consumer<SDL_GamepadTouchpadEvent> consumer) Passes thegtouchpadfield to the specifiedConsumer.Copies the specifiedSDL_GamepadTouchpadEventto thegtouchpadfield.jaxis()jaxis(Consumer<SDL_JoyAxisEvent> consumer) Passes thejaxisfield to the specifiedConsumer.jaxis(SDL_JoyAxisEvent value) Copies the specifiedSDL_JoyAxisEventto thejaxisfield.jball()jball(Consumer<SDL_JoyBallEvent> consumer) Passes thejballfield to the specifiedConsumer.jball(SDL_JoyBallEvent value) Copies the specifiedSDL_JoyBallEventto thejballfield.jbattery()jbattery(Consumer<SDL_JoyBatteryEvent> consumer) Passes thejbatteryfield to the specifiedConsumer.jbattery(SDL_JoyBatteryEvent value) Copies the specifiedSDL_JoyBatteryEventto thejbatteryfield.jbutton()jbutton(Consumer<SDL_JoyButtonEvent> consumer) Passes thejbuttonfield to the specifiedConsumer.jbutton(SDL_JoyButtonEvent value) Copies the specifiedSDL_JoyButtonEventto thejbuttonfield.jdevice()jdevice(Consumer<SDL_JoyDeviceEvent> consumer) Passes thejdevicefield to the specifiedConsumer.jdevice(SDL_JoyDeviceEvent value) Copies the specifiedSDL_JoyDeviceEventto thejdevicefield.jhat()jhat(Consumer<SDL_JoyHatEvent> consumer) Passes thejhatfield to the specifiedConsumer.jhat(SDL_JoyHatEvent value) Copies the specifiedSDL_JoyHatEventto thejhatfield.kdevice()kdevice(Consumer<SDL_KeyboardDeviceEvent> consumer) Passes thekdevicefield to the specifiedConsumer.kdevice(SDL_KeyboardDeviceEvent value) Copies the specifiedSDL_KeyboardDeviceEventto thekdevicefield.key()key(Consumer<SDL_KeyboardEvent> consumer) Passes thekeyfield to the specifiedConsumer.key(SDL_KeyboardEvent value) Copies the specifiedSDL_KeyboardEventto thekeyfield.mdevice()mdevice(Consumer<SDL_MouseDeviceEvent> consumer) Passes themdevicefield to the specifiedConsumer.mdevice(SDL_MouseDeviceEvent value) Copies the specifiedSDL_MouseDeviceEventto themdevicefield.motion()motion(Consumer<SDL_MouseMotionEvent> consumer) Passes themotionfield to the specifiedConsumer.motion(SDL_MouseMotionEvent value) Copies the specifiedSDL_MouseMotionEventto themotionfield.paxis()paxis(Consumer<SDL_PenAxisEvent> consumer) Passes thepaxisfield to the specifiedConsumer.paxis(SDL_PenAxisEvent value) Copies the specifiedSDL_PenAxisEventto thepaxisfield.pbutton()pbutton(Consumer<SDL_PenButtonEvent> consumer) Passes thepbuttonfield to the specifiedConsumer.pbutton(SDL_PenButtonEvent value) Copies the specifiedSDL_PenButtonEventto thepbuttonfield.pmotion()pmotion(Consumer<SDL_PenMotionEvent> consumer) Passes thepmotionfield to the specifiedConsumer.pmotion(SDL_PenMotionEvent value) Copies the specifiedSDL_PenMotionEventto thepmotionfield.pproximity(Consumer<SDL_PenProximityEvent> consumer) Passes thepproximityfield to the specifiedConsumer.pproximity(SDL_PenProximityEvent value) Copies the specifiedSDL_PenProximityEventto thepproximityfield.ptouch()ptouch(Consumer<SDL_PenTouchEvent> consumer) Passes theptouchfield to the specifiedConsumer.ptouch(SDL_PenTouchEvent value) Copies the specifiedSDL_PenTouchEventto theptouchfield.quit()quit(Consumer<SDL_QuitEvent> consumer) Passes thequitfield to the specifiedConsumer.quit(SDL_QuitEvent value) Copies the specifiedSDL_QuitEventto thequitfield.render()render(Consumer<SDL_RenderEvent> consumer) Passes therenderfield to the specifiedConsumer.render(SDL_RenderEvent value) Copies the specifiedSDL_RenderEventto therenderfield.sensor()sensor(Consumer<SDL_SensorEvent> consumer) Passes thesensorfield to the specifiedConsumer.sensor(SDL_SensorEvent value) Copies the specifiedSDL_SensorEventto thesensorfield.text()text(Consumer<SDL_TextInputEvent> consumer) Passes thetextfield to the specifiedConsumer.text(SDL_TextInputEvent value) Copies the specifiedSDL_TextInputEventto thetextfield.tfinger()tfinger(Consumer<SDL_TouchFingerEvent> consumer) Passes thetfingerfield to the specifiedConsumer.tfinger(SDL_TouchFingerEvent value) Copies the specifiedSDL_TouchFingerEventto thetfingerfield.inttype()type(int value) Sets the specified value to thetypefield.user()user(Consumer<SDL_UserEvent> consumer) Passes theuserfield to the specifiedConsumer.user(SDL_UserEvent value) Copies the specifiedSDL_UserEventto theuserfield.wheel()wheel(Consumer<SDL_MouseWheelEvent> consumer) Passes thewheelfield to the specifiedConsumer.wheel(SDL_MouseWheelEvent value) Copies the specifiedSDL_MouseWheelEventto thewheelfield.window()window(Consumer<SDL_WindowEvent> consumer) Passes thewindowfield to the specifiedConsumer.window(SDL_WindowEvent value) Copies the specifiedSDL_WindowEventto thewindowfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_Event.Bufferinstance 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
typefield.
-
common
- Returns:
- a
SDL_CommonEventview of thecommonfield.
-
display
- Returns:
- a
SDL_DisplayEventview of thedisplayfield.
-
window
- Returns:
- a
SDL_WindowEventview of thewindowfield.
-
kdevice
- Returns:
- a
SDL_KeyboardDeviceEventview of thekdevicefield.
-
key
- Returns:
- a
SDL_KeyboardEventview of thekeyfield.
-
edit
- Returns:
- a
SDL_TextEditingEventview of theeditfield.
-
edit_candidates
- Returns:
- a
SDL_TextEditingCandidatesEventview of theedit_candidatesfield.
-
text
- Returns:
- a
SDL_TextInputEventview of thetextfield.
-
mdevice
- Returns:
- a
SDL_MouseDeviceEventview of themdevicefield.
-
motion
- Returns:
- a
SDL_MouseMotionEventview of themotionfield.
-
button
- Returns:
- a
SDL_MouseButtonEventview of thebuttonfield.
-
wheel
- Returns:
- a
SDL_MouseWheelEventview of thewheelfield.
-
jdevice
- Returns:
- a
SDL_JoyDeviceEventview of thejdevicefield.
-
jaxis
- Returns:
- a
SDL_JoyAxisEventview of thejaxisfield.
-
jball
- Returns:
- a
SDL_JoyBallEventview of thejballfield.
-
jhat
- Returns:
- a
SDL_JoyHatEventview of thejhatfield.
-
jbutton
- Returns:
- a
SDL_JoyButtonEventview of thejbuttonfield.
-
jbattery
- Returns:
- a
SDL_JoyBatteryEventview of thejbatteryfield.
-
gdevice
- Returns:
- a
SDL_GamepadDeviceEventview of thegdevicefield.
-
gaxis
- Returns:
- a
SDL_GamepadAxisEventview of thegaxisfield.
-
gbutton
- Returns:
- a
SDL_GamepadButtonEventview of thegbuttonfield.
-
gtouchpad
- Returns:
- a
SDL_GamepadTouchpadEventview of thegtouchpadfield.
-
gsensor
- Returns:
- a
SDL_GamepadSensorEventview of thegsensorfield.
-
adevice
- Returns:
- a
SDL_AudioDeviceEventview of theadevicefield.
-
cdevice
- Returns:
- a
SDL_CameraDeviceEventview of thecdevicefield.
-
sensor
- Returns:
- a
SDL_SensorEventview of thesensorfield.
-
quit
- Returns:
- a
SDL_QuitEventview of thequitfield.
-
user
- Returns:
- a
SDL_UserEventview of theuserfield.
-
tfinger
- Returns:
- a
SDL_TouchFingerEventview of thetfingerfield.
-
pproximity
- Returns:
- a
SDL_PenProximityEventview of thepproximityfield.
-
ptouch
- Returns:
- a
SDL_PenTouchEventview of theptouchfield.
-
pmotion
- Returns:
- a
SDL_PenMotionEventview of thepmotionfield.
-
pbutton
- Returns:
- a
SDL_PenButtonEventview of thepbuttonfield.
-
paxis
- Returns:
- a
SDL_PenAxisEventview of thepaxisfield.
-
render
- Returns:
- a
SDL_RenderEventview of therenderfield.
-
drop
- Returns:
- a
SDL_DropEventview of thedropfield.
-
clipboard
- Returns:
- a
SDL_ClipboardEventview of theclipboardfield.
-
type
Sets the specified value to thetypefield. -
common
Copies the specifiedSDL_CommonEventto thecommonfield. -
common
Passes thecommonfield to the specifiedConsumer. -
display
Copies the specifiedSDL_DisplayEventto thedisplayfield. -
display
Passes thedisplayfield to the specifiedConsumer. -
window
Copies the specifiedSDL_WindowEventto thewindowfield. -
window
Passes thewindowfield to the specifiedConsumer. -
kdevice
Copies the specifiedSDL_KeyboardDeviceEventto thekdevicefield. -
kdevice
Passes thekdevicefield to the specifiedConsumer. -
key
Copies the specifiedSDL_KeyboardEventto thekeyfield. -
key
Passes thekeyfield to the specifiedConsumer. -
edit
Copies the specifiedSDL_TextEditingEventto theeditfield. -
edit
Passes theeditfield to the specifiedConsumer. -
edit_candidates
Copies the specifiedSDL_TextEditingCandidatesEventto theedit_candidatesfield. -
edit_candidates
Passes theedit_candidatesfield to the specifiedConsumer. -
text
Copies the specifiedSDL_TextInputEventto thetextfield. -
text
Passes thetextfield to the specifiedConsumer. -
mdevice
Copies the specifiedSDL_MouseDeviceEventto themdevicefield. -
mdevice
Passes themdevicefield to the specifiedConsumer. -
motion
Copies the specifiedSDL_MouseMotionEventto themotionfield. -
motion
Passes themotionfield to the specifiedConsumer. -
button
Copies the specifiedSDL_MouseButtonEventto thebuttonfield. -
button
Passes thebuttonfield to the specifiedConsumer. -
wheel
Copies the specifiedSDL_MouseWheelEventto thewheelfield. -
wheel
Passes thewheelfield to the specifiedConsumer. -
jdevice
Copies the specifiedSDL_JoyDeviceEventto thejdevicefield. -
jdevice
Passes thejdevicefield to the specifiedConsumer. -
jaxis
Copies the specifiedSDL_JoyAxisEventto thejaxisfield. -
jaxis
Passes thejaxisfield to the specifiedConsumer. -
jball
Copies the specifiedSDL_JoyBallEventto thejballfield. -
jball
Passes thejballfield to the specifiedConsumer. -
jhat
Copies the specifiedSDL_JoyHatEventto thejhatfield. -
jhat
Passes thejhatfield to the specifiedConsumer. -
jbutton
Copies the specifiedSDL_JoyButtonEventto thejbuttonfield. -
jbutton
Passes thejbuttonfield to the specifiedConsumer. -
jbattery
Copies the specifiedSDL_JoyBatteryEventto thejbatteryfield. -
jbattery
Passes thejbatteryfield to the specifiedConsumer. -
gdevice
Copies the specifiedSDL_GamepadDeviceEventto thegdevicefield. -
gdevice
Passes thegdevicefield to the specifiedConsumer. -
gaxis
Copies the specifiedSDL_GamepadAxisEventto thegaxisfield. -
gaxis
Passes thegaxisfield to the specifiedConsumer. -
gbutton
Copies the specifiedSDL_GamepadButtonEventto thegbuttonfield. -
gbutton
Passes thegbuttonfield to the specifiedConsumer. -
gtouchpad
Copies the specifiedSDL_GamepadTouchpadEventto thegtouchpadfield. -
gtouchpad
Passes thegtouchpadfield to the specifiedConsumer. -
gsensor
Copies the specifiedSDL_GamepadSensorEventto thegsensorfield. -
gsensor
Passes thegsensorfield to the specifiedConsumer. -
adevice
Copies the specifiedSDL_AudioDeviceEventto theadevicefield. -
adevice
Passes theadevicefield to the specifiedConsumer. -
cdevice
Copies the specifiedSDL_CameraDeviceEventto thecdevicefield. -
cdevice
Passes thecdevicefield to the specifiedConsumer. -
sensor
Copies the specifiedSDL_SensorEventto thesensorfield. -
sensor
Passes thesensorfield to the specifiedConsumer. -
quit
Copies the specifiedSDL_QuitEventto thequitfield. -
quit
Passes thequitfield to the specifiedConsumer. -
user
Copies the specifiedSDL_UserEventto theuserfield. -
user
Passes theuserfield to the specifiedConsumer. -
tfinger
Copies the specifiedSDL_TouchFingerEventto thetfingerfield. -
tfinger
Passes thetfingerfield to the specifiedConsumer. -
pproximity
Copies the specifiedSDL_PenProximityEventto thepproximityfield. -
pproximity
Passes thepproximityfield to the specifiedConsumer. -
ptouch
Copies the specifiedSDL_PenTouchEventto theptouchfield. -
ptouch
Passes theptouchfield to the specifiedConsumer. -
pmotion
Copies the specifiedSDL_PenMotionEventto thepmotionfield. -
pmotion
Passes thepmotionfield to the specifiedConsumer. -
pbutton
Copies the specifiedSDL_PenButtonEventto thepbuttonfield. -
pbutton
Passes thepbuttonfield to the specifiedConsumer. -
paxis
Copies the specifiedSDL_PenAxisEventto thepaxisfield. -
paxis
Passes thepaxisfield to the specifiedConsumer. -
render
Copies the specifiedSDL_RenderEventto therenderfield. -
render
Passes therenderfield to the specifiedConsumer. -
drop
Copies the specifiedSDL_DropEventto thedropfield. -
drop
Passes thedropfield to the specifiedConsumer. -
clipboard
Copies the specifiedSDL_ClipboardEventto theclipboardfield. -
clipboard
Passes theclipboardfield to the specifiedConsumer.
-