Module: SDL2::ScreenSaver

Defined in:
video.c,
video.c

Overview

This module provides functions to disable and enable a screensaver.

Class Method Summary collapse

Class Method Details

.disablenil

Disable screensaver.

Returns:

  • (nil)

See Also:



2800
2801
2802
2803
2804
# File 'video.c', line 2800

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

.enablenil

Enable screensaver.

Returns:

  • (nil)

See Also:



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.

Returns:

  • (Boolean)

See Also:



2812
2813
2814
2815
# File 'video.c', line 2812

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