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
ConstructorsConstructorDescriptionRectangleInt(MemorySegment address) Constructor used internally to instantiate a java RectangleInt object for a nativecairo_rectangle_int_tinstance -
Method Summary
Modifier and TypeMethodDescriptionstatic RectangleIntCreate a rectangle with integer coordinates.static org.gnome.glib.TypegetType()Get the CairoRectangleInt GTypeintheight()Get the height value of the RectangleInttoString()String representation of this RectangleIntintwidth()Get the width value of the RectangleIntintx()Get the x value of the RectangleIntinty()Get the y value of the RectangleInt
-
Constructor Details
-
RectangleInt
Constructor used internally to instantiate a java RectangleInt object for a nativecairo_rectangle_int_tinstance- Parameters:
address- the memory address of the nativecairo_rectangle_int_tinstance
-
-
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
-