java.lang.Object
io.github.jwharm.cairobindings.Proxy
org.freedesktop.cairo.Rectangle
-
Constructor Summary
ConstructorsConstructorDescriptionRectangle(MemorySegment address) Constructor used internally to instantiate a java Rectangle object for a nativecairo_rectangle_tinstance -
Method Summary
Modifier and TypeMethodDescriptionstatic RectangleA data structure for holding a rectangle.static org.gnome.glib.TypegetType()Get the CairoRectangle GTypedoubleheight()Get the height value of the RectangletoString()String representation of this Rectangledoublewidth()Get the width value of the Rectangledoublex()Get the x value of the Rectangledoubley()Get the y value of the Rectangle
-
Constructor Details
-
Rectangle
Constructor used internally to instantiate a java Rectangle object for a nativecairo_rectangle_tinstance- Parameters:
address- the memory address of the nativecairo_rectangle_tinstance
-
-
Method Details
-
x
public double x()Get the x value of the Rectangle- Returns:
- the x value
-
y
public double y()Get the y value of the Rectangle- Returns:
- the y value
-
width
public double width()Get the width value of the Rectangle- Returns:
- the width value
-
height
public double height()Get the height value of the Rectangle- Returns:
- the height value
-
create
A data structure for holding a rectangle.- Parameters:
arena- the arena in which memory for the Rectangle is allocatedx- X coordinate of the left side of the rectangley- Y coordinate of the top side of the rectanglewidth- width of the rectangleheight- height of the rectangle- Returns:
- the newly created rectangle
-
toString
-
getType
public static org.gnome.glib.Type getType()Get the CairoRectangle GType- Returns:
- the GType
-