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? = ::SDL2.SDL_IsTextInputActive == ::SDL2::SDL_TRUE

.bounds=(rect) ⇒ Object



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

def bounds=(rect)
  ::SDL2.SDL_SetTextInputRect(Rect.new(*rect))
end

.startObject



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

def start = ::SDL2.SDL_StartTextInput

.stopObject



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

def stop = ::SDL2.SDL_StopTextInput