Module: GosuEnhanced

Included in:
Gosu::Font
Defined in:
lib/gosu_enhanced/size.rb,
lib/gosu_enhanced/point.rb,
lib/gosu_enhanced/region.rb,
lib/gosu_enhanced/version.rb

Overview

Version of the gosu_enhanced gem.

Defined Under Namespace

Classes: Point, Region, Size

Constant Summary collapse

VERSION =

gosu_enhanced gem version

'0.4.4'.freeze

Class Method Summary collapse

Class Method Details

.Point(x, y) ⇒ Object

Utility function to construct a Point

  • x x co-ordinate

  • y y co-ordinate



68
69
70
# File 'lib/gosu_enhanced/point.rb', line 68

def Point(x, y)
  Point.new(x, y)
end

.Region(pos, size) ⇒ Object

Utility function to create a new Region



77
78
79
# File 'lib/gosu_enhanced/region.rb', line 77

def Region(pos, size)
  Region.new(pos, size)
end

.Size(x, y) ⇒ Object

Utility function to construct a size

  • x Width

  • y Height



110
111
112
# File 'lib/gosu_enhanced/size.rb', line 110

def Size(x, y)
  Size.new(x, y)
end