Module: SDL2::ScreenSaver
- Defined in:
- video.c,
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.
2800 2801 2802 2803 2804 |
# File 'video.c', line 2800
static VALUE ScreenSaver_disable(VALUE self)
{
SDL_DisableScreenSaver();
return Qnil;
}
|
.enable ⇒ nil
Enable screensaver.
2787 2788 2789 2790 2791 |
# File 'video.c', line 2787
static VALUE ScreenSaver_enable(VALUE self)
{
SDL_EnableScreenSaver();
return Qnil;
}
|
.enabled? ⇒ Boolean
Return true if the screensaver is enabled.
2812 2813 2814 2815 |
# File 'video.c', line 2812
static VALUE ScreenSaver_enabled_p(VALUE self)
{
return INT2BOOL(SDL_IsScreenSaverEnabled());
}
|