Record Class SDL_ClipboardEvent

java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_ClipboardEvent
All Implemented Interfaces:
IPointer, ISDL_ClipboardEvent

@ValueBasedCandidate @UnsafeConstructor public record SDL_ClipboardEvent(@NotNull MemorySegment segment) extends Record implements ISDL_ClipboardEvent

An event triggered when the clipboard contents have changed (event.clipboard.*)

Since: This struct is available since SDL 3.2.0.

Structure

typedef struct SDL_ClipboardEvent {
    SDL_EventType type;
    Uint32 reserved;
    Uint64 timestamp;
    bool owner;
    Sint32 num_mime_types;
    char const** mime_types;
} SDL_ClipboardEvent;

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$type

      public static final MemoryLayout.PathElement PATH$type
    • PATH$timestamp

      public static final MemoryLayout.PathElement PATH$timestamp
    • PATH$owner

      public static final MemoryLayout.PathElement PATH$owner
    • PATH$num_mime_types

      public static final MemoryLayout.PathElement PATH$num_mime_types
    • PATH$mime_types

      public static final MemoryLayout.PathElement PATH$mime_types
    • LAYOUT$type

      public static final ValueLayout.OfInt LAYOUT$type
    • LAYOUT$timestamp

      public static final ValueLayout.OfLong LAYOUT$timestamp
    • LAYOUT$owner

      public static final ValueLayout.OfBoolean LAYOUT$owner
    • LAYOUT$num_mime_types

      public static final ValueLayout.OfInt LAYOUT$num_mime_types
    • LAYOUT$mime_types

      public static final AddressLayout LAYOUT$mime_types
    • SIZE$type

      public static final long SIZE$type
    • SIZE$timestamp

      public static final long SIZE$timestamp
    • SIZE$owner

      public static final long SIZE$owner
    • SIZE$num_mime_types

      public static final long SIZE$num_mime_types
    • SIZE$mime_types

      public static final long SIZE$mime_types
    • OFFSET$type

      public static final long OFFSET$type
    • OFFSET$timestamp

      public static final long OFFSET$timestamp
    • OFFSET$owner

      public static final long OFFSET$owner
    • OFFSET$num_mime_types

      public static final long OFFSET$num_mime_types
    • OFFSET$mime_types

      public static final long OFFSET$mime_types
  • Constructor Details

    • SDL_ClipboardEvent

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