|
rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
System power status snapshot. More...
#include <Base.hpp>
Public Member Functions | |
| Status () noexcept | |
| Initialize from the current system power status. | |
| State | state () const noexcept |
| Get the recorded battery status/power state. | |
| std::optional< int > | time () const noexcept |
| Get the recorded estimated remaining battery charge life time. | |
| std::optional< int > | percentage () const noexcept |
| Get the recorded remaining battery charge percentage. | |
System power status snapshot.
1.8.16