Package org.gnome.gtk
Class Allocation
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gdk.Rectangle
org.gnome.gtk.Allocation
- All Implemented Interfaces:
Proxy
The rectangle representing the area allocated for a widget by its parent.
-
Constructor Summary
ConstructorDescriptionAllocation
(MemorySegment address) Create a Allocation proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic Allocation
fromRectangle
(Rectangle alias) Cast a Rectangle instance to a Allocation with the same memory address.Methods inherited from class org.gnome.gdk.Rectangle
containsPoint, equal, getMemoryLayout, getType, intersect, readHeight, readWidth, readX, readY, union, writeHeight, writeWidth, writeX, writeY
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Allocation
Create a Allocation proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
fromRectangle
Cast a Rectangle instance to a Allocation with the same memory address.- Parameters:
alias
- the Rectangle to cast to a Allocation- Returns:
- a Allocation with the memory address of the Rectangle
-