![]() ![]() ![]()
|
BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework UNIVERSE 5.0 |
IShell インターフェースに問い合わせなくても、SFXDevice インスタンスを使ってデバイス情報を簡単に取得できます。
SFXDevice device; UInt16 n1 = device.GetScreenWidth(); // 画面の幅をピクセル数で取得する UInt16 n2 = device.GetScreenHeight(); // 画面の高さをピクセル数で取得する SFXSize size1 = device.GetScreenSize(); // 画面の幅と高さをピクセル数で取得する UInt16 n3 = device.GetAlternateScreenWidth(); // 第 2 画面の幅をピクセル数で取得する UInt16 n4 = device.GetAlternateScreenHeight(); // 第 2 画面の高さをピクセル数で取得する SFXSize size2 = device.GetAlternateScreenSize();// 第 2 画面の幅と高さをピクセル数で取得する UInt16 n5 = device.GetScrollBarWidth(); // 標準スクロールバーの幅をピクセル数で取得する UInt16 n6 = device.GetEncoding(); // 文字セットのエンコード方式を取得する UInt16 n7 = device.GetMenuTextScrollingTime(); // AEEDevice構造体の、wMenuTextScroll メンバの値を取得する UInt16 n8 = device.GetColorDepth(); // 画面の色深度を取得する UInt16 n9 = device.GetMenuImageDelay(); // AEEDevice 構造体の、wMenuImageDelayメンバの値を取得する UInt16 n10 = device.GetRAMSize(); // 搭載されている RAM の容量を取得する 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(); // MIDI ファイル形式をサポートしているか判定する Bool b8 = device.SupportsCMX(); // CMX オーディオをサポートしているか判定する Bool b9 = device.SupportsPen(); // ペンデバイスをサポートしているか判定する UInt16 n11 = device.GetPromptProperties(); // デフォルトプロンプトのプロパティを取得する UInt16 n12 = device.GetCloseAppKey(); // 現在アクティブなアプレットを閉じるキーを取得する UInt16 n13 = device.GetCloseAllAppsKey(); // 全てのアプレットを閉じるキーを取得する UInt16 n14 = device.GetLanguage(); // ISO で定義された言語 ID を返する UInt16 n15 = device.GetNetLingerTime(); // PPP 待機時間をミリ秒単位で取得する UInt16 n16 = device.GetSleepDeferTime(); // デバイスがスリープモードになるまでの時間をミリ秒単位で取得する UInt16 n17 = device.GetMaximumPathLength(); // デバイスでサポートされている、( パス名を含む )ファイル名の最大長を取得する UInt16 n18 = device.GetPlatformID(); // デバイスプラットフォームを一意に識別するための ID を取得する
| コンストラクタ/デストラクタ |
|---|
|
SFXDevice( Void ) SFXDevice クラスのコンストラクタです。
|
| パブリック関数 | |
|---|---|
| UInt16 |
GetAlternateScreenHeight( Void ) 第 2 画面の高さをピクセル数で取得します。
|
| SFXSize |
GetAlternateScreenSize( Void ) 第 2 画面の幅と高さをピクセル数で取得します。
|
| UInt16 |
GetAlternateScreenWidth( Void ) 第 2 画面の幅をピクセル数で取得します。
|
| UInt16 |
GetCloseAllAppsKey( Void ) 全てのアプレットを閉じるキーを取得します。
|
| UInt16 |
GetCloseAppKey( Void ) 現在アクティブなアプレットを閉じるキーを取得します。
|
| UInt16 |
GetColorDepth( Void ) 画面の色深度を取得します。
|
| UInt16 |
GetEncoding( Void ) 文字セットのエンコード方式を取得します。
|
| UInt32 |
GetLanguage( Void ) ISO で定義された言語 ID を取得します。
|
| UInt16 |
GetMaximumPathLength( Void ) デバイスでサポートされている、(パス名を含む)ファイル名の最大長を取得します。
|
| UInt32 |
GetMenuImageDelay( Void ) AEEDevice 構造体の、wMenuImageDelayメンバの値を取得します。
|
| UInt16 |
GetMenuTextScrollingTime( Void ) AEEDevice構造体の、wMenuTextScroll メンバの値を取得します。
|
| UInt32 |
GetNetLingerTime( Void ) PPP 待機時間をミリ秒単位で取得します。
|
| UInt32 |
GetPlatformID( Void ) デバイスプラットフォームを一意に識別するための ID を取得します。
|
| UInt32 |
GetPromptProperties( Void ) デフォルトプロンプトのプロパティを取得します。
|
| UInt32 |
GetRAMSize( Void ) 搭載されている RAM の容量を取得します。
|
| UInt16 |
GetScreenHeight( Void ) 画面の高さをピクセル数で取得します。
|
| SFXSize |
GetScreenSize( Void ) 画面の幅と高さをピクセル数で取得します。
|
| UInt16 |
GetScreenWidth( Void ) 画面の幅をピクセル数で取得します。
|
| UInt16 |
GetScrollBarWidth( Void ) 標準スクロールバーの幅をピクセル数で取得します。
|
| UInt32 |
GetSleepDeferTime( Void ) デバイスがスリープモードになるまでの時間をミリ秒単位で取得します。
|
| Bool |
HasAlternateDisplay( Void ) デバイスが代替ディスプレイ (ページャ) を持っているか判定します。
|
| Bool |
HasExternalSpeaker( Void ) 外部スピーカーが搭載されているか判定します。
|
| Bool |
HasFlip( Void ) デバイスが折り畳み式携帯電話であるか判定します。
|
| Bool |
HasVibrator( Void ) バイブレータが搭載されているか判定します。
|
| Bool |
SupportsCMX( Void ) CMX オーディオをサポートしているか判定します。
|
| Bool |
SupportsMIDI( Void ) MIDI ファイル形式をサポートしているか判定します。
|
| Bool |
SupportsPen( Void ) ペンデバイスをサポートしているか判定します。
|
| Bool |
SupportsPositionLocation( Void ) ポジションロケーションをサポートしているか判定します。
|
| Bool |
SupportsVoiceRecognition( Void ) 音声認識をサポートしているか判定します。
|
| static SFXDeviceConstRef |
ZeroInstance( Void ) 0 を表すインスタンスを取得します。
|
[ public, explicit ] SFXDevice(Void);
BREW シェルに問い合わせてデバイス情報を取得するための、SFXDevice クラスのインスタンスを生成します。 内部ではシェル インスタンスを取得した後、デバイス情報を取得しています。
デバイスの画面サイズを取得します。
SFXDevice devinfo; SFXSize devSize = devinfo.GetScreenSize();
[ public, const ] UInt16 GetAlternateScreenHeight(Void);
[ public, const ] SFXSize GetAlternateScreenSize(Void);
[ public, const ] UInt16 GetAlternateScreenWidth(Void);
[ public, const ] UInt16 GetCloseAllAppsKey(Void);
デフォルトのキーは AVK_END です。
[ public, const ] UInt16 GetCloseAppKey(Void);
[ public, const ] UInt16 GetColorDepth(Void);
例えば、モノクロであれば 1 を、グレースケールであれば 2 を、 256 色であれば 8 を返します。
[ public, const ] UInt16 GetEncoding(Void);
次の値を返します。
AEE_ENC_UNICODE AEE_ENC_UNICODE2 AEE_ENC_KSC5601 AEE_ENC_EUC_KR AEE_ENC_KSC5601 AEE_ENC_S_JIS AEE_ENC_EUC_CN OEM_RAW_TEXT AEE_ENC_UTF8 AEE_ENC_ISOLATIN1
これらの値は BREW SDK の AEEShell.h 内で定義されています。
[ public, const ] UInt32 GetLanguage(Void);
[ public, const ] UInt16 GetMaximumPathLength(Void);
[ public, const ] UInt32 GetMenuImageDelay(Void);
[ public, const ] UInt16 GetMenuTextScrollingTime(Void);
[ public, const ] UInt32 GetNetLingerTime(Void);
[ public, const ] UInt32 GetPlatformID(Void);
[ public, const ] UInt32 GetPromptProperties(Void);
[ public, const ] UInt32 GetRAMSize(Void);
[ public, const ] UInt16 GetScreenHeight(Void);
[ public, const ] SFXSize GetScreenSize(Void);
[ public, const ] UInt16 GetScreenWidth(Void);
[ public, const ] UInt16 GetScrollBarWidth(Void);
[ public, const ] UInt32 GetSleepDeferTime(Void);
[ public, const ] Bool HasAlternateDisplay(Void);
[ public, const ] Bool HasExternalSpeaker(Void);
[ public, const ] Bool HasFlip(Void);
[ public, const ] Bool HasVibrator(Void);
[ public, const ] Bool SupportsCMX(Void);
[ public, const ] Bool SupportsMIDI(Void);
[ public, const ] Bool upportsPen(Void);
[ public, const ] Bool SupportsPositionLocation(Void);
[ public, const ] Bool SupportsVoiceRecognition(Void);
[ public, static ] SFXDeviceConstRef ZeroInstance(Void);
内部で管理している AEEDeviceInfo に 0 を設定したインスタンスを返します。
|
Copyright (C) 2002 - 2008 Sophia Cradle Incorporated All Rights Reserved. |
![]() ![]() ![]()
|