Power related functions.
More...
◆ state
Power states.
Enumerator |
---|
unknown | |
on_battery | |
no_battery | |
charging | |
charged | |
Definition at line 148 of file utils.hpp.
◆ get_battery_remaining_charge()
int sdl::power::get_battery_remaining_charge |
( |
| ) |
|
|
inline |
Get the current battery charge.
- Returns
- estimated remaining charge in the battery in percents
Definition at line 174 of file utils.hpp.
◆ get_battery_remaining_time()
int sdl::power::get_battery_remaining_time |
( |
| ) |
|
|
inline |
Get battery remaining time.
- Returns
- Estimated number of seconds untils the battery dies
Definition at line 165 of file utils.hpp.
◆ get_state()
state sdl::power::get_state |
( |
| ) |
|
|
inline |