Class: SDL2::Event::TextInput
- Inherits:
-
SDL2::Event
- Object
- SDL2::Event
- SDL2::Event::TextInput
- Defined in:
- event.c,
event.c
Overview
This class represents text input events.
Instance Attribute Summary (collapse)
-
- (String) text
the input text.
-
- (Integer) window_id
the associate window id.
Attributes inherited from SDL2::Event
Instance Method Summary (collapse)
-
- (String) inspect
Inspection string.
Methods inherited from SDL2::Event
enable=, enabled?, poll, #window
Instance Attribute Details
- (String) text
the input text
- (Integer) window_id
the associate window id
Instance Method Details
- (String) inspect
Returns inspection string
443 444 445 446 447 448 449 |
# File 'event.c', line 443
static VALUE EvTextInput_inspect(VALUE self)
{
SDL_Event* ev; Data_Get_Struct(self, SDL_Event, ev);
return rb_sprintf("<%s: type=%u timestamp=%u window_id=%u text=%s>",
rb_obj_classname(self), ev->common.type, ev->common.timestamp,
ev->text.windowID, ev->text.text);
}
|