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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final SequenceLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_PixelFormatDetails(@NotNull MemorySegment segment) Creates an instance of aSDL_PixelFormatDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyteAbits()Abits(byte value) static SDL_PixelFormatDetailsstatic SDL_PixelFormatDetails.PtrintAmask()Amask(int value) byteAshift()Ashift(byte value) byteBbits()Bbits(byte value) bytebits_per_pixel(byte value) intBmask()Bmask(int value) byteBshift()Bshift(byte value) bytebytes_per_pixel(byte value) static SDL_PixelFormatDetailsclone(Arena arena, SDL_PixelFormatDetails src) final booleanIndicates whether some other object is "equal to" this one.intformat()format(int value) byteGbits()Gbits(byte value) intGmask()Gmask(int value) byteGshift()Gshift(byte value) final inthashCode()Returns a hash code value for this object.padding()byteRbits()Rbits(byte value) intRmask()Rmask(int value) byteRshift()Rshift(byte value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()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_PixelFormatDetailsrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-