Method: RbSDL2::Display#bounds

Defined in:
lib/rb_sdl2/display.rb

#boundsObject

Raises:



15
16
17
18
19
20
# File 'lib/rb_sdl2/display.rb', line 15

def bounds
  rect = Rect.new
  err = ::SDL.GetDisplayBounds(index, rect)
  raise RbSDL2Error if err < 0
  rect.to_a
end