Package org.freedesktop.gstreamer.video
Class VideoRectangle
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoRectangle
-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.int
readH()
Read the value of the fieldh
.int
readW()
Read the value of the fieldw
.int
readX()
Read the value of the fieldx
.int
readY()
Read the value of the fieldy
.void
writeH
(int h) Write a value in the fieldh
.void
writeW
(int w) Write a value in the fieldw
.void
writeX
(int x) Write a value in the fieldx
.void
writeY
(int y) Write a value in the fieldy
.Methods inherited from class io.github.jwharm.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 fieldx
y
- value for the fieldy
w
- value for the fieldw
h
- value for the fieldh
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 withArena.ofAuto()
.- Parameters:
x
- value for the fieldx
y
- value for the fieldy
w
- value for the fieldw
h
- 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
-