Platform Struct Reference#include <platform.h>
|
Static Public Member Functions |
static void | sleep (U32 ms) |
static void | init () |
static void | initConsole () |
static void | shutdown () |
static void | process () |
static bool | doCDCheck () |
static void | initWindow (const Point2I &initialSize, const char *name) |
static void | setWindowTitle (const char *title) |
static void | enableKeyboardTranslation (void) |
static void | disableKeyboardTranslation (void) |
static void | setWindowLocked (bool locked) |
static void | minimizeWindow () |
static bool | excludeOtherInstances (const char *string) |
static bool | checkOtherInstances (const char *string) |
static void | restartInstance () |
static const Point2I & | getWindowSize () |
static void | setWindowSize (U32 newWidth, U32 newHeight) |
static float | getRandom () |
static void | AlertOK (const char *windowTitle, const char *message) |
static bool | AlertOKCancel (const char *windowTitle, const char *message) |
static bool | AlertRetry (const char *windowTitle, const char *message) |
static void | getLocalTime (LocalTime &) |
static bool | cdFileExists (const char *filePath, const char *volumeName, S32 serialNum) |
static void | fileToLocalTime (const FileTime &ft, LocalTime *lt) |
static S32 | compareFileTimes (const FileTime &a, const FileTime &b) |
static void | postQuitMessage (const U32 in_quitVal) |
static void | debugBreak () |
static void | forceShutdown (S32 returnValue) |
static U32 | getTime () |
static U32 | getVirtualMilliseconds () |
static U32 | getRealMilliseconds () |
static void | advanceTime (U32 delta) |
static S32 | getBackgroundSleepTime () |
static StringTableEntry | getWorkingDirectory () |
static StringTableEntry | getExecutableName () |
static bool | dumpPath (const char *in_pBasePath, Vector< FileInfo > &out_rFileVector, S32 recurseDepth=-1) |
static bool | dumpDirectories (const char *path, Vector< StringTableEntry > &directoryVector, S32 depth=0, bool noBasePath=false) |
static bool | hasSubDirectory (const char *pPath) |
static bool | getFileTimes (const char *filePath, FileTime *createTime, FileTime *modifyTime) |
static bool | isFile (const char *pFilePath) |
static S32 | getFileSize (const char *pFilePath) |
static bool | isDirectory (const char *pDirPath) |
static bool | isSubDirectory (const char *pParent, const char *pDir) |
static void | addExcludedDirectory (const char *pDir) |
static void | clearExcludedDirectories () |
static bool | isExcludedDirectory (const char *pDir) |
static void | getVolumeNamesList (Vector< const char * > &out_rNameVector, bool bOnlyFixedDrives=false) |
static void | getVolumeInformationList (Vector< VolumeInformation > &out_rVolumeInfoVector, bool bOnlyFixedDrives=false) |
static bool | createPath (const char *path) |
static bool | openWebBrowser (const char *webAddress) |
static const char * | getLoginPassword () |
static bool | setLoginPassword (const char *password) |
static const char * | getClipboard () |
static bool | setClipboard (const char *text) |
static bool | stringToFileTime (const char *string, FileTime *time) |
static bool | fileTimeToString (FileTime *time, char *string, U32 strLen) |
Data Fields |
Platform::VolumeInformation * | PVolumeInformation |
Static Public Attributes |
static struct Platform::SystemInfo_struct | SystemInfo |
Data Structures |
struct | FileInfo |
struct | LocalTime |
struct | SystemInfo_struct |
struct | VolumeInformation |
Member Function Documentation
static void Platform::sleep |
( |
U32 |
ms |
) |
[static] |
static void Platform::init |
( |
|
) |
[static] |
static void Platform::initConsole |
( |
|
) |
[static] |
static void Platform::shutdown |
( |
|
) |
[static] |
static void Platform::process |
( |
|
) |
[static] |
static bool Platform::doCDCheck |
( |
|
) |
[static] |
static void Platform::initWindow |
( |
const Point2I & |
initialSize, |
|
|
const char * |
name | |
|
) |
| | [static] |
static void Platform::setWindowTitle |
( |
const char * |
title |
) |
[static] |
static void Platform::enableKeyboardTranslation |
( |
void |
|
) |
[static] |
static void Platform::disableKeyboardTranslation |
( |
void |
|
) |
[static] |
static void Platform::setWindowLocked |
( |
bool |
locked |
) |
[static] |
static void Platform::minimizeWindow |
( |
|
) |
[static] |
static bool Platform::excludeOtherInstances |
( |
const char * |
string |
) |
[static] |
static bool Platform::checkOtherInstances |
( |
const char * |
string |
) |
[static] |
static void Platform::restartInstance |
( |
|
) |
[static] |
static const Point2I& Platform::getWindowSize |
( |
|
) |
[static] |
static void Platform::setWindowSize |
( |
U32 |
newWidth, |
|
|
U32 |
newHeight | |
|
) |
| | [static] |
static float Platform::getRandom |
( |
|
) |
[static] |
static void Platform::AlertOK |
( |
const char * |
windowTitle, |
|
|
const char * |
message | |
|
) |
| | [static] |
static bool Platform::AlertOKCancel |
( |
const char * |
windowTitle, |
|
|
const char * |
message | |
|
) |
| | [static] |
static bool Platform::AlertRetry |
( |
const char * |
windowTitle, |
|
|
const char * |
message | |
|
) |
| | [static] |
static bool Platform::cdFileExists |
( |
const char * |
filePath, |
|
|
const char * |
volumeName, |
|
|
S32 |
serialNum | |
|
) |
| | [static] |
static void Platform::postQuitMessage |
( |
const U32 |
in_quitVal |
) |
[static] |
static void Platform::debugBreak |
( |
|
) |
[static] |
static void Platform::forceShutdown |
( |
S32 |
returnValue |
) |
[static] |
static U32 Platform::getTime |
( |
|
) |
[static] |
static U32 Platform::getVirtualMilliseconds |
( |
|
) |
[static] |
static U32 Platform::getRealMilliseconds |
( |
|
) |
[static] |
static void Platform::advanceTime |
( |
U32 |
delta |
) |
[static] |
static S32 Platform::getBackgroundSleepTime |
( |
|
) |
[static] |
static bool Platform::dumpPath |
( |
const char * |
in_pBasePath, |
|
|
Vector< FileInfo > & |
out_rFileVector, |
|
|
S32 |
recurseDepth = -1 | |
|
) |
| | [static] |
static bool Platform::dumpDirectories |
( |
const char * |
path, |
|
|
Vector< StringTableEntry > & |
directoryVector, |
|
|
S32 |
depth = 0 , |
|
|
bool |
noBasePath = false | |
|
) |
| | [static] |
static bool Platform::hasSubDirectory |
( |
const char * |
pPath |
) |
[static] |
static bool Platform::getFileTimes |
( |
const char * |
filePath, |
|
|
FileTime * |
createTime, |
|
|
FileTime * |
modifyTime | |
|
) |
| | [static] |
static bool Platform::isFile |
( |
const char * |
pFilePath |
) |
[static] |
static S32 Platform::getFileSize |
( |
const char * |
pFilePath |
) |
[static] |
static bool Platform::isDirectory |
( |
const char * |
pDirPath |
) |
[static] |
static bool Platform::isSubDirectory |
( |
const char * |
pParent, |
|
|
const char * |
pDir | |
|
) |
| | [static] |
static void Platform::addExcludedDirectory |
( |
const char * |
pDir |
) |
[static] |
static void Platform::clearExcludedDirectories |
( |
|
) |
[static] |
static bool Platform::isExcludedDirectory |
( |
const char * |
pDir |
) |
[static] |
static void Platform::getVolumeNamesList |
( |
Vector< const char * > & |
out_rNameVector, |
|
|
bool |
bOnlyFixedDrives = false | |
|
) |
| | [static] |
static bool Platform::createPath |
( |
const char * |
path |
) |
[static] |
static bool Platform::openWebBrowser |
( |
const char * |
webAddress |
) |
[static] |
static const char* Platform::getLoginPassword |
( |
|
) |
[static] |
static bool Platform::setLoginPassword |
( |
const char * |
password |
) |
[static] |
static const char* Platform::getClipboard |
( |
|
) |
[static] |
static bool Platform::setClipboard |
( |
const char * |
text |
) |
[static] |
static bool Platform::stringToFileTime |
( |
const char * |
string, |
|
|
FileTime * |
time | |
|
) |
| | [static] |
static bool Platform::fileTimeToString |
( |
FileTime * |
time, |
|
|
char * |
string, |
|
|
U32 |
strLen | |
|
) |
| | [static] |
Field Documentation
|