Record Class SDL_PixelFormatDetails
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_PixelFormatDetails
- All Implemented Interfaces:
IPointer
,ISDL_PixelFormatDetails
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_PixelFormatDetails(@NotNull MemorySegment segment)
extends Record
implements ISDL_PixelFormatDetails
Details about the format of a pixel.
Since: This struct is available since SDL 3.2.0.
Structure
typedef struct SDL_PixelFormatDetails {
SDL_PixelFormat
format
;
Uint8 bits_per_pixel
;
Uint8 bytes_per_pixel
;
Uint8[2] padding
;
Uint32 Rmask
;
Uint32 Gmask
;
Uint32 Bmask
;
Uint32 Amask
;
Uint8 Rbits
;
Uint8 Gbits
;
Uint8 Bbits
;
Uint8 Abits
;
Uint8 Rshift
;
Uint8 Gshift
;
Uint8 Bshift
;
Uint8 Ashift
;
} SDL_PixelFormatDetails;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final SequenceLayout
static final ValueLayout.OfByte
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_PixelFormatDetails
(@NotNull MemorySegment segment) Creates an instance of aSDL_PixelFormatDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte
Abits()
Abits
(byte value) static SDL_PixelFormatDetails
static SDL_PixelFormatDetails.Ptr
int
Amask()
Amask
(int value) byte
Ashift()
Ashift
(byte value) byte
Bbits()
Bbits
(byte value) byte
bits_per_pixel
(byte value) int
Bmask()
Bmask
(int value) byte
Bshift()
Bshift
(byte value) byte
bytes_per_pixel
(byte value) static SDL_PixelFormatDetails
clone
(Arena arena, SDL_PixelFormatDetails src) final boolean
Indicates whether some other object is "equal to" this one.int
format()
format
(int value) byte
Gbits()
Gbits
(byte value) int
Gmask()
Gmask
(int value) byte
Gshift()
Gshift
(byte value) final int
hashCode()
Returns a hash code value for this object.padding()
byte
Rbits()
Rbits
(byte value) int
Rmask()
Rmask
(int value) byte
Rshift()
Rshift
(byte value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$format
-
PATH$bits_per_pixel
-
PATH$bytes_per_pixel
-
PATH$padding
-
PATH$Rmask
-
PATH$Gmask
-
PATH$Bmask
-
PATH$Amask
-
PATH$Rbits
-
PATH$Gbits
-
PATH$Bbits
-
PATH$Abits
-
PATH$Rshift
-
PATH$Gshift
-
PATH$Bshift
-
PATH$Ashift
-
LAYOUT$format
-
LAYOUT$bits_per_pixel
-
LAYOUT$bytes_per_pixel
-
LAYOUT$padding
-
LAYOUT$Rmask
-
LAYOUT$Gmask
-
LAYOUT$Bmask
-
LAYOUT$Amask
-
LAYOUT$Rbits
-
LAYOUT$Gbits
-
LAYOUT$Bbits
-
LAYOUT$Abits
-
LAYOUT$Rshift
-
LAYOUT$Gshift
-
LAYOUT$Bshift
-
LAYOUT$Ashift
-
SIZE$format
public static final long SIZE$format -
SIZE$bits_per_pixel
public static final long SIZE$bits_per_pixel -
SIZE$bytes_per_pixel
public static final long SIZE$bytes_per_pixel -
SIZE$padding
public static final long SIZE$padding -
SIZE$Rmask
public static final long SIZE$Rmask -
SIZE$Gmask
public static final long SIZE$Gmask -
SIZE$Bmask
public static final long SIZE$Bmask -
SIZE$Amask
public static final long SIZE$Amask -
SIZE$Rbits
public static final long SIZE$Rbits -
SIZE$Gbits
public static final long SIZE$Gbits -
SIZE$Bbits
public static final long SIZE$Bbits -
SIZE$Abits
public static final long SIZE$Abits -
SIZE$Rshift
public static final long SIZE$Rshift -
SIZE$Gshift
public static final long SIZE$Gshift -
SIZE$Bshift
public static final long SIZE$Bshift -
SIZE$Ashift
public static final long SIZE$Ashift -
OFFSET$format
public static final long OFFSET$format -
OFFSET$bits_per_pixel
public static final long OFFSET$bits_per_pixel -
OFFSET$bytes_per_pixel
public static final long OFFSET$bytes_per_pixel -
OFFSET$padding
public static final long OFFSET$padding -
OFFSET$Rmask
public static final long OFFSET$Rmask -
OFFSET$Gmask
public static final long OFFSET$Gmask -
OFFSET$Bmask
public static final long OFFSET$Bmask -
OFFSET$Amask
public static final long OFFSET$Amask -
OFFSET$Rbits
public static final long OFFSET$Rbits -
OFFSET$Gbits
public static final long OFFSET$Gbits -
OFFSET$Bbits
public static final long OFFSET$Bbits -
OFFSET$Abits
public static final long OFFSET$Abits -
OFFSET$Rshift
public static final long OFFSET$Rshift -
OFFSET$Gshift
public static final long OFFSET$Gshift -
OFFSET$Bshift
public static final long OFFSET$Bshift -
OFFSET$Ashift
public static final long OFFSET$Ashift
-
-
Constructor Details
-
SDL_PixelFormatDetails
Creates an instance of aSDL_PixelFormatDetails
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
format
-
format
-
bits_per_pixel
-
bits_per_pixel
-
bytes_per_pixel
-
bytes_per_pixel
-
padding
-
padding
-
paddingRaw
-
Rmask
-
Rmask
-
Gmask
-
Gmask
-
Bmask
-
Bmask
-
Amask
-
Amask
-
Rbits
-
Rbits
-
Gbits
-
Gbits
-
Bbits
-
Bbits
-
Abits
-
Abits
-
Rshift
-
Rshift
-
Gshift
-
Gshift
-
Bshift
-
Bshift
-
Ashift
-
Ashift
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-