Module: RbSDL2::Display::DisplayOrientation
- Included in:
- RbSDL2::Display
- Defined in:
- lib/rb_sdl2/display.rb
Instance Method Summary collapse
- #flipped_landscape? ⇒ Boolean
- #flipped_portrait? ⇒ Boolean
- #landscape? ⇒ Boolean
- #portrait? ⇒ Boolean
Instance Method Details
#flipped_landscape? ⇒ Boolean
86 |
# File 'lib/rb_sdl2/display.rb', line 86 def flipped_landscape? = ::SDL::ORIENTATION_LANDSCAPE_FLIPPED == orientation |
#flipped_portrait? ⇒ Boolean
88 |
# File 'lib/rb_sdl2/display.rb', line 88 def flipped_portrait? = ::SDL::ORIENTATION_PORTRAIT_FLIPPED == orientation |
#landscape? ⇒ Boolean
90 |
# File 'lib/rb_sdl2/display.rb', line 90 def landscape? = ::SDL::ORIENTATION_LANDSCAPE == orientation |
#portrait? ⇒ Boolean
92 |
# File 'lib/rb_sdl2/display.rb', line 92 def portrait? = ::SDL::ORIENTATION_PORTRAIT == orientation |