Record Class SDL_MessageBoxColor

java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_MessageBoxColor
All Implemented Interfaces:
IPointer, ISDL_MessageBoxColor

@ValueBasedCandidate @UnsafeConstructor public record SDL_MessageBoxColor(@NotNull MemorySegment segment) extends Record implements ISDL_MessageBoxColor

RGB value used in a message box color scheme

Since: This struct is available since SDL 3.2.0.

Structure

typedef struct SDL_MessageBoxColor {
    Uint8 r;
    Uint8 g;
    Uint8 b;
} SDL_MessageBoxColor;

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.

  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$r

      public static final MemoryLayout.PathElement PATH$r
    • PATH$g

      public static final MemoryLayout.PathElement PATH$g
    • PATH$b

      public static final MemoryLayout.PathElement PATH$b
    • LAYOUT$r

      public static final ValueLayout.OfByte LAYOUT$r
    • LAYOUT$g

      public static final ValueLayout.OfByte LAYOUT$g
    • LAYOUT$b

      public static final ValueLayout.OfByte LAYOUT$b
    • SIZE$r

      public static final long SIZE$r
    • SIZE$g

      public static final long SIZE$g
    • SIZE$b

      public static final long SIZE$b
    • OFFSET$r

      public static final long OFFSET$r
    • OFFSET$g

      public static final long OFFSET$g
    • OFFSET$b

      public static final long OFFSET$b
  • Constructor Details

    • SDL_MessageBoxColor

      public SDL_MessageBoxColor(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a SDL_MessageBoxColor record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details