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

Class Method Details

.disablenil

Disable screensaver.

Returns:

  • (nil)

See Also:



3343
3344
3345
3346
3347
# File 'ext/sdl2_ext/video.c', line 3343

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

.enablenil

Enable screensaver.

Returns:

  • (nil)

See Also:



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.

Returns:

  • (Boolean)

See Also:



3355
3356
3357
3358
# File 'ext/sdl2_ext/video.c', line 3355

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