Module: RbSDL2::Display::DisplayOrientation

Included in:
RbSDL2::Display
Defined in:
lib/rb_sdl2/display.rb

Instance Method Summary collapse

Instance Method Details

#flipped_landscape?Boolean

Returns:

  • (Boolean)


86
# File 'lib/rb_sdl2/display.rb', line 86

def flipped_landscape? = ::SDL::ORIENTATION_LANDSCAPE_FLIPPED == orientation

#flipped_portrait?Boolean

Returns:

  • (Boolean)


88
# File 'lib/rb_sdl2/display.rb', line 88

def flipped_portrait? = ::SDL::ORIENTATION_PORTRAIT_FLIPPED == orientation

#landscape?Boolean

Returns:

  • (Boolean)


90
# File 'lib/rb_sdl2/display.rb', line 90

def landscape? = ::SDL::ORIENTATION_LANDSCAPE == orientation

#portrait?Boolean

Returns:

  • (Boolean)


92
# File 'lib/rb_sdl2/display.rb', line 92

def portrait? = ::SDL::ORIENTATION_PORTRAIT == orientation