Class VideoRectangle

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoRectangle
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VideoRectangle extends ProxyInstance
Helper structure representing a rectangular area.
  • Constructor Details

    • VideoRectangle

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

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

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

      public VideoRectangle(int x, int y, int w, int h, Arena arena)
      Allocate a new VideoRectangle with the fields set to the provided values.
      Parameters:
      x - value for the field x
      y - value for the field y
      w - value for the field w
      h - value for the field h
      arena - to control the memory allocation scope
    • VideoRectangle

      public VideoRectangle(int x, int y, int w, int h)
      Allocate a new VideoRectangle with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      x - value for the field x
      y - value for the field y
      w - value for the field w
      h - value for the field h
  • Method Details

    • getMemoryLayout

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

      public int readX()
      Read the value of the field x.
      Returns:
      The value of the field x
    • writeX

      public void writeX(int x)
      Write a value in the field x.
      Parameters:
      x - The new value for the field x
    • readY

      public int readY()
      Read the value of the field y.
      Returns:
      The value of the field y
    • writeY

      public void writeY(int y)
      Write a value in the field y.
      Parameters:
      y - The new value for the field y
    • readW

      public int readW()
      Read the value of the field w.
      Returns:
      The value of the field w
    • writeW

      public void writeW(int w)
      Write a value in the field w.
      Parameters:
      w - The new value for the field w
    • readH

      public int readH()
      Read the value of the field h.
      Returns:
      The value of the field h
    • writeH

      public void writeH(int h)
      Write a value in the field h.
      Parameters:
      h - The new value for the field h