Class ColorLine

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.ColorLine
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ColorLine extends ProxyInstance
A struct containing color information for a gradient.
Since:
7.0.0
  • Constructor Details

    • ColorLine

      public ColorLine(MemorySegment address)
      Create a ColorLine proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ColorLine

      public ColorLine(Arena arena)
      Allocate a new ColorLine.
      Parameters:
      arena - to control the memory allocation scope
    • ColorLine

      public ColorLine()
      Allocate a new ColorLine. The memory is allocated with Arena.ofAuto().
    • ColorLine

      public ColorLine(MemorySegment data, ColorLineGetColorStopsFunc getColorStops, MemorySegment getColorStopsUserData, ColorLineGetExtendFunc getExtend, MemorySegment getExtendUserData, Arena arena)
      Allocate a new ColorLine with the fields set to the provided values.
      Parameters:
      data - value for the field data
      getColorStops - value for the field getColorStops
      getColorStopsUserData - value for the field getColorStopsUserData
      getExtend - value for the field getExtend
      getExtendUserData - value for the field getExtendUserData
      arena - to control the memory allocation scope
    • ColorLine

      public ColorLine(MemorySegment data, ColorLineGetColorStopsFunc getColorStops, MemorySegment getColorStopsUserData, ColorLineGetExtendFunc getExtend, MemorySegment getExtendUserData)
      Allocate a new ColorLine with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      data - value for the field data
      getColorStops - value for the field getColorStops
      getColorStopsUserData - value for the field getColorStopsUserData
      getExtend - value for the field getExtend
      getExtendUserData - value for the field getExtendUserData
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ColorLine class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readData

      public MemorySegment readData()
      Read the value of the field data.
      Returns:
      The value of the field data
    • writeData

      public void writeData(MemorySegment data)
      Write a value in the field data.
      Parameters:
      data - The new value for the field data
    • readGetColorStops

      public @Nullable ColorLineGetColorStopsFunc readGetColorStops()
      Read the value of the field get_color_stops.
      Returns:
      The value of the field get_color_stops
    • writeGetColorStops

      public void writeGetColorStops(@Nullable ColorLineGetColorStopsFunc getColorStops, Arena _arena)
      Write a value in the field get_color_stops.
      Parameters:
      getColorStops - The new value for the field get_color_stops
      _arena - to control the memory allocation scope
    • readGetColorStopsUserData

      public MemorySegment readGetColorStopsUserData()
      Read the value of the field get_color_stops_user_data.
      Returns:
      The value of the field get_color_stops_user_data
    • writeGetColorStopsUserData

      public void writeGetColorStopsUserData(MemorySegment getColorStopsUserData)
      Write a value in the field get_color_stops_user_data.
      Parameters:
      getColorStopsUserData - The new value for the field get_color_stops_user_data
    • readGetExtend

      public @Nullable ColorLineGetExtendFunc readGetExtend()
      Read the value of the field get_extend.
      Returns:
      The value of the field get_extend
    • writeGetExtend

      public void writeGetExtend(@Nullable ColorLineGetExtendFunc getExtend, Arena _arena)
      Write a value in the field get_extend.
      Parameters:
      getExtend - The new value for the field get_extend
      _arena - to control the memory allocation scope
    • readGetExtendUserData

      public MemorySegment readGetExtendUserData()
      Read the value of the field get_extend_user_data.
      Returns:
      The value of the field get_extend_user_data
    • writeGetExtendUserData

      public void writeGetExtendUserData(MemorySegment getExtendUserData)
      Write a value in the field get_extend_user_data.
      Parameters:
      getExtendUserData - The new value for the field get_extend_user_data