Package org.lwjgl.sdl
Class SDL_HapticRamp.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_HapticRamp.Buffer>
org.lwjgl.system.StructBuffer<SDL_HapticRamp,SDL_HapticRamp.Buffer>
org.lwjgl.sdl.SDL_HapticRamp.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SDL_HapticRamp>,NativeResource,Pointer
- Enclosing class:
SDL_HapticRamp
public static class SDL_HapticRamp.Buffer
extends StructBuffer<SDL_HapticRamp,SDL_HapticRamp.Buffer>
implements NativeResource
An array of
SDL_HapticRamp 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_HapticRamp.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.shortend()end(short value) Sets the specified value to theendfield.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.shortstart()start(short value) Sets the specified value to thestartfield.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_HapticRamp.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_HapticRamp.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.
-
start
public short start()- Returns:
- the value of the
startfield.
-
end
public short end()- Returns:
- the value of the
endfield.
-
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. -
start
Sets the specified value to thestartfield. -
end
Sets the specified value to theendfield. -
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.
-