|
SDL
2.0
|
Include dependency graph for SDL_power.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum | SDL_PowerState { SDL_POWERSTATE_UNKNOWN, SDL_POWERSTATE_ON_BATTERY, SDL_POWERSTATE_NO_BATTERY, SDL_POWERSTATE_CHARGING, SDL_POWERSTATE_CHARGED } |
| The basic state for the system's power supply. More... | |
Functions | |
| SDL_PowerState | SDL_GetPowerInfo (int *secs, int *pct) |
| Get the current power supply details. More... | |
Header for the SDL power management routines.
Definition in file SDL_power.h.
| enum SDL_PowerState |
The basic state for the system's power supply.
Definition at line 42 of file SDL_power.h.
| SDL_PowerState SDL_GetPowerInfo | ( | int * | secs, |
| int * | pct | ||
| ) |
Get the current power supply details.
| secs | Seconds of battery life left. You can pass a NULL here if you don't care. Will return -1 if we can't determine a value, or we're not running on a battery. |
| pct | Percentage of battery life left, between 0 and 100. You can pass a NULL here if you don't care. Will return -1 if we can't determine a value, or we're not running on a battery. |
Definition at line 98 of file SDL_power.c.
References i, implementations, NULL, retval, and SDL_POWERSTATE_UNKNOWN.