Package org.lwjgl.sdl
Class SDL_HapticPeriodic.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_HapticPeriodic.Buffer>
org.lwjgl.system.StructBuffer<SDL_HapticPeriodic,SDL_HapticPeriodic.Buffer>
org.lwjgl.sdl.SDL_HapticPeriodic.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SDL_HapticPeriodic>,NativeResource,Pointer
- Enclosing class:
SDL_HapticPeriodic
public static class SDL_HapticPeriodic.Buffer
extends StructBuffer<SDL_HapticPeriodic,SDL_HapticPeriodic.Buffer>
implements NativeResource
An array of
SDL_HapticPeriodic 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_HapticPeriodic.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionshortattack_length(short value) Sets the specified value to theattack_lengthfield.shortattack_level(short value) Sets the specified value to theattack_levelfield.shortbutton()button(short value) Sets the specified value to thebuttonfield.shortdelay()delay(short value) Sets the specified value to thedelayfield.direction(Consumer<SDL_HapticDirection> consumer) Passes thedirectionfield to the specifiedConsumer.direction(SDL_HapticDirection value) Copies the specifiedSDL_HapticDirectionto thedirectionfield.shortfade_length(short value) Sets the specified value to thefade_lengthfield.shortfade_level(short value) Sets the specified value to thefade_levelfield.shortinterval()interval(short value) Sets the specified value to theintervalfield.intlength()length(int value) Sets the specified value to thelengthfield.shortmagnitude(short value) Sets the specified value to themagnitudefield.shortoffset()offset(short value) Sets the specified value to theoffsetfield.shortperiod()period(short value) Sets the specified value to theperiodfield.shortphase()phase(short value) Sets the specified value to thephasefield.shorttype()type(short value) Sets the specified value to thetypefield.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_HapticPeriodic.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_HapticPeriodic.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 short type()- Returns:
- the value of the
typefield.
-
direction
- Returns:
- a
SDL_HapticDirectionview of thedirectionfield.
-
length
public int length()- Returns:
- the value of the
lengthfield.
-
delay
public short delay()- Returns:
- the value of the
delayfield.
-
button
public short button()- Returns:
- the value of the
buttonfield.
-
interval
public short interval()- Returns:
- the value of the
intervalfield.
-
period
public short period()- Returns:
- the value of the
periodfield.
-
magnitude
public short magnitude()- Returns:
- the value of the
magnitudefield.
-
offset
public short offset()- Returns:
- the value of the
offsetfield.
-
phase
public short phase()- Returns:
- the value of the
phasefield.
-
attack_length
public short attack_length()- Returns:
- the value of the
attack_lengthfield.
-
attack_level
public short attack_level()- Returns:
- the value of the
attack_levelfield.
-
fade_length
public short fade_length()- Returns:
- the value of the
fade_lengthfield.
-
fade_level
public short fade_level()- Returns:
- the value of the
fade_levelfield.
-
type
Sets the specified value to thetypefield. -
direction
Copies the specifiedSDL_HapticDirectionto thedirectionfield. -
direction
Passes thedirectionfield to the specifiedConsumer. -
length
Sets the specified value to thelengthfield. -
delay
Sets the specified value to thedelayfield. -
button
Sets the specified value to thebuttonfield. -
interval
Sets the specified value to theintervalfield. -
period
Sets the specified value to theperiodfield. -
magnitude
Sets the specified value to themagnitudefield. -
offset
Sets the specified value to theoffsetfield. -
phase
Sets the specified value to thephasefield. -
attack_length
Sets the specified value to theattack_lengthfield. -
attack_level
Sets the specified value to theattack_levelfield. -
fade_length
Sets the specified value to thefade_lengthfield. -
fade_level
Sets the specified value to thefade_levelfield.
-