rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Classes | Enumerations | Functions
rolmodl::sys::pwr Namespace Reference

Power state functions and enums. More...

Classes

struct  Status
 System power status snapshot. More...
 

Enumerations

enum  State {
  onBattery, noBattery, charging, charged,
  unknown
}
 Indicates battery status a.k.a. the system power state. More...
 

Functions

Status status () noexcept
 Get a system power status snapshot.
 

Detailed Description

Power state functions and enums.

Enumeration Type Documentation

◆ State

Indicates battery status a.k.a. the system power state.

See also
https://wiki.libsdl.org/SDL_PowerState

Definition at line 138 of file Base.hpp.