Class: SDL2::Event::TextInput

Inherits:
SDL2::Event show all
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

Attributes inherited from SDL2::Event

#timestamp, #type

Instance Method Summary collapse

Methods inherited from SDL2::Event

enable=, enabled?, poll, #window

Instance Attribute Details

#textString

the input text

Returns:

  • (String)

#window_idInteger

the associate window id

Returns:

  • (Integer)

Instance Method Details

#inspectString

Returns inspection string.

Returns:

  • (String)

    inspection string



451
452
453
454
455
456
# File 'ext/sdl2_ext/event.c', line 451

def inspect
	"<#{self.class.inspect}: " \
		"timestamp=#{timestamp.inspect} " \
		"window_id=#{window_id.inspect} " \
		"text=#{text.inspect}>"
end