Package org.lwjgl.sdl
Class SDL_hid_device_info
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct SDL_hid_device_info {
char * path;
unsigned short vendor_id;
unsigned short product_id;
wchar_t * serial_number;
unsigned short release_number;
wchar_t * manufacturer_string;
wchar_t * product_string;
unsigned short usage_page;
unsigned short usage;
int interface_number;
int interface_class;
int interface_subclass;
int interface_protocol;
SDL_hid_bus_type bus_type;
{@link SDL_hid_device_info SDL_hid_device_info} * next;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_hid_device_info
(ByteBuffer container) Creates aSDL_hid_device_info
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
bus_type()
bus_type
(int value) Sets the specified value to thebus_type
field.static SDL_hid_device_info
calloc()
Returns a newSDL_hid_device_info
instance allocated withmemCalloc
.static SDL_hid_device_info.Buffer
calloc
(int capacity) Returns a newSDL_hid_device_info.Buffer
instance allocated withmemCalloc
.static SDL_hid_device_info.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSDL_hid_device_info.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_hid_device_info
calloc
(MemoryStack stack) Returns a newSDL_hid_device_info
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_hid_device_info
create()
Returns a newSDL_hid_device_info
instance allocated withBufferUtils
.static SDL_hid_device_info.Buffer
create
(int capacity) Returns a newSDL_hid_device_info.Buffer
instance allocated withBufferUtils
.static SDL_hid_device_info
create
(long address) Returns a newSDL_hid_device_info
instance for the specified memory address.static SDL_hid_device_info.Buffer
create
(long address, int capacity) Create aSDL_hid_device_info.Buffer
instance at the specified memory.static @Nullable SDL_hid_device_info
createSafe
(long address) static @Nullable SDL_hid_device_info.Buffer
createSafe
(long address, int capacity) int
interface_class
(int value) Sets the specified value to theinterface_class
field.int
interface_number
(int value) Sets the specified value to theinterface_number
field.int
interface_protocol
(int value) Sets the specified value to theinterface_protocol
field.int
interface_subclass
(int value) Sets the specified value to theinterface_subclass
field.static SDL_hid_device_info
malloc()
Returns a newSDL_hid_device_info
instance allocated withmemAlloc
.static SDL_hid_device_info.Buffer
malloc
(int capacity) Returns a newSDL_hid_device_info.Buffer
instance allocated withmemAlloc
.static SDL_hid_device_info.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSDL_hid_device_info.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_hid_device_info
malloc
(MemoryStack stack) Returns a newSDL_hid_device_info
instance allocated on the specifiedMemoryStack
.manufacturer_string
(ByteBuffer value) Sets the address of the specified encoded string to themanufacturer_string
field.static int
nbus_type
(long struct) Unsafe version ofbus_type()
.static void
nbus_type
(long struct, int value) Unsafe version ofbus_type
.next()
next
(SDL_hid_device_info value) Sets the address of the specifiedSDL_hid_device_info
to thenext
field.static int
ninterface_class
(long struct) Unsafe version ofinterface_class()
.static void
ninterface_class
(long struct, int value) Unsafe version ofinterface_class
.static int
ninterface_number
(long struct) Unsafe version ofinterface_number()
.static void
ninterface_number
(long struct, int value) Unsafe version ofinterface_number
.static int
ninterface_protocol
(long struct) Unsafe version ofinterface_protocol()
.static void
ninterface_protocol
(long struct, int value) Unsafe version ofinterface_protocol
.static int
ninterface_subclass
(long struct) Unsafe version ofinterface_subclass()
.static void
ninterface_subclass
(long struct, int value) Unsafe version ofinterface_subclass
.static ByteBuffer
nmanufacturer_string
(long struct) Unsafe version ofmanufacturer_string()
.static void
nmanufacturer_string
(long struct, ByteBuffer value) Unsafe version ofmanufacturer_string
.static String
nmanufacturer_stringString
(long struct) Unsafe version ofmanufacturer_stringString()
.static SDL_hid_device_info
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, SDL_hid_device_info value) Unsafe version ofnext
.static ByteBuffer
npath
(long struct) Unsafe version ofpath()
.static void
npath
(long struct, ByteBuffer value) Unsafe version ofpath
.static String
npathString
(long struct) Unsafe version ofpathString()
.static short
nproduct_id
(long struct) Unsafe version ofproduct_id()
.static void
nproduct_id
(long struct, short value) Unsafe version ofproduct_id
.static ByteBuffer
nproduct_string
(long struct) Unsafe version ofproduct_string()
.static void
nproduct_string
(long struct, ByteBuffer value) Unsafe version ofproduct_string
.static String
nproduct_stringString
(long struct) Unsafe version ofproduct_stringString()
.static short
nrelease_number
(long struct) Unsafe version ofrelease_number()
.static void
nrelease_number
(long struct, short value) Unsafe version ofrelease_number
.static ByteBuffer
nserial_number
(long struct) Unsafe version ofserial_number()
.static void
nserial_number
(long struct, ByteBuffer value) Unsafe version ofserial_number
.static String
nserial_numberString
(long struct) Unsafe version ofserial_numberString()
.static short
nusage
(long struct) Unsafe version ofusage()
.static void
nusage
(long struct, short value) Unsafe version ofusage
.static short
nusage_page
(long struct) Unsafe version ofusage_page()
.static void
nusage_page
(long struct, short value) Unsafe version ofusage_page
.static short
nvendor_id
(long struct) Unsafe version ofvendor_id()
.static void
nvendor_id
(long struct, short value) Unsafe version ofvendor_id
.path()
path
(ByteBuffer value) Sets the address of the specified encoded string to thepath
field.short
product_id
(short value) Sets the specified value to theproduct_id
field.product_string
(ByteBuffer value) Sets the address of the specified encoded string to theproduct_string
field.short
release_number
(short value) Sets the specified value to therelease_number
field.serial_number
(ByteBuffer value) Sets the address of the specified encoded string to theserial_number
field.set
(ByteBuffer path, short vendor_id, short product_id, ByteBuffer serial_number, short release_number, ByteBuffer manufacturer_string, ByteBuffer product_string, short usage_page, short usage, int interface_number, int interface_class, int interface_subclass, int interface_protocol, int bus_type, SDL_hid_device_info next) Initializes this struct with the specified values.set
(SDL_hid_device_info src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.short
usage()
usage
(short value) Sets the specified value to theusage
field.short
usage_page
(short value) Sets the specified value to theusage_page
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.short
vendor_id
(short value) Sets the specified value to thevendor_id
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PATH
public static final int PATHThe struct member offsets. -
VENDOR_ID
public static final int VENDOR_IDThe struct member offsets. -
PRODUCT_ID
public static final int PRODUCT_IDThe struct member offsets. -
SERIAL_NUMBER
public static final int SERIAL_NUMBERThe struct member offsets. -
RELEASE_NUMBER
public static final int RELEASE_NUMBERThe struct member offsets. -
MANUFACTURER_STRING
public static final int MANUFACTURER_STRINGThe struct member offsets. -
PRODUCT_STRING
public static final int PRODUCT_STRINGThe struct member offsets. -
USAGE_PAGE
public static final int USAGE_PAGEThe struct member offsets. -
USAGE
public static final int USAGEThe struct member offsets. -
INTERFACE_NUMBER
public static final int INTERFACE_NUMBERThe struct member offsets. -
INTERFACE_CLASS
public static final int INTERFACE_CLASSThe struct member offsets. -
INTERFACE_SUBCLASS
public static final int INTERFACE_SUBCLASSThe struct member offsets. -
INTERFACE_PROTOCOL
public static final int INTERFACE_PROTOCOLThe struct member offsets. -
BUS_TYPE
public static final int BUS_TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets.
-
-
Constructor Details
-
SDL_hid_device_info
Creates aSDL_hid_device_info
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SDL_hid_device_info>
-
path
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thepath
field.
-
pathString
- Returns:
- the null-terminated string pointed to by the
path
field.
-
vendor_id
public short vendor_id()- Returns:
- the value of the
vendor_id
field.
-
product_id
public short product_id()- Returns:
- the value of the
product_id
field.
-
serial_number
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theserial_number
field.
-
serial_numberString
- Returns:
- the null-terminated string pointed to by the
serial_number
field.
-
release_number
public short release_number()- Returns:
- the value of the
release_number
field.
-
manufacturer_string
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themanufacturer_string
field.
-
manufacturer_stringString
- Returns:
- the null-terminated string pointed to by the
manufacturer_string
field.
-
product_string
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theproduct_string
field.
-
product_stringString
- Returns:
- the null-terminated string pointed to by the
product_string
field.
-
usage_page
public short usage_page()- Returns:
- the value of the
usage_page
field.
-
usage
public short usage()- Returns:
- the value of the
usage
field.
-
interface_number
public int interface_number()- Returns:
- the value of the
interface_number
field.
-
interface_class
public int interface_class()- Returns:
- the value of the
interface_class
field.
-
interface_subclass
public int interface_subclass()- Returns:
- the value of the
interface_subclass
field.
-
interface_protocol
public int interface_protocol()- Returns:
- the value of the
interface_protocol
field.
-
bus_type
public int bus_type()- Returns:
- the value of the
bus_type
field.
-
next
- Returns:
- a
SDL_hid_device_info
view of the struct pointed to by thenext
field.
-
path
Sets the address of the specified encoded string to thepath
field. -
vendor_id
Sets the specified value to thevendor_id
field. -
product_id
Sets the specified value to theproduct_id
field. -
serial_number
Sets the address of the specified encoded string to theserial_number
field. -
release_number
Sets the specified value to therelease_number
field. -
manufacturer_string
Sets the address of the specified encoded string to themanufacturer_string
field. -
product_string
Sets the address of the specified encoded string to theproduct_string
field. -
usage_page
Sets the specified value to theusage_page
field. -
usage
Sets the specified value to theusage
field. -
interface_number
Sets the specified value to theinterface_number
field. -
interface_class
Sets the specified value to theinterface_class
field. -
interface_subclass
Sets the specified value to theinterface_subclass
field. -
interface_protocol
Sets the specified value to theinterface_protocol
field. -
bus_type
Sets the specified value to thebus_type
field. -
next
Sets the address of the specifiedSDL_hid_device_info
to thenext
field. -
set
public SDL_hid_device_info set(ByteBuffer path, short vendor_id, short product_id, ByteBuffer serial_number, short release_number, ByteBuffer manufacturer_string, ByteBuffer product_string, short usage_page, short usage, int interface_number, int interface_class, int interface_subclass, int interface_protocol, int bus_type, SDL_hid_device_info next) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newSDL_hid_device_info
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_hid_device_info
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_hid_device_info
instance allocated withBufferUtils
. -
create
Returns a newSDL_hid_device_info
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_hid_device_info.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_hid_device_info.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_hid_device_info.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_hid_device_info.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_hid_device_info
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_hid_device_info
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_hid_device_info.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_hid_device_info.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
npath
Unsafe version ofpath()
. -
npathString
Unsafe version ofpathString()
. -
nvendor_id
public static short nvendor_id(long struct) Unsafe version ofvendor_id()
. -
nproduct_id
public static short nproduct_id(long struct) Unsafe version ofproduct_id()
. -
nserial_number
Unsafe version ofserial_number()
. -
nserial_numberString
Unsafe version ofserial_numberString()
. -
nrelease_number
public static short nrelease_number(long struct) Unsafe version ofrelease_number()
. -
nmanufacturer_string
Unsafe version ofmanufacturer_string()
. -
nmanufacturer_stringString
Unsafe version ofmanufacturer_stringString()
. -
nproduct_string
Unsafe version ofproduct_string()
. -
nproduct_stringString
Unsafe version ofproduct_stringString()
. -
nusage_page
public static short nusage_page(long struct) Unsafe version ofusage_page()
. -
nusage
public static short nusage(long struct) Unsafe version ofusage()
. -
ninterface_number
public static int ninterface_number(long struct) Unsafe version ofinterface_number()
. -
ninterface_class
public static int ninterface_class(long struct) Unsafe version ofinterface_class()
. -
ninterface_subclass
public static int ninterface_subclass(long struct) Unsafe version ofinterface_subclass()
. -
ninterface_protocol
public static int ninterface_protocol(long struct) Unsafe version ofinterface_protocol()
. -
nbus_type
public static int nbus_type(long struct) Unsafe version ofbus_type()
. -
nnext
Unsafe version ofnext()
. -
npath
Unsafe version ofpath
. -
nvendor_id
public static void nvendor_id(long struct, short value) Unsafe version ofvendor_id
. -
nproduct_id
public static void nproduct_id(long struct, short value) Unsafe version ofproduct_id
. -
nserial_number
Unsafe version ofserial_number
. -
nrelease_number
public static void nrelease_number(long struct, short value) Unsafe version ofrelease_number
. -
nmanufacturer_string
Unsafe version ofmanufacturer_string
. -
nproduct_string
Unsafe version ofproduct_string
. -
nusage_page
public static void nusage_page(long struct, short value) Unsafe version ofusage_page
. -
nusage
public static void nusage(long struct, short value) Unsafe version ofusage
. -
ninterface_number
public static void ninterface_number(long struct, int value) Unsafe version ofinterface_number
. -
ninterface_class
public static void ninterface_class(long struct, int value) Unsafe version ofinterface_class
. -
ninterface_subclass
public static void ninterface_subclass(long struct, int value) Unsafe version ofinterface_subclass
. -
ninterface_protocol
public static void ninterface_protocol(long struct, int value) Unsafe version ofinterface_protocol
. -
nbus_type
public static void nbus_type(long struct, int value) Unsafe version ofbus_type
. -
nnext
Unsafe version ofnext
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-