struct

Cairo::RectangleInt

Inherits Struct / Value / Object

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.

Source
new(rect : LibCairo::RectangleIntT)

Creates new rectangle from LibCairo::RectangleT.

Source
new

Creates uninitialized rectangle.

Source

Instance methods

height

Height of the rectangle.

Source
height=(height : Int32)

Setter for height.

Source
to_cairo_rectangle

Returns underlying LibCairo::RectangleIntT structure.

Source
to_unsafe

Pointer of underlying LibCairo::RectangleIntT structure.

Source
width

Width of the rectangle.

Source
width=(width : Int32)

Setter for width.

Source
x

X coordinate of the left side of the rectangle.

Source
x=(x : Int32)

Setter for X coordinate.

Source
y

Y coordinate of the the top side of the rectangle.

Source
y=(y : Int32)

Setter for Y coordinate.

Source