Module: RbSDL2::TextInput

Defined in:
lib/rb_sdl2/text_input.rb

Class Method Summary collapse

Class Method Details

.active?Boolean

Returns:

  • (Boolean)


4
# File 'lib/rb_sdl2/text_input.rb', line 4

def active? = ::SDL.IsTextInputActive == ::SDL::TRUE

.bounds=(rect) ⇒ Object



6
7
8
# File 'lib/rb_sdl2/text_input.rb', line 6

def bounds=(rect)
  ::SDL.SetTextInputRect(Rect.new(*rect))
end

.clear_compositionObject



10
# File 'lib/rb_sdl2/text_input.rb', line 10

def clear_composition = ::SDL.ClearComposition

.screen_keyboard_support?Boolean

Returns:

  • (Boolean)


12
# File 'lib/rb_sdl2/text_input.rb', line 12

def screen_keyboard_support? = ::SDL.HasScreenKeyboardSupport == ::SDL::TRUE

.shown?Boolean

Returns:

  • (Boolean)


14
# File 'lib/rb_sdl2/text_input.rb', line 14

def shown? = ::SDL.IsTextInputShown == ::SDL::TRUE

.startObject



16
# File 'lib/rb_sdl2/text_input.rb', line 16

def start = ::SDL.StartTextInput

.stopObject



18
# File 'lib/rb_sdl2/text_input.rb', line 18

def stop = ::SDL.StopTextInput