Module: RbSDL2::TextInput
- Defined in:
- lib/rb_sdl2/text_input.rb
Class Method Summary collapse
- .active? ⇒ Boolean
- .bounds=(rect) ⇒ Object
- .clear_composition ⇒ Object
- .screen_keyboard_support? ⇒ Boolean
- .shown? ⇒ Boolean
- .start ⇒ Object
- .stop ⇒ Object
Class Method Details
.active? ⇒ 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_composition ⇒ Object
10 |
# File 'lib/rb_sdl2/text_input.rb', line 10 def clear_composition = ::SDL.ClearComposition |
.screen_keyboard_support? ⇒ Boolean
12 |
# File 'lib/rb_sdl2/text_input.rb', line 12 def screen_keyboard_support? = ::SDL.HasScreenKeyboardSupport == ::SDL::TRUE |
.shown? ⇒ Boolean
14 |
# File 'lib/rb_sdl2/text_input.rb', line 14 def shown? = ::SDL.IsTextInputShown == ::SDL::TRUE |
.start ⇒ Object
16 |
# File 'lib/rb_sdl2/text_input.rb', line 16 def start = ::SDL.StartTextInput |
.stop ⇒ Object
18 |
# File 'lib/rb_sdl2/text_input.rb', line 18 def stop = ::SDL.StopTextInput |