class SDL2::Hint

Public Class Methods

[](name) click to toggle source

Get the named Hint’s value. @returns String, the value.

# File lib/sdl2/hints.rb, line 36
def self.[](name)
  SDL2.get_hint(name)
end
[]=(name, value) click to toggle source

Sets the named Hint to Value.

@returns String, the actual value. @raises RuntimeError

# File lib/sdl2/hints.rb, line 43
def self.[]=(name, value)
  SDL2.set_hint!(name, value)
  self[name]
end
set_with_priority(name, value, hint_priority) click to toggle source

Sets the named Hint to Value, with a hint_priority.

@returns String, the actual value.

# File lib/sdl2/hints.rb, line 50
def self.set_with_priority(name, value, hint_priority)
  SDL2.set_hint_with_priority(name, value, hint_priority) 
  self[name]
end