A data structure for holding a rectangle.
Wrapper for LibCairo::RectangleIntT
Constructors
new(x : Int32, y : Int32, width : Int32, height : Int32)
Creates new rectangle using specified coordinates of top left corner (x, y), width and height.
Sourcenew(rect : LibCairo::RectangleIntT)
Creates new rectangle from LibCairo::RectangleT.
Sourcenew
Creates uninitialized rectangle.
SourceInstance methods
to_cairo_rectangle
Returns underlying LibCairo::RectangleIntT structure.
Sourceto_unsafe
Pointer of underlying LibCairo::RectangleIntT structure.
Sourcex
X coordinate of the left side of the rectangle.
Sourcey
Y coordinate of the the top side of the rectangle.
Source