xtd 0.2.0
xtd::media::system_sounds Class Reference

Definition

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

class core_export_ system_sounds static_
Inheritance
xtd::static_objectxtd::media::system_sounds
Header
#include <xtd/media/system_sounds>
Namespace
xtd::media
Library
xtd.core

Properties

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

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::media::system_sounds::asterisk property.
// Plays the sound associated with the Asterisk system event.
system_sounds.asterisk().play();
Examples:
system_sounds.cpp.

◆ 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::media::system_sounds::beep property.
// Plays the sound associated with the Beep system event.
system_sounds.asterisk().play();
Examples:
system_sounds.cpp.

◆ 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::media::system_sounds::exclamation property.
// Plays the sound associated with the Exclamation system event.
system_sounds.exclamation().play();
Examples:
system_sounds.cpp.

◆ 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::media::system_sounds::hand property.
// Plays the sound associated with the Hand system event.
system_sounds.hand().play();
Examples:
system_sounds.cpp.

◆ 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::media::system_sounds::question property.
// Plays the sound associated with the Question system event.
system_sounds.question().play();
Examples:
system_sounds.cpp.

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