struct Gloop::Rect

Overview

Two-dimensional, rectangular region.

Defined in:

gloop/rect.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32, width : Int32, height : Int32) #

Creates a rectangular region.


[View source]

Instance Method Detail

def height : Int32 #

Height of the rectangular region.


[View source]
def width : Int32 #

Width of the rectangular region.


[View source]
def x : Int32 #

X-coordinate of a corner of the rectangular region.


[View source]
def y : Int32 #

Y-coordinate of a corner of the rectangular region.


[View source]