前のページ次のページ上に戻るホーム SophiaFramework 2.2
SFBDisplay
IDisplay インターフェイスのラッパークラスです。
#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;

継承図

SFBDisplay クラスの継承図

参照

BREW API IDisplay

メンバ

パブリック関数
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 デバイスビットマップに対して描画操作を行った後、 変更を表示ハードウェアに通知するために呼び出します。

SFBDisplay::Backlight
デバイスのバックライトを点灯/消灯します。
[ public ]
Void Backlight(
    Bool bOn   
);

参照

BREW API IDISPLAY_Backlight


SFBDisplay::BitBlt
ビットマップを表示領域に転送します。
[ 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             
);

参照

BREW API IDISPLAY_BitBlt | SFBDisplay::Update | AEERasterOp


SFBDisplay::ClearClipRect
クリッピング長方形を解除します。
[ public ]
Void ClearClipRect(Void);

参照

SFBDisplay::SetClipRect


SFBDisplay::ClearScreen
現在のクリッピング長方形をクリアするか、 またはクリッピング長方形が設定されていない場合は、 デバイス画面全体をクリアします。
[ public ]
Void ClearScreen(Void);

参照

BREW API IDISPLAY_ClearScreen


SFBDisplay::Clone
新しいIDisplayインスタンスを作成し、 IDisplay インスタンスの現在の設定をこの新しいインスタンスにコピーします。
[ public ]
SFCError Clone(
    SFUBrewPtr<SFBDisplay>::Ptr ppIDisplayNew   
);
[ public ]
SFUBrewPtr<SFBDisplay> Clone(Void);

参照

BREW API IDISPLAY_Clone


SFBDisplay::CreateDIBitmap
新しいデバイス独立ビットマップ(DIB)を作成します。
[ public ]
SFCError CreateDIBitmap(
    SFUBrewPtr<SFBDIB>::Ptr ppIDIB   
    UInt08 colorDepth                
    SInt16 w                         
    SInt16 h                         
);
[ public ]
SFUBrewPtr<SFBDIB> CreateDIBitmap(
    UInt08 colorDepth      
    ConstSFUSizeRef size   
);

参照

BREW API IDISPLAY_CreateDIBitmap | SFBBitmap | SFBDIB | IDIB_TO_IBITMAP


SFBDisplay::DetachDestination
IDisplay のレンダリング先ビットマップを解除し、 レンダリング先を画面ビットマップに設定します。
[ public ]
SFCError DetachDestination(Void);

参照

SFBDisplay::SetDestination


SFBDisplay::DrawFrame
システムのカラー解像度に基づいて複雑なフレームを描画します。
[ public ]
SIntN DrawFrame(
    SFURectPtr rect          
    AEEFrameType frameType   
    RGBVAL colorFill         
);
[ public ]
SIntN DrawFrame(
    SFURectPtr rect          
    AEEFrameType frameType   
    ConstSFUColorRef color   
);

参照

BREW API IDISPLAY_DrawFrame | AEEFrameType


SFBDisplay::DrawHLine
指定された開始点から、指定された長さを持つ水平線を描画します。
[ public ]
Void DrawHLine(
    SInt16 x     // 開始点の Y 座標
    SInt16 y     // 開始点の X 座標
    SInt16 len   // 描画する長さ
);
[ public ]
Void DrawHLine(
    ConstSFUPointRef point   // 開始点
    SInt16 len               // 描画する長さ
);

参照

BREW API IDISPLAY_DrawHLine | SFBDisplay::DrawVLine


SFBDisplay::DrawRect
長方形を描画します。
[ public ]
Void DrawRect(
    ConstSFURectRef rect   
    RGBVAL frameColor      
    RGBVAL fillColor       
    UInt32 flags           
);
[ public ]
Void DrawRect(
    ConstSFURectRef rect          
    ConstSFUColorRef frameColor   
    ConstSFUColorRef fillColor    
    UInt32 flags                  
);

参照

BREW API IDISPLAY_DrawRect | SFBDisplay::Update


SFBDisplay::DrawText
テキストを描画します。
[ 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   
);

参照

BREW API IDISPLAY_DrawText | SFBDisplay::Update | AEEFont


