Class: SDL2::Event::TextInput
- Inherits:
-
SDL2::Event
- Object
- SDL2::Event
- SDL2::Event::TextInput
- Defined in:
- ext/sdl2_ext/event.c,
lib/sdl2/event.rb,
ext/sdl2_ext/event.c
Overview
This class represents text input events.
Instance Attribute Summary collapse
-
#text ⇒ String
the input text.
-
#window_id ⇒ Integer
the associate window id.
Attributes inherited from SDL2::Event
Instance Method Summary collapse
-
#inspect ⇒ String
Inspection string.
Methods inherited from SDL2::Event
enable=, enabled?, poll, #window
Instance Attribute Details
#text ⇒ String
the input text
#window_id ⇒ Integer
the associate window id
Instance Method Details
#inspect ⇒ String
Returns inspection string.
451 452 453 454 455 456 |
# File 'ext/sdl2_ext/event.c', line 451 def inspect "<#{self.class.inspect}: " \ "timestamp=#{.inspect} " \ "window_id=#{window_id.inspect} " \ "text=#{text.inspect}>" end |