Class: SDL2::Hint
Constant Summary
Constants included from HINT
SDL2::HINT::ALLOW_TOPMOST, SDL2::HINT::FRAMEBUFFER_ACCELERATION, SDL2::HINT::GAMECONTROLLERCONFIG, SDL2::HINT::GRAB_KEYBOARD, SDL2::HINT::IDLE_TIMER_DISABLED, SDL2::HINT::JOYSTICK_ALLOW_BACKGROUND_EVENTS, SDL2::HINT::ORIENTATIONS, SDL2::HINT::RENDER_DRIVER, SDL2::HINT::RENDER_OPENGL_SHADERS, SDL2::HINT::RENDER_SCALE_QUALITY, SDL2::HINT::RENDER_VSYNC, SDL2::HINT::TIMER_RESOLUTION, SDL2::HINT::VIDEO_MINIMIZE_ON_FOCUS_LOSS, SDL2::HINT::VIDEO_X11_XINERAMA, SDL2::HINT::VIDEO_X11_XRANDR, SDL2::HINT::VIDEO_X11_XVIDMODE, SDL2::HINT::XINPUT_ENABLED
Class Method Summary collapse
-
.[](name) ⇒ Object
Get the named Hint’s value.
-
.[]=(name, value) ⇒ Object
Sets the named Hint to Value.
-
.set_with_priority(name, value, hint_priority) ⇒ Object
Sets the named Hint to Value, with a hint_priority.
Methods included from EnumerableConstants
Class Method Details
.[](name) ⇒ Object
Get the named Hint’s value.
34 35 36 |
# File 'lib/sdl2/hints.rb', line 34 def self.[](name) SDL2.get_hint(name) end |
.[]=(name, value) ⇒ Object
Sets the named Hint to Value.
41 42 43 44 |
# File 'lib/sdl2/hints.rb', line 41 def self.[]=(name, value) SDL2.set_hint!(name, value) self[name] end |
.set_with_priority(name, value, hint_priority) ⇒ Object
Sets the named Hint to Value, with a hint_priority.
48 49 50 51 |
# File 'lib/sdl2/hints.rb', line 48 def self.set_with_priority(name, value, hint_priority) SDL2.set_hint_with_priority(name, value, hint_priority) self[name] end |