Class: GLFW::Size

Inherits:
Object
  • Object
show all
Defined in:
lib/glfw/stubs.rb

Overview

Describes the dimensions of an object in 2D space.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width, height) ⇒ Size

Creates a new instance of the GLFW::Size class.

Parameters:

  • width (Integer)

    The dimension on the x-axis.

  • height (Integer)

    The dimension on the y-axis.



231
232
# File 'lib/glfw/stubs.rb', line 231

def initialize(width, height)
end

Instance Attribute Details

#heightInteger

Returns the dimension on the y-axis.

Returns:

  • (Integer)

    the dimension on the y-axis.



225
226
227
# File 'lib/glfw/stubs.rb', line 225

def height
  @height
end

#widthInteger

Returns the dimension on the x-axis.

Returns:

  • (Integer)

    the dimension on the x-axis.



221
222
223
# File 'lib/glfw/stubs.rb', line 221

def width
  @width
end