Package org.freedesktop.gstreamer.video
Class VideoRectangle
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoRectangle
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new VideoRectangle.VideoRectangle(int x, int y, int w, int h) Allocate a new VideoRectangle with the fields set to the provided values.VideoRectangle(int x, int y, int w, int h, Arena arena) Allocate a new VideoRectangle with the fields set to the provided values.VideoRectangle(Arena arena) Allocate a new VideoRectangle.VideoRectangle(MemorySegment address) Create a VideoRectangle proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.intreadH()Read the value of the fieldh.intreadW()Read the value of the fieldw.intreadX()Read the value of the fieldx.intreadY()Read the value of the fieldy.voidwriteH(int h) Write a value in the fieldh.voidwriteW(int w) Write a value in the fieldw.voidwriteX(int x) Write a value in the fieldx.voidwriteY(int y) Write a value in the fieldy.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoRectangle
Create a VideoRectangle proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
VideoRectangle
Allocate a new VideoRectangle.- Parameters:
arena- to control the memory allocation scope
-
VideoRectangle
public VideoRectangle()Allocate a new VideoRectangle. The memory is allocated withArena.ofAuto(). -
VideoRectangle
Allocate a new VideoRectangle with the fields set to the provided values.- Parameters:
x- value for the fieldxy- value for the fieldyw- value for the fieldwh- value for the fieldharena- 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 withArena.ofAuto().- Parameters:
x- value for the fieldxy- value for the fieldyw- value for the fieldwh- value for the fieldh
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readX
public int readX()Read the value of the fieldx.- Returns:
- The value of the field
x
-
writeX
public void writeX(int x) Write a value in the fieldx.- Parameters:
x- The new value for the fieldx
-
readY
public int readY()Read the value of the fieldy.- Returns:
- The value of the field
y
-
writeY
public void writeY(int y) Write a value in the fieldy.- Parameters:
y- The new value for the fieldy
-
readW
public int readW()Read the value of the fieldw.- Returns:
- The value of the field
w
-
writeW
public void writeW(int w) Write a value in the fieldw.- Parameters:
w- The new value for the fieldw
-
readH
public int readH()Read the value of the fieldh.- Returns:
- The value of the field
h
-
writeH
public void writeH(int h) Write a value in the fieldh.- Parameters:
h- The new value for the fieldh
-