Class: SDL::Window
- Inherits:
-
Data
- Object
- Data
- 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?
987 988 989 990 991 992 993 |
# File 'ext/sdl/sdl.c', line 987 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
977 978 979 980 981 982 983 984 985 |
# File 'ext/sdl/sdl.c', line 977 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
995 996 997 998 999 1000 1001 1002 |
# File 'ext/sdl/sdl.c', line 995 static VALUE Window_update(VALUE self) { DEFINE_SELF(Window, window, self); if (SDL_UpdateWindowSurface(window)) FAILURE("Window#update"); return Qnil; } |