struct Cairo::RectangleInt

Overview

A data structure for holding a rectangle.

Wrapper for LibCairo::RectangleIntT

Defined in:

cairo/rectangle_int.cr

Constructors

Instance Method Summary

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.


[View source]
def self.new(rect : LibCairo::RectangleIntT) #

Creates new rectangle from LibCairo::RectangleT.


[View source]
def self.new #

Creates uninitialized rectangle.


[View source]

Instance Method Detail

def height : Int32 #

Height of the rectangle.


[View source]
def height=(height : Int32) #

Setter for height.


[View source]
def to_cairo_rectangle : LibCairo::RectangleIntT #

Returns underlying LibCairo::RectangleIntT structure.


[View source]
def to_unsafe : LibCairo::PRectangleIntT #

Pointer of underlying LibCairo::RectangleIntT structure.


[View source]
def width : Int32 #

Width of the rectangle.


[View source]
def width=(width : Int32) #

Setter for width.


[View source]
def x : Int32 #

X coordinate of the left side of the rectangle.


[View source]
def x=(x : Int32) #

Setter for X coordinate.


[View source]
def y : Int32 #

Y coordinate of the the top side of the rectangle.


[View source]
def y=(y : Int32) #

Setter for Y coordinate.


[View source]