Class: SDL2::Event::TextEditing
- Inherits:
-
SDL2::Event
- Object
- SDL2::Event
- SDL2::Event::TextEditing
- Defined in:
- event.c,
event.c
Overview
This class represents text editing event.
Instance Attribute Summary (collapse)
-
- (Integer) length
the length of selected editing text.
-
- (Integer) start
the start cursor of selected editing text.
-
- (String) text
the editing 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
- (Integer) length
the length of selected editing text
- (Integer) start
the start cursor of selected editing text
- (String) text
the editing text
- (Integer) window_id
the associate window id
Instance Method Details
- (String) inspect
Returns inspection string
409 410 411 412 413 414 415 416 |
# File 'event.c', line 409
static VALUE EvTextEditing_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 start=%d length=%d>",
rb_obj_classname(self), ev->common.type, ev->common.timestamp,
ev->edit.windowID, ev->edit.text, ev->edit.start, ev->edit.length);
}
|