Module: SDL2::ScreenSaver
- Defined in:
- ext/sdl2_ext/video.c,
ext/sdl2_ext/video.c
Overview
This module provides functions to disable and enable a screensaver.
Class Method Summary collapse
-
.disable ⇒ nil
Disable screensaver.
-
.enable ⇒ nil
Enable screensaver.
-
.enabled? ⇒ Boolean
Return true if the screensaver is enabled.
Class Method Details
.disable ⇒ nil
Disable screensaver.
3343 3344 3345 3346 3347 |
# File 'ext/sdl2_ext/video.c', line 3343
static VALUE ScreenSaver_disable(VALUE self)
{
SDL_DisableScreenSaver();
return Qnil;
}
|
.enable ⇒ nil
Enable screensaver.
3330 3331 3332 3333 3334 |
# File 'ext/sdl2_ext/video.c', line 3330
static VALUE ScreenSaver_enable(VALUE self)
{
SDL_EnableScreenSaver();
return Qnil;
}
|
.enabled? ⇒ Boolean
Return true if the screensaver is enabled.
3355 3356 3357 3358 |
# File 'ext/sdl2_ext/video.c', line 3355
static VALUE ScreenSaver_enabled_p(VALUE self)
{
return INT2BOOL(SDL_IsScreenSaverEnabled());
}
|