Class: SDL::Rect

Inherits:
Struct
  • Object
show all
Defined in:
lib/sdl.rb

Instance Attribute Summary collapse

Instance Attribute Details

#hObject

Returns the value of attribute h

Returns:

  • (Object)

    the current value of h



146
147
148
# File 'lib/sdl.rb', line 146

def h
  @h
end

#wObject

Returns the value of attribute w

Returns:

  • (Object)

    the current value of w



146
147
148
# File 'lib/sdl.rb', line 146

def w
  @w
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



146
147
148
# File 'lib/sdl.rb', line 146

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



146
147
148
# File 'lib/sdl.rb', line 146

def y
  @y
end