module RbSDL2::Display::DisplayOrientation
Public Instance Methods
flipped_landscape?(= ::SDL2::SDL_ORIENTATION_LANDSCAPE_FLIPPED == orientation)
click to toggle source
# File lib/rb_sdl2/display.rb, line 86 def flipped_landscape? = ::SDL2::SDL_ORIENTATION_LANDSCAPE_FLIPPED == orientation def flipped_portrait? = ::SDL2::SDL_ORIENTATION_PORTRAIT_FLIPPED == orientation def landscape? = ::SDL2::SDL_ORIENTATION_LANDSCAPE == orientation def portrait? = ::SDL2::SDL_ORIENTATION_PORTRAIT == orientation end include DisplayOrientation def usable_bounds rect = Rect.new err = ::SDL2.SDL_GetDisplayUsableBounds(index, rect) raise RbSDL2Error if err < 0 rect.to_a end end
flipped_portrait?(= ::SDL2::SDL_ORIENTATION_PORTRAIT_FLIPPED == orientation)
click to toggle source
# File lib/rb_sdl2/display.rb, line 88 def flipped_portrait? = ::SDL2::SDL_ORIENTATION_PORTRAIT_FLIPPED == orientation def landscape? = ::SDL2::SDL_ORIENTATION_LANDSCAPE == orientation def portrait? = ::SDL2::SDL_ORIENTATION_PORTRAIT == orientation end include DisplayOrientation def usable_bounds rect = Rect.new err = ::SDL2.SDL_GetDisplayUsableBounds(index, rect) raise RbSDL2Error if err < 0 rect.to_a end end end
landscape?(= ::SDL2::SDL_ORIENTATION_LANDSCAPE == orientation)
click to toggle source
# File lib/rb_sdl2/display.rb, line 90 def landscape? = ::SDL2::SDL_ORIENTATION_LANDSCAPE == orientation def portrait? = ::SDL2::SDL_ORIENTATION_PORTRAIT == orientation end include DisplayOrientation def usable_bounds rect = Rect.new err = ::SDL2.SDL_GetDisplayUsableBounds(index, rect) raise RbSDL2Error if err < 0 rect.to_a end end
portrait?(= ::SDL2::SDL_ORIENTATION_PORTRAIT == orientation)
click to toggle source
# File lib/rb_sdl2/display.rb, line 92 def portrait? = ::SDL2::SDL_ORIENTATION_PORTRAIT == orientation end
usable_bounds()
click to toggle source
# File lib/rb_sdl2/display.rb, line 96 def usable_bounds rect = Rect.new err = ::SDL2.SDL_GetDisplayUsableBounds(index, rect) raise RbSDL2Error if err < 0 rect.to_a end