Class: GLFW::Size
- Inherits:
-
Object
- Object
- GLFW::Size
- Defined in:
- lib/glfw/stubs.rb
Overview
Describes the dimensions of an object in 2D space.
Instance Attribute Summary collapse
-
#height ⇒ Integer
The dimension on the y-axis.
-
#width ⇒ Integer
The dimension on the x-axis.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ Size
constructor
Creates a new instance of the Size class.
Constructor Details
#initialize(width, height) ⇒ Size
Creates a new instance of the GLFW::Size class.
231 232 |
# File 'lib/glfw/stubs.rb', line 231 def initialize(width, height) end |
Instance Attribute Details
#height ⇒ Integer
Returns the dimension on the y-axis.
225 226 227 |
# File 'lib/glfw/stubs.rb', line 225 def height @height end |
#width ⇒ Integer
Returns the dimension on the x-axis.
221 222 223 |
# File 'lib/glfw/stubs.rb', line 221 def width @width end |