Record Class GLFWgammaramp

java.lang.Object
java.lang.Record
club.doki7.glfw.datatype.GLFWgammaramp
All Implemented Interfaces:
IPointer, IGLFWgammaramp

@ValueBasedCandidate @UnsafeConstructor public record GLFWgammaramp(@NotNull MemorySegment segment) extends Record implements IGLFWgammaramp
Since:
Added in version 3.0.
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$red

      public static final MemoryLayout.PathElement PATH$red
    • PATH$green

      public static final MemoryLayout.PathElement PATH$green
    • PATH$blue

      public static final MemoryLayout.PathElement PATH$blue
    • PATH$size

      public static final MemoryLayout.PathElement PATH$size
    • LAYOUT$red

      public static final AddressLayout LAYOUT$red
    • LAYOUT$green

      public static final AddressLayout LAYOUT$green
    • LAYOUT$blue

      public static final AddressLayout LAYOUT$blue
    • LAYOUT$size

      public static final ValueLayout.OfInt LAYOUT$size
    • SIZE$red

      public static final long SIZE$red
    • SIZE$green

      public static final long SIZE$green
    • SIZE$blue

      public static final long SIZE$blue
    • SIZE$size

      public static final long SIZE$size
    • OFFSET$red

      public static final long OFFSET$red
    • OFFSET$green

      public static final long OFFSET$green
    • OFFSET$blue

      public static final long OFFSET$blue
    • OFFSET$size

      public static final long OFFSET$size
  • Constructor Details

    • GLFWgammaramp

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

    • allocate

      public static GLFWgammaramp allocate(Arena arena)
    • allocate

      public static GLFWgammaramp.Ptr allocate(Arena arena, long count)
    • clone

      public static GLFWgammaramp clone(Arena arena, GLFWgammaramp src)
    • red

      @Nullable public @Nullable ShortPtr red()
      Note: the returned ShortPtr does not have correct ShortPtr.size() property. It's up to user to track the size of the buffer, and use ShortPtr.reinterpret(long) to set the size before actually reading from or writing to the buffer.
    • red

      public GLFWgammaramp red(@Nullable @Nullable ShortPtr value)
    • redRaw

      @Pointer(comment="int16_t*") public MemorySegment redRaw()
    • redRaw

      public void redRaw(@Pointer(comment="int16_t*") MemorySegment value)
    • green

      @Nullable public @Nullable ShortPtr green()
      Note: the returned ShortPtr does not have correct ShortPtr.size() property. It's up to user to track the size of the buffer, and use ShortPtr.reinterpret(long) to set the size before actually reading from or writing to the buffer.
    • green

      public GLFWgammaramp green(@Nullable @Nullable ShortPtr value)
    • greenRaw

      @Pointer(comment="int16_t*") public MemorySegment greenRaw()
    • greenRaw

      public void greenRaw(@Pointer(comment="int16_t*") MemorySegment value)
    • blue

      @Nullable public @Nullable ShortPtr blue()
      Note: the returned ShortPtr does not have correct ShortPtr.size() property. It's up to user to track the size of the buffer, and use ShortPtr.reinterpret(long) to set the size before actually reading from or writing to the buffer.
    • blue

      public GLFWgammaramp blue(@Nullable @Nullable ShortPtr value)
    • blueRaw

      @Pointer(comment="int16_t*") public MemorySegment blueRaw()
    • blueRaw

      public void blueRaw(@Pointer(comment="int16_t*") MemorySegment value)
    • size

      public int size()
    • size

      public GLFWgammaramp size(int value)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • segment

      @NotNull public @NotNull MemorySegment segment()
      Returns the value of the segment record component.
      Specified by:
      segment in interface IPointer
      Returns:
      the value of the segment record component