SFBDisplay::DrawVLine
指定された開始点から、指定された長さを持つ垂直線を描画します。
[ public ]
Void DrawVLine(
    SInt16 x     // 開始点の X 座標
    SInt16 y     // 開始点の Y 座標
    SInt16 len   // 描画する長さ
);
[ public ]
Void DrawVLine(
    ConstSFUPointRef point   // 開始点
    SInt16 len               // 描画する長さ
);

参照

BREW API IDISPLAY_DrawVLine | SFBDisplay::DrawHLine


SFBDisplay::EraseRect
指定された長方形を既定の背景色で塗りつぶします。
[ public ]
Void EraseRect(
    SFURectPtr pRect   
);

参照

BREW API IDISPLAY_EraseRect


SFBDisplay::EraseRgn
指定された座標で囲まれた領域を既定の背景色で塗りつぶします。
[ public ]
Void EraseRgn(
    SInt16 x    
    SInt16 y    
    UInt16 cx   
    UInt16 cy   
);
[ public ]
Void EraseRgn(
    ConstSFURectRef rect   
);

参照

BREW API IDISPLAY_EraseRgn


SFBDisplay::FillRect
長方形を描画して、指定された色で塗りつぶします。
[ public ]
Void FillRect(
    SFURectPtr pRect   
    RGBVAL rgb         
);
[ public ]
Void FillRect(
    SFURectPtr pRect         
    ConstSFUColorRef color   
);

参照

BREW API IDISPLAY_FillRect


SFBDisplay::FrameButton
システムのカラー解像度に基づいて3Dフレーム付きボタンを描画します。
[ public ]
Void FrameButton(
    SFURectPtr prc     
    Bool bPressed      
    RGBVAL colorFill   
);
[ public ]
Void FrameButton(
    SFURectPtr prc               
    Bool bPressed                
    ConstSFUColorRef colorFill   
);

参照

BREW API IDISPLAY_FrameButton


SFBDisplay::FrameRect
長方形の境界線を描画します。
[ public ]
Void FrameRect(
    SFURectPtr prc   
);

参照

BREW API IDISPLAY_FrameRect


SFBDisplay::FrameSolidRect
長方形の境界線を描画して、色で塗りつぶします。
[ public ]
Void FrameSolidRect(
    SFURectPtr prc   
);

参照

BREW API IDISPLAY_FrameSolidRect


SFBDisplay::GetClipRect
現在のクリッピング長方形を返します。
[ public ]
Void GetClipRect(
    SFURectPtr prc   
);
[ public ]
SFURect GetClipRect(Void);

参照

BREW API IDISPLAY_GetClipRect | SFBDisplay::SetClipRect


SFBDisplay::GetDestination
レンダリング先ビットマップを取得します。
[ public ]
SFUBrewPtr<SFBBitmap> GetDestination(Void);

参照

BREW API IDISPLAY_GetDestination | SFBBitmap | SFBDisplay::SetDestination


SFBDisplay::GetDeviceBitmap
デバイス(画面)ビットマップを取得します。
[ public ]
SFCError GetDeviceBitmap(
    SFUBrewPtr<SFBBitmap>::Ptr ppBitmap   
);
[ public ]
SFUBrewPtr<SFBBitmap> GetDeviceBitmap(Void);

参照

BREW API IDISPLAY_GetDeviceBitmap


SFBDisplay::GetFontMetrics
指定されたフォントの情報を取得します。
[ public ]
SIntN GetFontMetrics(
    AEEFont font                
    SIntNPtr pnAscent = NULL    
    SIntNPtr pnDescent = NULL   
);

参照

BREW API IDISPLAY_GetFontMetrics


SFBDisplay::GetSymbol
指定された記号に対応する文字を返します。
[ public ]
WChar GetSymbol(
    AEESymbol symbol   
    AEEFont font       
);

参照

BREW API IDISPLAY_GetSymbol


SFBDisplay::Instance
IDisplay インターフェイスのインスタンスを取得します。
[ public, static ]
SFUBrewPtr<SFBDisplay> Instance(Void);

