![]() ![]() ![]()
|
SophiaFramework 2.1 |
#include <SFBDisplay.hpp>
class SFBDisplay : public SFBBase;
typedef SFBDisplay& SFBDisplayRef; typedef SFBDisplay* SFBDisplayPtr; typedef SFBDisplay** SFBDisplayHandle; typedef const SFBDisplay ConstSFBDisplay; typedef const SFBDisplay& ConstSFBDisplayRef; typedef const SFBDisplay* ConstSFBDisplayPtr; typedef const SFBDisplay** ConstSFBDisplayHandle;
| パブリック関数 | ||
|---|---|---|
| public |
AddRef (SFBBase から継承) | インターフェイスの参照カウントをインクリメントします。 |
| public |
Backlight | デバイスのバックライトを点灯/消灯します。 |
| public |
BitBlt | ビットマップを表示領域に転送します。 |
| public |
ClearClipRect | クリッピング長方形を解除します。 |
| public |
ClearScreen | 現在のクリッピング長方形をクリアするか、 またはクリッピング長方形が設定されていない場合は、 デバイス画面全体をクリアします。 |
| public |
Clone | 新しいIDisplayインスタンスを作成し、 IDisplay インスタンスの現在の設定をこの新しいインスタンスにコピーします。 |
| public |
CreateDIBitmap | 新しいデバイス独立ビットマップ(DIB)を作成します。 |
| public |
DetachDestination | IDisplay のレンダリング先ビットマップを解除し、 レンダリング先を画面ビットマップに設定します。 |
| public |
DrawFrame | システムのカラー解像度に基づいて複雑なフレームを描画します。 |
| public |
DrawHLine | 指定された開始点から、指定された長さを持つ水平線を描画します。 |
| public |
DrawRect | 長方形を描画します。 |
| public |
DrawText | テキストを描画します。 |
| public |
DrawVLine | 指定された開始点から、指定された長さを持つ垂直線を描画します。 |
| public |
EraseRect | 指定された長方形を既定の背景色で塗りつぶします。 |
| public |
EraseRgn | 指定された座標で囲まれた領域を既定の背景色で塗りつぶします。 |
| public |
FillRect | 長方形を描画して、指定された色で塗りつぶします。 |
| public |
FrameButton | システムのカラー解像度に基づいて3Dフレーム付きボタンを描画します。 |
| public |
FrameRect | 長方形の境界線を描画します。 |
| public |
FrameSolidRect | 長方形の境界線を描画して、色で塗りつぶします。 |
| public |
GetClipRect | 現在のクリッピング長方形を返します。 |
| public |
GetDestination | レンダリング先ビットマップを取得します。 |
| public |
GetDeviceBitmap | デバイス(画面)ビットマップを取得します。 |
| public |
GetFontMetrics | 指定されたフォントの情報を取得します。 |
| public |
GetSymbol | 指定された記号に対応する文字を返します。 |
| public static |
Instance | IDisplay インターフェイスのインスタンスを取得します。 |
| public |
InvertRect | 指定された長方形内の色を反転させます。 |
| public |
IsEnabled | 描画対象のビットマップに対して、 IDisplay が有効状態であるか判定します。 |
| public |
MakeDefault | デフォルトの IDisplay オブジェクトとして設定します。 |
| public |
MeasureText | 指定されたテキスト文字列を指定されたフォントで描画した場合の幅を測定します。 |
| public |
MeasureTextEx | 指定されたテキスト文字列を指定されたフォントで描画した場合の幅を測定します。 文字列の実際のピクセル幅が返されます。 |
| public |
NotifyEnable | IDisplay の有効状態が変化したときに通知を受け取る関数を登録します。 |
| public |
Release (SFBBase から継承) | インターフェイスの参照カウントをデクリメントします。 |
| public |
SetAnnunciators | 指定されたアナンシエータをオンまたはオフにします。 |
| public |
SetClipRect | クリッピング長方形を設定します。 |
| public |
SetColor | 指定されたユーザー項目の色を設定します。 |
| public |
SetDestination | レンダリング先のビットマップを設定します。 |
| public |
SetFont | 指定されたAEEFontの描画に使用するフォントを設定します。 |
| public |
Update | デバイスビットマップに対して描画操作を行った後、 変更を表示ハードウェアに通知するために呼び出します。 |
| public |
UpdateEx | デバイスビットマップに対して描画操作を行った後、 変更を表示ハードウェアに通知するために呼び出します。 |
[ public ] Void BitBlt( SIntN xDest SIntN yDest SIntN cxDest SIntN cyDest ConstVoidPtr pbmSource SIntN xSrc SIntN ySrc AEERasterOp rop = AEE_RO_COPY );
[ public ] Void BitBlt( ConstSFURectRef rcDest ConstVoidPtr pbmSource ConstSFUPointRef ptSrc AEERasterOp rop = AEE_RO_COPY );
[ public ] Void BitBlt( ConstSFURectRef rcDst const SFUBrewPtr<SFBBitmap> & pbmSource ConstSFUPointRef ptSrc AEERasterOp rop = AEE_RO_COPY );
[ public ] Void ClearClipRect(Void);
[ public ] Void ClearScreen(Void);
[ public ] SFCError Clone( SFUBrewPtr<SFBDisplay>::Ptr ppIDisplayNew );
[ public ] SFUBrewPtr<SFBDisplay> Clone(Void);
[ public ] SFCError CreateDIBitmap( SFUBrewPtr<SFBDIB>::Ptr ppIDIB UInt08 colorDepth SInt16 w SInt16 h );
[ public ] SFUBrewPtr<SFBDIB> CreateDIBitmap( UInt08 colorDepth ConstSFUSizeRef size );
[ public ] SFCError DetachDestination(Void);
[ public ] SIntN DrawFrame( SFURectPtr rect AEEFrameType frameType RGBVAL colorFill );
[ public ] SIntN DrawFrame( SFURectPtr rect AEEFrameType frameType ConstSFUColorRef color );
[ public ] Void DrawHLine( SInt16 x // 開始点の Y 座標 SInt16 y // 開始点の X 座標 SInt16 len // 描画する長さ );
[ public ] Void DrawHLine( ConstSFUPointRef point // 開始点 SInt16 len // 描画する長さ );
[ public ] Void DrawRect( ConstSFURectRef rect RGBVAL frameColor RGBVAL fillColor UInt32 flags );
[ public ] Void DrawRect( ConstSFURectRef rect ConstSFUColorRef frameColor ConstSFUColorRef fillColor UInt32 flags );
[ public ] SFCError DrawText( AEEFont font ConstWCharPtr pcText SIntN nChars SInt16 x SInt16 y ConstSFURectPtr prcBackground UInt32 flags = IDF_ALIGN_NONE );
[ public ] SFCError DrawText( AEEFont font ConstWCharPtr pcText SIntN nChars SInt16 x SInt16 y ConstSFURectRef rcBackground UInt32 flags = IDF_ALIGN_NONE );
[ public ] SFCError DrawText( AEEFont font ConstSFUWideStringRef strText SIntN ConstSFUPointPtr pPoint ConstSFURectPtr pRect UInt32 flag = IDF_ALIGN_NONE );
[ public ] SFCError DrawText( AEEFont font ConstSFUWideStringRef strText SIntN nChars ConstSFUPointRef point ConstSFURectRef rcBackground UInt32 flags = IDF_ALIGN_NONE );
[ public ] SFCError DrawText( AEEFont font ConstSFUWideStringRef strText SIntN nChars ConstSFUPointRef point UInt32 flags = IDF_ALIGN_NONE );
[ public ] SFCError DrawText( AEEFont font ConstSFUWideStringRef strText SIntN nChars ConstSFURectRef rcBackground UInt32 flags = IDF_ALIGN_NONE );
[ public ] Void DrawVLine( SInt16 x // 開始点の X 座標 SInt16 y // 開始点の Y 座標 SInt16 len // 描画する長さ );
[ public ] Void DrawVLine( ConstSFUPointRef point // 開始点 SInt16 len // 描画する長さ );
[ public ] Void EraseRect( SFURectPtr pRect );
[ public ] Void EraseRgn( SInt16 x SInt16 y UInt16 cx UInt16 cy );
[ public ] Void EraseRgn( ConstSFURectRef rect );
[ public ] Void FillRect( SFURectPtr pRect RGBVAL rgb );
[ public ] Void FillRect( SFURectPtr pRect ConstSFUColorRef color );
[ public ] Void FrameButton( SFURectPtr prc Bool bPressed RGBVAL colorFill );
[ public ] Void FrameButton( SFURectPtr prc Bool bPressed ConstSFUColorRef colorFill );
[ public ] Void FrameRect( SFURectPtr prc );
[ public ] Void FrameSolidRect( SFURectPtr prc );
[ public ] Void GetClipRect( SFURectPtr prc );
[ public ] SFURect GetClipRect(Void);
[ public ] SFUBrewPtr<SFBBitmap> GetDestination(Void);
[ public ] SFCError GetDeviceBitmap( SFUBrewPtr<SFBBitmap>::Ptr ppBitmap );
[ public ] SFUBrewPtr<SFBBitmap> GetDeviceBitmap(Void);
[ public, static ] SFUBrewPtr<SFBDisplay> Instance(Void);
[ public ] Void InvertRect( SFURectPtr pRect );
[ public ] Bool IsEnabled(Void);
IDisplay が無効状態にある場合、 描画関数を呼び出しても効果がありません。 アプリケーションが IDIB を通じてデバイス ビットマップの ピクセル バッファに直接アクセスできる場合、 IDisplay が無効状態にある間、 ピクセル バッファを変更しないことが重要です。
この関数は、BREW 2.1 以降でのみ使用可能です。
BREW API IDISPLAY_IsEnabled | SFBDisplay::NotifyEnable
[ public ] Void MakeDefault(Void);
この関数は、BREW 2.1 以降でのみ使用可能です。
BREW API IDISPLAY_MakeDefault
[ public ] SIntN MeasureText( AEEFont font ConstWCharPtr pcText );
[ public ] SIntN MeasureText( AEEFont font ConstSFUWideStringRef strText );
[ public ] SIntN MeasureTextEx( AEEFont font ConstWCharPtr pcText SIntN nChars SIntN nMaxWidth SIntNPtr pnFits );
[ public ] SIntN MeasureTextEx( AEEFont font ConstSFUWideStringRef strText SIntN nChars SIntN nMaxWidth SIntNPtr pnFits );
[ public ] SFCError NotifyEnable( AEECallback * callback // コールバック構造体 );
この関数は、BREW 2.1 以降でのみ使用可能です。
BREW API IDISPLAY_NotifyEnable | SFBDisplay::IsEnabled
この関数が期待通りに動作するかは、特定のデバイスに完全に依存します。
[ public ] Void SetClipRect( ConstSFURectRef rcClip );
[ public ] RGBVAL SetColor( AEEClrItem item RGBVAL color );
[ public ] RGBVAL SetColor( AEEClrItem item ConstSFUColorRef color );
[ public ] SFCError SetDestination( const SFUBrewPtr<SFBBitmap>& pBitmap );
[ public ] SFBFontPtr SetFont( AEEFont font const SFUBrewPtr<SFBFont>& pNewFont );
[ public ] Void Update(Void);
| Copyright(C) 2003 Sophia Cradle Inc., All Rights Reserved. |
![]() ![]() ![]()
|