Module: SDL2::ScreenSaver

Defined in:
video.c

Class Method Summary (collapse)

Class Method Details

+ (nil) disable

Disable screensaver.

Returns:

  • (nil)

See Also:



2616
2617
2618
2619
2620
# File 'video.c', line 2616

static VALUE ScreenSaver_disable(VALUE self)
{
    SDL_DisableScreenSaver();
    return Qnil;
}

+ (nil) enable

Enable screensaver.

Returns:

  • (nil)

See Also:



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.

Returns:

  • (Boolean)

See Also:



2628
2629
2630
2631
# File 'video.c', line 2628

static VALUE ScreenSaver_enabled_p(VALUE self)
{
    return INT2BOOL(SDL_IsScreenSaverEnabled());
}