Package org.gnome.gtk
Class Requisition
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.Requisition
- All Implemented Interfaces:
Proxy
Represents the desired size of a widget.
See GtkWidget’s geometry management section for more information.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newGtkRequisition.Requisition(MemorySegment address) Create a Requisition proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copies aGtkRequisition.voidfree()Frees aGtkRequisition.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the Requisition classintRead the value of the fieldheight.intRead the value of the fieldwidth.voidwriteHeight(int height) Write a value in the fieldheight.voidwriteWidth(int width) Write a value in the fieldwidth.Methods inherited from class org.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.
-