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