Module: SDL2::TextInput

Defined in:
key.c

Class Method Summary (collapse)

Class Method Details

+ (Boolean) active?

Returns:

  • (Boolean)


171
172
173
174
# File 'key.c', line 171

static VALUE TextInput_s_active_p(VALUE self)
{
    return INT2BOOL(SDL_IsTextInputActive());
}

+ (Object) rect=



186
187
188
189
190
191
# File 'key.c', line 186

static VALUE TextInput_s_set_rect(VALUE self, VALUE rect)
{
    SDL_Rect *r = Get_SDL_Rect(rect);
    SDL_SetTextInputRect(r);
    return rect;
}

+ (Object) start



176
177
178
179
# File 'key.c', line 176

static VALUE TextInput_s_start(VALUE self)
{
    SDL_StartTextInput(); return Qnil;
}

+ (Object) stop



181
182
183
184
# File 'key.c', line 181

static VALUE TextInput_s_stop(VALUE self)
{
    SDL_StopTextInput(); return Qnil;
}