table of contents
other versions
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_PowerState(3type) | SDL3 DATATYPES | SDL_PowerState(3type) | 
NAME¶
SDL_PowerState - The basic state for the system's power supply.
HEADER FILE¶
Defined in SDL3/SDL_power.h
SYNOPSIS¶
#include "SDL3/SDL.h"
typedef enum SDL_PowerState
{
    SDL_POWERSTATE_ERROR = -1,   /**< error determining power status */
    SDL_POWERSTATE_UNKNOWN,      /**< cannot determine power status */
    SDL_POWERSTATE_ON_BATTERY,   /**< Not plugged in, running on the battery */
    SDL_POWERSTATE_NO_BATTERY,   /**< Plugged in, no battery available */
    SDL_POWERSTATE_CHARGING,     /**< Plugged in, charging battery */
    SDL_POWERSTATE_CHARGED       /**< Plugged in, battery charged */
} SDL_PowerState;
DESCRIPTION¶
These are results returned by SDL_GetPowerInfo ().
AVAILABILITY¶
This enum is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |