Class: SDL::Window
- Inherits:
-
Object
- Object
- SDL::Window
- Defined in:
- ext/sdl/sdl.c
Instance Method Summary collapse
-
#title ⇒ Object
TODO: move to top renderer?.
- #title=(title) ⇒ Object
- #update ⇒ Object
Instance Method Details
#title ⇒ Object
TODO: move to top renderer?
1038 1039 1040 1041 1042 1043 1044 |
# File 'ext/sdl/sdl.c', line 1038 static VALUE Window_title(VALUE self) { DEFINE_SELF(Window, window, self); const char* title = SDL_GetWindowTitle(window); return rb_str_new_cstr(title); } |
#title=(title) ⇒ Object
1028 1029 1030 1031 1032 1033 1034 1035 1036 |
# File 'ext/sdl/sdl.c', line 1028
static VALUE Window_title_eq(VALUE self, VALUE title) {
DEFINE_SELF(Window, window, self);
ExportStringValue(title);
SDL_SetWindowTitle(window, StringValueCStr(title));
return Qnil;
}
|
#update ⇒ Object
1046 1047 1048 1049 1050 1051 1052 1053 |
# File 'ext/sdl/sdl.c', line 1046
static VALUE Window_update(VALUE self) {
DEFINE_SELF(Window, window, self);
if (SDL_UpdateWindowSurface(window))
FAILURE("Window#update");
return Qnil;
}
|