Module: SDL2::ScreenSaver
- Defined in:
- video.c
Class Method Summary (collapse)
-
+ (nil) disable
Disable screensaver.
-
+ (nil) enable
Enable screensaver.
-
+ (Boolean) enabled?
Return true if the screensaver is enabled.
Class Method Details
+ (nil) disable
Disable screensaver.
2616 2617 2618 2619 2620 |
# File 'video.c', line 2616
static VALUE ScreenSaver_disable(VALUE self)
{
SDL_DisableScreenSaver();
return Qnil;
}
|
+ (nil) enable
Enable screensaver.
2603 2604 2605 2606 2607 |
# File 'video.c', line 2603
static VALUE ScreenSaver_enable(VALUE self)
{
SDL_EnableScreenSaver();
return Qnil;
}
|
+ (Boolean) enabled?
Return true if the screensaver is enabled.
2628 2629 2630 2631 |
# File 'video.c', line 2628
static VALUE ScreenSaver_enabled_p(VALUE self)
{
return INT2BOOL(SDL_IsScreenSaverEnabled());
}
|