Class: SDC::IntRect

Inherits:
Object
  • Object
show all
Defined in:
engine_docs/automatic_doc_IntRect.rb,
engine_docs/automatic_doc_IntRect.rb

Overview

Simple rectangle consisting of integer valued boundaries

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left = 0, top = 0, width = 0, height = 0) ⇒ IntRect

Creates a rectangle with given left top point, width and height

Parameters:

  • left (Integer) (defaults to: 0)
  • top (Integer) (defaults to: 0)
  • width (Integer) (defaults to: 0)
  • height (Integer) (defaults to: 0)


# File 'engine_docs/automatic_doc_IntRect.rb', line 9

Instance Attribute Details

#heightInteger

Height of the rectangle

Returns:

  • (Integer)


# File 'engine_docs/automatic_doc_IntRect.rb', line 22

#leftInteger

x coordinate of the left rectangle side

Returns:

  • (Integer)


# File 'engine_docs/automatic_doc_IntRect.rb', line 26

#topInteger

y coordinate of the upper rectangle side

Returns:

  • (Integer)


# File 'engine_docs/automatic_doc_IntRect.rb', line 30

#widthInteger

Width of the rectangle

Returns:

  • (Integer)


# File 'engine_docs/automatic_doc_IntRect.rb', line 18