Gel2D - The free/open source game creation suite

Static Public Member Functions
gel::GelPowerInfo Class Reference

Obtains electrical power information. More...

#include <gelSystem.h>

List of all members.

Static Public Member Functions

static PowerSource getPowerSource ()
 Gets the computer's power source.
static BatteryStatus getBatteryStatus ()
 Gets the status of the battery.
static int getBatteryLifePercent ()
 Gets the percentage of battery power remaining.

Detailed Description

Obtains electrical power information.


Member Function Documentation

static PowerSource gel::GelPowerInfo::getPowerSource ( ) [static]

Gets the computer's power source.

Returns:
The source providing power to the computer.
static BatteryStatus gel::GelPowerInfo::getBatteryStatus ( ) [static]

Gets the status of the battery.

Returns:
The status of the battery, if present.
static int gel::GelPowerInfo::getBatteryLifePercent ( ) [static]

Gets the percentage of battery power remaining.

This function will return 0 if no battery is present ( i.e. getPowerSource() == PowerAC ).

Returns:
The percentage of battery power remaining.

The documentation for this class was generated from the following file: