前のページ次のページ上に戻るホーム BREW C++ ライブラリ & GUI フレームワーク : SophiaFramework 3.0

15.9. デバイス情報クラス

SFXDevice クラスは携帯端末の情報や BREW 環境の情報を取得するためのクラスです。

SFXDevice device;

UInt16 n1 = device.GetScreenWidth();
UInt16 n2 = device.GetScreenHeight();
SFXSize size1 = device.GetScreenSize();
UInt16 n3 = device.GetAlternateScreenWidth();
UInt16 n4 = device.GetAlternateScreenHeight();
SFXSize size2 = device.GetAlternateScreenSize();
UInt16 n5 = device.GetScrollBarWidth();
UInt16 n6 = device.GetEncoding();
UInt16 n7 = device.GetMenuTextScrollingTime();
UInt16 n8 = device.GetColorDepth();
UInt16 n9 = device.GetMenuImageDelay();
UInt16 n10 = device.GetRAMSize();
Bool b1 = device.HasAlternateDisplay();
Bool b2 = device.HasFlip();
Bool b3 = device.HasVibrator();
Bool b4 = device.HasExternalSpeaker();
Bool b5 = device.SupportsVoiceRecognition();
Bool b6 = device.SupportsPositionLocation();
Bool b7 = device.SupportsMIDI();
Bool b8 = device.SupportsCMX();
Bool b9 = device.SupportsPen();
UInt16 n11 = device.GetPromptProperties();
UInt16 n12 = device.GetCloseAppKey();
UInt16 n13 = device.GetCloseAllAppsKey();
UInt16 n14 = device.GetLanguage();
UInt16 n15 = device.GetNetLingerTime();
UInt16 n16 = device.GetSleepDeferTime();
UInt16 n17 = device.GetMaximumPathLength();
UInt16 n18 = device.GetPlatformID();