Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
volume Class Reference

A relative sound intensity. More...

#include <volume.h>

Public Member Functions

 volume (const int volume_in_percent)
 Volume in percents, i.e.
 
int get_percentage () const noexcept
 Get the volume in percents, i.e.
 

Detailed Description

A relative sound intensity.

A relative sound intensity, from 0 to 100%

Constructor & Destructor Documentation

◆ volume()

volume::volume ( const int  volume_in_percent)
explicit

Volume in percents, i.e.

0 is 0%, 10 is 10%, 100 = 100%

Member Function Documentation

◆ get_percentage()

int volume::get_percentage ( ) const
inlinenoexcept

Get the volume in percents, i.e.

0 is 0%, 10 is 10%, 100 = 100%


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