Package org.lwjgl.sdl
Class SDL_HapticCustom.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_HapticCustom.Buffer>
org.lwjgl.system.StructBuffer<SDL_HapticCustom,SDL_HapticCustom.Buffer>
org.lwjgl.sdl.SDL_HapticCustom.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SDL_HapticCustom>,NativeResource,Pointer
- Enclosing class:
SDL_HapticCustom
public static class SDL_HapticCustom.Buffer
extends StructBuffer<SDL_HapticCustom,SDL_HapticCustom.Buffer>
implements NativeResource
An array of
SDL_HapticCustom 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_HapticCustom.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.bytechannels()channels(byte value) Sets the specified value to thechannelsfield.data()data(ShortBuffer value) Sets the address of the specifiedShortBufferto thedatafield.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.shortperiod()period(short value) Sets the specified value to theperiodfield.shortsamples()samples(short value) Sets the specified value to thesamplesfield.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_HapticCustom.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_HapticCustom.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.
-
channels
public byte channels()- Returns:
- the value of the
channelsfield.
-
period
public short period()- Returns:
- the value of the
periodfield.
-
samples
public short samples()- Returns:
- the value of the
samplesfield.
-
data
- Returns:
- a
ShortBufferview of the data pointed to by thedatafield.
-
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. -
channels
Sets the specified value to thechannelsfield. -
period
Sets the specified value to theperiodfield. -
samples
Sets the specified value to thesamplesfield. -
data
Sets the address of the specifiedShortBufferto thedatafield. -
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.
-