xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
xtd::media::system_sounds Class Reference

#include <system_sounds.h>

Definition

Retrieves sounds associated with a set of Windows operating system sound-event types. This class cannot be inherited.

Namespace
xtd::media
Library
xtd.core

Inherits xtd::static_object.

Static Public Member Functions

static system_sound asterisk ()
 Gets the sound associated with the Asterisk program event in the current Windows sound scheme.
 
static system_sound beep ()
 Gets the sound associated with the Beep program event in the current Windows sound scheme.
 
static system_sound exclamation ()
 Gets the sound associated with the Exclamation program event in the current Windows sound scheme.
 
static system_sound hand ()
 Gets the sound associated with the Hand program event in the current Windows sound scheme.
 
static system_sound question ()
 Gets the sound associated with the Question program event in the current Windows sound scheme.
 

Member Function Documentation

◆ asterisk()

static system_sound xtd::media::system_sounds::asterisk ( )
static

Gets the sound associated with the Asterisk program event in the current Windows sound scheme.

Returns
A xtd::media::system_sound associated with the Asterisk program event in the current Windows sound scheme.A SystemSound associated with the Asterisk program event in the current Windows sound scheme.
Examples
The following code example demonstrates the use of the xtd::system_sounds::asterisk property.
// Plays the sound associated with the Asterisk system event.
void play() const
Plays the system sound type.
Retrieves sounds associated with a set of Windows operating system sound-event types....
Definition system_sounds.h:20
static system_sound asterisk()
Gets the sound associated with the Asterisk program event in the current Windows sound scheme.

◆ beep()

static system_sound xtd::media::system_sounds::beep ( )
static

Gets the sound associated with the Beep program event in the current Windows sound scheme.

Returns
A xtd::media::system_sound associated with the Beep program event in the current Windows sound scheme.
Examples
The following code example demonstrates the use of the xtd::system_sounds::beep property.
// Plays the sound associated with the Beep system event.

◆ exclamation()

static system_sound xtd::media::system_sounds::exclamation ( )
static

Gets the sound associated with the Exclamation program event in the current Windows sound scheme.

Returns
A xtd::media::system_sound associated with the Exclamation program event in the current Windows sound scheme.
Examples
The following code example demonstrates the use of the xtd::system_sounds::exclamation property.
// Plays the sound associated with the Exclamation system event.
static system_sound exclamation()
Gets the sound associated with the Exclamation program event in the current Windows sound scheme.

◆ hand()

static system_sound xtd::media::system_sounds::hand ( )
static

Gets the sound associated with the Hand program event in the current Windows sound scheme.

Returns
A xtd::media::system_sound associated with the Hand program event in the current Windows sound scheme.
Examples
The following code example demonstrates the use of the xtd::system_sounds::hand property.
// Plays the sound associated with the Hand system event.
static system_sound hand()
Gets the sound associated with the Hand program event in the current Windows sound scheme.

◆ question()

static system_sound xtd::media::system_sounds::question ( )
static

Gets the sound associated with the Question program event in the current Windows sound scheme.

Returns
A xtd::media::system_sound associated with the Question program event in the current Windows sound scheme.
Examples
The following code example demonstrates the use of the xtd::system_sounds::questioon property.
// Plays the sound associated with the Questioon system event.
static system_sound question()
Gets the sound associated with the Question program event in the current Windows sound scheme.

The documentation for this class was generated from the following file: