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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptioncondition
(Consumer<SDL_HapticCondition> consumer) Passes thecondition
field to the specifiedConsumer
.condition
(SDL_HapticCondition value) Copies the specifiedSDL_HapticCondition
to thecondition
field.constant()
constant
(Consumer<SDL_HapticConstant> consumer) Passes theconstant
field to the specifiedConsumer
.constant
(SDL_HapticConstant value) Copies the specifiedSDL_HapticConstant
to theconstant
field.custom()
custom
(Consumer<SDL_HapticCustom> consumer) Passes thecustom
field to the specifiedConsumer
.custom
(SDL_HapticCustom value) Copies the specifiedSDL_HapticCustom
to thecustom
field.leftright
(Consumer<SDL_HapticLeftRight> consumer) Passes theleftright
field to the specifiedConsumer
.leftright
(SDL_HapticLeftRight value) Copies the specifiedSDL_HapticLeftRight
to theleftright
field.periodic()
periodic
(Consumer<SDL_HapticPeriodic> consumer) Passes theperiodic
field to the specifiedConsumer
.periodic
(SDL_HapticPeriodic value) Copies the specifiedSDL_HapticPeriodic
to theperiodic
field.ramp()
ramp
(Consumer<SDL_HapticRamp> consumer) Passes theramp
field to the specifiedConsumer
.ramp
(SDL_HapticRamp value) Copies the specifiedSDL_HapticRamp
to theramp
field.short
type()
type
(short value) Sets the specified value to thetype
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_HapticEffect.Buffer
instance 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
type
field.
-
constant
- Returns:
- a
SDL_HapticConstant
view of theconstant
field.
-
periodic
- Returns:
- a
SDL_HapticPeriodic
view of theperiodic
field.
-
condition
- Returns:
- a
SDL_HapticCondition
view of thecondition
field.
-
ramp
- Returns:
- a
SDL_HapticRamp
view of theramp
field.
-
leftright
- Returns:
- a
SDL_HapticLeftRight
view of theleftright
field.
-
custom
- Returns:
- a
SDL_HapticCustom
view of thecustom
field.
-
type
Sets the specified value to thetype
field. -
constant
Copies the specifiedSDL_HapticConstant
to theconstant
field. -
constant
Passes theconstant
field to the specifiedConsumer
. -
periodic
Copies the specifiedSDL_HapticPeriodic
to theperiodic
field. -
periodic
Passes theperiodic
field to the specifiedConsumer
. -
condition
Copies the specifiedSDL_HapticCondition
to thecondition
field. -
condition
Passes thecondition
field to the specifiedConsumer
. -
ramp
Copies the specifiedSDL_HapticRamp
to theramp
field. -
ramp
Passes theramp
field to the specifiedConsumer
. -
leftright
Copies the specifiedSDL_HapticLeftRight
to theleftright
field. -
leftright
Passes theleftright
field to the specifiedConsumer
. -
custom
Copies the specifiedSDL_HapticCustom
to thecustom
field. -
custom
Passes thecustom
field to the specifiedConsumer
.
-