Package org.lwjgl.sdl
Class SDL_HapticEffect.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_HapticEffect.Buffer>
org.lwjgl.system.StructBuffer<SDL_HapticEffect,SDL_HapticEffect.Buffer>
org.lwjgl.sdl.SDL_HapticEffect.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SDL_HapticEffect>,NativeResource,Pointer
- Enclosing class:
SDL_HapticEffect
public static class SDL_HapticEffect.Buffer
extends StructBuffer<SDL_HapticEffect,SDL_HapticEffect.Buffer>
implements NativeResource
An array of
SDL_HapticEffect 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_HapticEffect.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptioncondition(Consumer<SDL_HapticCondition> consumer) Passes theconditionfield to the specifiedConsumer.condition(SDL_HapticCondition value) Copies the specifiedSDL_HapticConditionto theconditionfield.constant()constant(Consumer<SDL_HapticConstant> consumer) Passes theconstantfield to the specifiedConsumer.constant(SDL_HapticConstant value) Copies the specifiedSDL_HapticConstantto theconstantfield.custom()custom(Consumer<SDL_HapticCustom> consumer) Passes thecustomfield to the specifiedConsumer.custom(SDL_HapticCustom value) Copies the specifiedSDL_HapticCustomto thecustomfield.leftright(Consumer<SDL_HapticLeftRight> consumer) Passes theleftrightfield to the specifiedConsumer.leftright(SDL_HapticLeftRight value) Copies the specifiedSDL_HapticLeftRightto theleftrightfield.periodic()periodic(Consumer<SDL_HapticPeriodic> consumer) Passes theperiodicfield to the specifiedConsumer.periodic(SDL_HapticPeriodic value) Copies the specifiedSDL_HapticPeriodicto theperiodicfield.ramp()ramp(Consumer<SDL_HapticRamp> consumer) Passes therampfield to the specifiedConsumer.ramp(SDL_HapticRamp value) Copies the specifiedSDL_HapticRampto therampfield.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_HapticEffect.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_HapticEffect.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.
-
constant
- Returns:
- a
SDL_HapticConstantview of theconstantfield.
-
periodic
- Returns:
- a
SDL_HapticPeriodicview of theperiodicfield.
-
condition
- Returns:
- a
SDL_HapticConditionview of theconditionfield.
-
ramp
- Returns:
- a
SDL_HapticRampview of therampfield.
-
leftright
- Returns:
- a
SDL_HapticLeftRightview of theleftrightfield.
-
custom
- Returns:
- a
SDL_HapticCustomview of thecustomfield.
-
type
Sets the specified value to thetypefield. -
constant
Copies the specifiedSDL_HapticConstantto theconstantfield. -
constant
Passes theconstantfield to the specifiedConsumer. -
periodic
Copies the specifiedSDL_HapticPeriodicto theperiodicfield. -
periodic
Passes theperiodicfield to the specifiedConsumer. -
condition
Copies the specifiedSDL_HapticConditionto theconditionfield. -
condition
Passes theconditionfield to the specifiedConsumer. -
ramp
Copies the specifiedSDL_HapticRampto therampfield. -
ramp
Passes therampfield to the specifiedConsumer. -
leftright
Copies the specifiedSDL_HapticLeftRightto theleftrightfield. -
leftright
Passes theleftrightfield to the specifiedConsumer. -
custom
Copies the specifiedSDL_HapticCustomto thecustomfield. -
custom
Passes thecustomfield to the specifiedConsumer.
-