SFBDisplay::InvertRect
指定された長方形内の色を反転させます。
[ public ]
Void InvertRect(
    SFURectPtr pRect   
);

参照

BREW API IDISPLAY_InvertRect


SFBDisplay::IsEnabled
描画対象のビットマップに対して、 IDisplay が有効状態であるか判定します。
[ public ]
Bool IsEnabled(Void);

解説

IDisplay が無効状態にある場合、 描画関数を呼び出しても効果がありません。 アプリケーションが IDIB を通じてデバイス ビットマップの ピクセル バッファに直接アクセスできる場合、 IDisplay が無効状態にある間、 ピクセル バッファを変更しないことが重要です。

バージョン

この関数は、BREW 2.1 以降でのみ使用可能です。

参照

BREW API IDISPLAY_IsEnabled | SFBDisplay::NotifyEnable


SFBDisplay::MakeDefault
デフォルトの IDisplay オブジェクトとして設定します。
[ public ]
Void MakeDefault(Void);

バージョン

この関数は、BREW 2.1 以降でのみ使用可能です。

参照

BREW API IDISPLAY_MakeDefault


SFBDisplay::MeasureText
指定されたテキスト文字列を指定されたフォントで描画した場合の幅を測定します。
[ public ]
SIntN MeasureText(
    AEEFont font           
    ConstWCharPtr pcText   
);
[ public ]
SIntN MeasureText(
    AEEFont font                    
    ConstSFUWideStringRef strText    
);

参照

BREW API IDISPLAY_MeasureText


SFBDisplay::MeasureTextEx
指定されたテキスト文字列を指定されたフォントで描画した場合の幅を測定します。 文字列の実際のピクセル幅が返されます。
[ 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                 
);

参照

BREW API IDISPLAY_MeasureTextEx


SFBDisplay::NotifyEnable
IDisplay の有効状態が変化したときに通知を受け取る関数を登録します。
[ public ]
SFCError NotifyEnable(
    AEECallback * callback   // コールバック構造体
);

バージョン

この関数は、BREW 2.1 以降でのみ使用可能です。

参照

BREW API IDISPLAY_NotifyEnable | SFBDisplay::IsEnabled


SFBDisplay::SetAnnunciators
指定されたアナンシエータをオンまたはオフにします。
[ public ]
Void SetAnnunciators(
    UInt16 wVal    
    UInt16 wMask   
);

解説

この関数が期待通りに動作するかは、特定のデバイスに完全に依存します。

参照

BREW API IDISPLAY_SetAnnunciators


SFBDisplay::SetClipRect
クリッピング長方形を設定します。
[ public ]
Void SetClipRect(
    ConstSFURectRef rcClip   
);

参照

BREW API IDISPLAY_SetClipRect | SFBDisplay::GetClipRect


SFBDisplay::SetColor
指定されたユーザー項目の色を設定します。
[ public ]
RGBVAL SetColor(
    AEEClrItem item   
    RGBVAL color      
);
[ public ]
RGBVAL SetColor(
    AEEClrItem item          
    ConstSFUColorRef color   
);

参照

BREW API IDISPLAY_SetColor | AEEClrItem


SFBDisplay::SetDestination
レンダリング先のビットマップを設定します。
[ public ]
SFCError SetDestination(
    const SFUBrewPtr<SFBBitmap>& pBitmap   
);

参照

BREW API IDISPLAY_SetDestination | SFBBitmap | SFBDisplay::GetDestination


SFBDisplay::SetFont
指定されたAEEFontの描画に使用するフォントを設定します。
[ public ]
SFBFontPtr SetFont(
    AEEFont font                          
    const SFUBrewPtr<SFBFont>& pNewFont   
);

参照

BREW API IDISPLAY_SetFont


SFBDisplay::Update
デバイスビットマップに対して描画操作を行った後、 変更を表示ハードウェアに通知するために呼び出します。
[ public ]
Void Update(Void);

参照

BREW API IDISPLAY_Update


SFBDisplay::UpdateEx
デバイスビットマップに対して描画操作を行った後、 変更を表示ハードウェアに通知するために呼び出します。
[ public ]
Void UpdateEx(
    Bool bDefer   
);

参照

BREW API IDISPLAY_UpdateEx