struct Cairo::RectangleInt
- Cairo::RectangleInt
- Struct
- Value
- Object
Overview
A data structure for holding a rectangle.
Wrapper for LibCairo::RectangleIntT
Defined in:
cairo/rectangle_int.crConstructors
-
.new(x : Int32, y : Int32, width : Int32, height : Int32)
Creates new rectangle using specified coordinates of top left corner (x, y), width and height.
-
.new(rect : LibCairo::RectangleIntT)
Creates new rectangle from
LibCairo::RectangleT
. -
.new
Creates uninitialized rectangle.
Instance Method Summary
-
#height : Int32
Height of the rectangle.
-
#height=(height : Int32)
Setter for height.
-
#to_cairo_rectangle : LibCairo::RectangleIntT
Returns underlying
LibCairo::RectangleIntT
structure. -
#to_unsafe : LibCairo::PRectangleIntT
Pointer of underlying
LibCairo::RectangleIntT
structure. -
#width : Int32
Width of the rectangle.
-
#width=(width : Int32)
Setter for width.
-
#x : Int32
X coordinate of the left side of the rectangle.
-
#x=(x : Int32)
Setter for X coordinate.
-
#y : Int32
Y coordinate of the the top side of the rectangle.
-
#y=(y : Int32)
Setter for Y coordinate.
Constructor Detail
def self.new(x : Int32, y : Int32, width : Int32, height : Int32)
#
Creates new rectangle using specified coordinates of top left corner (x, y), width and height.
Instance Method Detail
def to_cairo_rectangle : LibCairo::RectangleIntT
#
Returns underlying LibCairo::RectangleIntT
structure.