Class AutomationEvent

java.lang.Object
com.raylib.AutomationEvent

public class AutomationEvent extends Object
Automation event
  • Field Details

    • memorySegment

      public final MemorySegment memorySegment
      The native FFI MemorySegment that holds the data this object wraps.
  • Constructor Details

    • AutomationEvent

      public AutomationEvent()
      Construct with auto memory allocator and fields initialized to zero.
    • AutomationEvent

      public AutomationEvent(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • AutomationEvent

      public AutomationEvent(MemorySegment memorySegment)
      Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    • AutomationEvent

      public AutomationEvent(int frame, int type, MemorySegment params)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      frame - Event frame
      type - Event type (AutomationEventType)
      params - Event parameters (if required)
    • AutomationEvent

      public AutomationEvent(SegmentAllocator arena, int frame, int type, MemorySegment params)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      frame - Event frame
      type - Event type (AutomationEventType)
      params - Event parameters (if required)
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public AutomationEvent getArrayElement(int index)
    • allocateArray

      public static AutomationEvent allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of AutomationEvent
    • allocateArray

      public static AutomationEvent allocateArray(long elementCount)
      Allocate an array of AutomationEvent
    • getFrame

      public int getFrame()
      Event frame
    • setFrame

      public void setFrame(int value)
      Event frame
    • frame

      public int frame()
      Event frame
    • frame

      public AutomationEvent frame(int value)
      Event frame
    • getType

      public int getType()
      Event type (AutomationEventType)
    • setType

      public void setType(int value)
      Event type (AutomationEventType)
    • type

      public int type()
      Event type (AutomationEventType)
    • type

      public AutomationEvent type(int value)
      Event type (AutomationEventType)
    • getParams

      public MemorySegment getParams()
      Event parameters (if required)
    • setParams

      public void setParams(MemorySegment value)
      Event parameters (if required)
    • params

      public MemorySegment params()
      Event parameters (if required)
    • params

      public AutomationEvent params(MemorySegment value)
      Event parameters (if required)