6#include <SDL3/SDL_power.h>
7#include "SDL3pp_stdinc.h"
107 return SDL_GetPowerInfo(seconds, percent);
SDL_PowerState PowerState
The basic state for the system's power supply.
Definition SDL3pp_power.h:39
constexpr PowerState POWERSTATE_ON_BATTERY
Not plugged in, running on the battery.
Definition SDL3pp_power.h:54
constexpr PowerState POWERSTATE_UNKNOWN
cannot determine power status
Definition SDL3pp_power.h:49
PowerState GetPowerInfo(int *seconds, int *percent)
Get the current power supply details.
Definition SDL3pp_power.h:105
constexpr PowerState POWERSTATE_CHARGING
Plugged in, charging battery.
Definition SDL3pp_power.h:64
constexpr PowerState POWERSTATE_NO_BATTERY
Plugged in, no battery available.
Definition SDL3pp_power.h:59
constexpr PowerState POWERSTATE_ERROR
error determining power status
Definition SDL3pp_power.h:44
constexpr PowerState POWERSTATE_CHARGED
Plugged in, battery charged.
Definition SDL3pp_power.h:69
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7