Functions | |
| int | get_battery_remaining (const bool percent=true) noexcept |
| Get remaining battery charge of a laptop. | |
| SDL_PowerState | get_battery_status () noexcept |
| Get battery status. | |
|
nodiscardnoexcept |
Get remaining battery charge of a laptop.
| percent | True to return as a percentage, otherwise return seconds left. |
Definition at line 16 of file Laptop.cpp.
|
nodiscardnoexcept |
Get battery status.
Definition at line 25 of file Laptop.cpp.