java.lang.Object
io.github.jwharm.cairobindings.Proxy
org.freedesktop.cairo.Rectangle
-
Constructor Summary
ConstructorDescriptionRectangle
(MemorySegment address) Constructor used internally to instantiate a java Rectangle object for a nativecairo_rectangle_t
instance -
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle
A data structure for holding a rectangle.static org.gnome.glib.Type
getType()
Get the CairoRectangle GTypedouble
height()
Get the height value of the RectangletoString()
String representation of this Rectangledouble
width()
Get the width value of the Rectangledouble
x()
Get the x value of the Rectangledouble
y()
Get the y value of the Rectangle
-
Constructor Details
-
Rectangle
Constructor used internally to instantiate a java Rectangle object for a nativecairo_rectangle_t
instance- Parameters:
address
- the memory address of the nativecairo_rectangle_t
instance
-
-
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
-