Class Shadow

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class Shadow extends ProxyInstance
The shadow parameters in a shadow node.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocate a new Shadow.
    Shadow(Arena arena)
    Allocate a new Shadow.
    Create a Shadow proxy instance for the provided memory address.
    Shadow(RGBA color, float dx, float dy, float radius)
    Allocate a new Shadow with the fields set to the provided values.
    Shadow(RGBA color, float dx, float dy, float radius, Arena arena)
    Allocate a new Shadow with the fields set to the provided values.
  • Method Summary

    Modifier and Type
    Method
    Description
    The memory layout of the native struct.
    @Nullable RGBA
    Read the value of the field color.
    float
    Read the value of the field dx.
    float
    Read the value of the field dy.
    float
    Read the value of the field radius.
    void
    writeColor(@Nullable RGBA color)
    Write a value in the field color.
    void
    writeDx(float dx)
    Write a value in the field dx.
    void
    writeDy(float dy)
    Write a value in the field dy.
    void
    writeRadius(float radius)
    Write a value in the field radius.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Shadow

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

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

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

      public Shadow(RGBA color, float dx, float dy, float radius, Arena arena)
      Allocate a new Shadow with the fields set to the provided values.
      Parameters:
      color - value for the field color
      dx - value for the field dx
      dy - value for the field dy
      radius - value for the field radius
      arena - to control the memory allocation scope
    • Shadow

      public Shadow(RGBA color, float dx, float dy, float radius)
      Allocate a new Shadow with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      color - value for the field color
      dx - value for the field dx
      dy - value for the field dy
      radius - value for the field radius
  • Method Details

    • getMemoryLayout

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

      public @Nullable RGBA readColor()
      Read the value of the field color.
      Returns:
      The value of the field color
    • writeColor

      public void writeColor(@Nullable RGBA color)
      Write a value in the field color.
      Parameters:
      color - The new value for the field color
    • readDx

      public float readDx()
      Read the value of the field dx.
      Returns:
      The value of the field dx
    • writeDx

      public void writeDx(float dx)
      Write a value in the field dx.
      Parameters:
      dx - The new value for the field dx
    • readDy

      public float readDy()
      Read the value of the field dy.
      Returns:
      The value of the field dy
    • writeDy

      public void writeDy(float dy)
      Write a value in the field dy.
      Parameters:
      dy - The new value for the field dy
    • readRadius

      public float readRadius()
      Read the value of the field radius.
      Returns:
      The value of the field radius
    • writeRadius

      public void writeRadius(float radius)
      Write a value in the field radius.
      Parameters:
      radius - The new value for the field radius