java.lang.Object
io.github.jwharm.cairobindings.Proxy
org.freedesktop.cairo.RectangleInt
A data structure for holding a rectangle with integer coordinates.
- Since:
- 1.10
-
Constructor Summary
ConstructorDescriptionRectangleInt
(MemorySegment address) Constructor used internally to instantiate a java RectangleInt object for a nativecairo_rectangle_int_t
instance -
Method Summary
Modifier and TypeMethodDescriptionstatic RectangleInt
Create a rectangle with integer coordinates.static org.gnome.glib.Type
getType()
Get the CairoRectangleInt GTypeint
height()
Get the height value of the RectangleInttoString()
String representation of this RectangleIntint
width()
Get the width value of the RectangleIntint
x()
Get the x value of the RectangleIntint
y()
Get the y value of the RectangleInt
-
Constructor Details
-
RectangleInt
Constructor used internally to instantiate a java RectangleInt object for a nativecairo_rectangle_int_t
instance- Parameters:
address
- the memory address of the nativecairo_rectangle_int_t
instance
-
-
Method Details
-
x
public int x()Get the x value of the RectangleInt- Returns:
- the x value
-
y
public int y()Get the y value of the RectangleInt- Returns:
- the y value
-
width
public int width()Get the width value of the RectangleInt- Returns:
- the width value
-
height
public int height()Get the height value of the RectangleInt- Returns:
- the height value
-
create
Create a rectangle with integer coordinates.- Parameters:
arena
- the arena in which memory for the RectangleInt is allocatedx
- X coordinate of the left side of the rectangley
- Y coordinate of the 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 CairoRectangleInt GType- Returns:
- the GType
-