Package org.gnome.gtk
Class Requisition
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.Requisition
- All Implemented Interfaces:
Proxy
A
GtkRequisition
represents the desired size of a widget. See
GtkWidget’s geometry management section for
more information.-
Constructor Summary
ConstructorDescriptionAllocates a newGtkRequisition
.Requisition
(MemorySegment address) Create a Requisition proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies aGtkRequisition
.void
free()
Frees aGtkRequisition
.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the Requisition classint
Read the value of the fieldheight
.int
Read the value of the fieldwidth
.void
writeHeight
(int height) Write a value in the fieldheight
.void
writeWidth
(int width) Write a value in the fieldwidth
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Requisition
Create a Requisition proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
Requisition
public Requisition()Allocates a newGtkRequisition
.The struct is initialized to zero.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readWidth
public int readWidth()Read the value of the fieldwidth
.- Returns:
- The value of the field
width
-
writeWidth
public void writeWidth(int width) Write a value in the fieldwidth
.- Parameters:
width
- The new value for the fieldwidth
-
readHeight
public int readHeight()Read the value of the fieldheight
.- Returns:
- The value of the field
height
-
writeHeight
public void writeHeight(int height) Write a value in the fieldheight
.- Parameters:
height
- The new value for the fieldheight
-
copy
-
free
public void free()Frees aGtkRequisition
.
-