前のページ次のページ上に戻るホーム BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework UNIVERSE 5.0
SFXGraphics
グラフィックを描画するためのクラスです。
#include <SFXGraphics.h.hpp>
class SFXGraphics;
SFMTYPEDEFCLASS(SFXGraphics)

協調図

SFXGraphics クラスの協調図

解説

SFXGraphics クラスは SFBGraphics と SFBDisplay クラスを抽象化したクラスであり、 グラフィックを描画するために使います。

原点座標の移動やクリッピング、色設定などが簡単に設定できます。 SFXGraphics クラスを使うには、最初に SFXGraphics::GetInstance 関数 を使って SFXGraphics インスタンスを生成します。

[Note] 注意
SFXGraphics クラスのインスタンスを破棄する必要はありません。
[Caution] 注意

SFBDisplay を直接使う場合は設定した内容が上書きされる可能性があります。

参照

SFBGraphics | SFBDisplay

メンバ

パブリック関数
Void BitBlt( SFXRectangleConstRef rectangle , SFBBitmapSmpConstRef bitmap , SFXGridConstRef grid , AEERasterOp raster = AEE_RO_COPY )
BitBlt( SFXRectangleConstRef rectangle , SFBBitmapSmpConstRef bitmap , AEERasterOp raster = AEE_RO_COPY )
ビットマップを長方形領域に転送します。
Void ClearRectangle( SFXRectangleConstRef rectangle )
ClearRectangle( SFXRectangleConstRef rectangle , SFXRGBColorConstRef color )
指定した長方形を背景色で塗りつぶしてクリアします。
SFBBitmapSmp CloneBitmap( SFXRectangleConstRef param )
現在描画対象となっているビットマップの内容から新しいビットマップを作成します。
static
SFBBitmapSmp
CreateBitmap( SFXSizeConstRef param )
デバイスビットマップと互換性のあるビットマップを作成します。
Void DrawArc( SFXArcConstRef arc )
DrawArc( SFXArcConstRef arc , SFXRGBColorConstRef color )
円弧を描画します。
Void DrawBevel( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color , Bool left , Bool top , Bool right , Bool bottom )
べベルの枠を描画します。
Void DrawBevelBottom( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺、右辺、下辺を描画します。
Void DrawBevelCenter( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの上辺と下辺を描画します。
Void DrawBevelHorizontal( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
[非推奨 API ( 廃止予定 API )]べベルの上辺と下辺を描画します。
Void DrawBevelLeft( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺、上辺、下辺を描画します。
Void DrawBevelMiddle( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺と右辺を描画します。
Void DrawBevelRectangle( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの枠をすべて描画します。
Void DrawBevelRight( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの上辺、右辺、下辺を描画します。
Void DrawBevelTop( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺、上辺、右辺を描画します。
Void DrawBevelVertical( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
[非推奨 API ( 廃止予定 API )]べベルの左辺と右辺を描画します。
SFCError DrawBitmap( SFBBitmapSmpConstRef bitmap , SFXRectangleConstRef rectangle , AEERasterOp raster = AEE_RO_COPY )
DrawBitmap( SFBBitmapSmpConstRef bitmap , SFXGridConstRef grid , AEERasterOp raster = AEE_RO_COPY )
ビットマップを描画します。
Void DrawCircle( SFXCircleConstRef circle )
DrawCircle( SFXCircleConstRef circle , SFXRGBColorConstRef color )
円を描画します。
Void DrawEllipse( SFXEllipseConstRef ellipse )
DrawEllipse( SFXEllipseConstRef ellipse , SFXRGBColorConstRef color )
楕円を描画します。
Void DrawEllipticalArc( SFXRectangleConstRef rectangle , SInt16 anchor , SInt16 degree )
DrawEllipticalArc( SFXRectangleConstRef rectangle , SInt16 anchor , SInt16 degree , SFXRGBColorConstRef color )
楕円弧を描画します。
Void DrawFrame( SFXRectangleConstRef rectangle , SFXFrameColorConstRef color )
長方形の枠を描画します。
SFCError DrawImage( SFBImageSmpConstRef image , SFXGridConstRef grid )
DrawImage( SFBImageSmpConstRef image , SFXGridConstRef grid , AEERasterOp raster )
イメージを描画します。
Void DrawLine( SFXLineConstRef line )
DrawLine( SFXLineConstRef line , SFXRGBColorConstRef color )
線を描画します。
Void DrawMultipleTextCenter( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid )
DrawMultipleTextCenter( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SFXRGBColorConstRef color , SInt16 wrap )
DrawMultipleTextCenter( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SInt16 wrap )
DrawMultipleTextCenter( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SFXRGBColorConstRef color )
複数行文字列を中央揃えで描画します。
Void DrawMultipleTextLeft( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid )
DrawMultipleTextLeft( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SFXRGBColorConstRef color , SInt16 wrap )
DrawMultipleTextLeft( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SInt16 wrap )
DrawMultipleTextLeft( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SFXRGBColorConstRef color )
複数行文字列を左揃えで描画します。
Void DrawMultipleTextRight( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid )
DrawMultipleTextRight( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SFXRGBColorConstRef color , SInt16 wrap )
DrawMultipleTextRight( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SInt16 wrap )
DrawMultipleTextRight( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXGridConstRef grid , SFXRGBColorConstRef color )
複数行文字列を右揃えで描画します。
Void DrawPie( SFXPieConstRef pie )
DrawPie( SFXPieConstRef pie , SFXRGBColorConstRef color )
扇形を描画します。
Void DrawPixel( SFXPixelConstRef pixel )
DrawPixel( SFXPixelConstRef pixel , SFXRGBColorConstRef color )
点を描画します。
Void DrawPolygon( SFXPolygonConstRef polygon )
DrawPolygon( SFXPolygonConstRef polygon , SFXRGBColorConstRef color )
多角形を描画します。
Void DrawPolyline( SFXPolylineConstRef polyline )
DrawPolyline( SFXPolylineConstRef polyline , SFXRGBColorConstRef color )
多角線を描画します。
Void DrawRectangle( SFXRectangleConstRef rectangle )
DrawRectangle( SFXRectangleConstRef rectangle , SFXRGBColorConstRef color )
長方形を描画します。
Void DrawRoundRectangle( SFXRectangleConstRef rectangle , SFXSizeConstRef size )
DrawRoundRectangle( SFXRectangleConstRef rectangle , SFXSizeConstRef size , SFXRGBColorConstRef color )
角の丸い長方形を描画します。
Void DrawSingleText( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SInt32 length , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SInt32 length , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SFXGridConstRef grid , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SFXGridConstRef grid , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SFXGridConstRef grid , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SFXGridConstRef grid , UInt32 align = IDF_ALIGN_NONE )
DrawSingleText( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
単一行文字列を描画します。
Void DrawString( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE , SInt16 margin = 0 )
DrawString( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE , SInt16 margin = 0 )
[非推奨 API ( 廃止予定 API )]文字列を自動折り返しで指定した長方形の中に描画します。
Void DrawText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SFXGridConstRef grid , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SFXGridConstRef grid , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SFXGridConstRef grid , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SFXGridConstRef grid , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SInt32 length , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SInt32 length , SFXRectangleConstRef rectangle , SFXRGBColorConstRef color , UInt32 align = IDF_ALIGN_NONE )
DrawText( SFXWideStringConstRef string , SInt32 length , SFXGridConstRef grid , SFXRectangleConstRef rectangle , UInt32 align = IDF_ALIGN_NONE )
[非推奨 API ( 廃止予定 API )]文字列を描画します。
Void DrawTriangle( SFXTriangleConstRef triangle )
DrawTriangle( SFXTriangleConstRef triangle , SFXRGBColorConstRef color )
三角形を描画します。
Void FillBevel( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color , Bool left , Bool top , Bool right , Bool bottom )
べベルの枠を描画し、塗りつぶします。
Void FillBevelBottom( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺、右辺、下辺を描画し、塗りつぶします。
Void FillBevelCenter( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの上辺と下辺を描画し、塗りつぶします
Void FillBevelHorizontal( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
[非推奨 API ( 廃止予定 API )]べベルの上辺と下辺を描画し、塗りつぶします
Void FillBevelLeft( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺、上辺、下辺を描画し、塗りつぶします。
Void FillBevelMiddle( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺と右辺を描画し、塗りつぶします。
Void FillBevelRectangle( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの枠をすべて描画し、塗りつぶします。
Void FillBevelRight( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの上辺、右辺、下辺を描画し、塗りつぶします。
Void FillBevelTop( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
べベルの左辺、上辺、右辺を描画し、塗りつぶします。
Void FillBevelVertical( SFXRectangleConstRef rectangle , SFXBevelColorConstRef color )
[非推奨 API ( 廃止予定 API )]べベルの左辺と右辺を描画し、塗りつぶします。
Void FillCircle( SFXCircleConstRef circle , SFXRGBColorConstRef color )
円を描画し、塗りつぶします。
Void FillEllipse( SFXEllipseConstRef ellipse , SFXRGBColorConstRef color )
楕円を描画し、塗りつぶします。
Void FillEllipticalArc( SFXRectangleConstRef rectangle , SInt16 anchor , SInt16 degree , SFXRGBColorConstRef color )
楕円弧を描画し、塗りつぶします。
Void FillPie( SFXPieConstRef pie , SFXRGBColorConstRef color )
扇形を描画し、塗りつぶします。
Void FillPolygon( SFXPolygonConstRef polygon , SFXRGBColorConstRef color )
多角形を描画し、塗りつぶします。
Void FillRectangle( SFXRectangleConstRef rectangle , SFXRGBColorConstRef color )
長方形を描画し、塗りつぶします。
Void FillRoundRectangle( SFXRectangleConstRef rectangle , SFXSizeConstRef size , SFXRGBColorConstRef color )
角の丸い長方形を描画し、塗りつぶします。
Void FillTriangle( SFXTriangleConstRef triangle , SFXRGBColorConstRef color )
三角形を描画し、塗りつぶします。
AEEAlgorithmHint GetAlgorithmHint( Void )
現在の描画アルゴリズムについてのヒントを取得します。
SFXRGBColor GetBackColor( Void )
背景色を取得します。
SFXRectangle GetClip( Void )
クリッピング領域を取得します。
UInt08 GetColorDepth( Void )
デバイスの色深度を取得します。
SFBBitmapSmp GetDestination( Void )
描画先のビットマップを取得します。
static
SFBBitmapSmp
GetDeviceBitmap( Void )
デバイス(画面)のビットマップを取得します。
static
SFXRectangle
GetDeviceRectangle( Void )
デバイスの画面矩形を取得します。
static
SFXSize
GetDeviceSize( Void )
デバイスの画面サイズを取得します。
SFXRGBColor GetFillColor( Void )
塗りつぶし色を取得します。
Bool GetFillMode( Void )
塗りつぶしモードを取得します。
AEEFont GetFont( Void )
設定されているフォントを取得します。
SInt16 GetFontAscent( Void )
フォントのアセントを取得します。
static
SInt16
GetFontAscent( AEEFont param )
フォントのアセントを取得します。
SInt16 GetFontDescent( Void )
フォントのディセントを取得します。
static
SInt16
GetFontDescent( AEEFont param )
フォントのディセントを取得します。
SInt16 GetFontHeight( Void )
フォントの高さを取得します。
static
SInt16
GetFontHeight( AEEFont param )
フォントの高さを取得します。
SFXRGBColor GetForeColor( Void )
前景色を取得します。
static
SFXGraphicsPtr
GetInstance( Void )
起動時に自動生成されたインスタンスを取得します。
AEEPaintMode GetPaintMode( Void )
現在の描画モードを取得します。
UInt08 GetPixelSize( Void )
現在のポイント サイズのピクセル数を取得します。
SFBDisplaySmpConstRef GetSFBDisplay( Void )
内部で保持している SFBDisplay インスタンスを取得します。
SFBGraphicsSmpConstRef GetSFBGraphics( Void )
内部で保持している SFBGraphics インスタンスを取得します。
AEEStrokeStyle GetStrokeStyle( Void )
ストローク スタイルを取得します。
WChar GetSymbol( AEESymbol symbol )
指定した記号に対応する文字を取得します。
static
WChar
GetSymbol( AEEFont font , AEESymbol symbol )
指定した記号に対応する文字を取得します。
SFXGrid GetTranslate( Void )
原点移動の移動量を取得します。
static
SFXSize
MeasureMultipleText( AEEFont font , SFXWideStringConstRef string )
MeasureMultipleText( AEEFont font , SFXWideStringConstRef string , SInt16 wrap )
指定した複数行文字列を描画した場合の大きさを計算します。
SFXSize MeasureMultipleText( SFXWideStringConstRef string )
MeasureMultipleText( SFXWideStringConstRef string , SInt16 wrap )
指定した複数行文字列を描画した場合の大きさを計算します。
static
SInt16
MeasureSingleText( AEEFont font , SFXWideStringConstRef string )
MeasureSingleText( AEEFont font , SFXWideStringConstRef string , SInt32 length , SInt16 limit , SInt16Ptr )
MeasureSingleText( AEEFont font , SFXWideStringConstRef string , SInt32 length )
MeasureSingleText( AEEFont font , SFXWideStringConstRef string , SInt16 limit , SInt16Ptr fit )
指定した単一行文字列を描画した場合の幅を計算します。
SInt16 MeasureSingleText( SFXWideStringConstRef string )
MeasureSingleText( SFXWideStringConstRef string , SInt32 length , SInt16 limit , SInt16Ptr fit )
MeasureSingleText( SFXWideStringConstRef string , SInt32 length )
MeasureSingleText( SFXWideStringConstRef string , SInt16 limit , SInt16Ptr fit )
指定した単一行文字列を描画した場合の幅を計算します。
SInt16 MeasureString( SFXWideStringConstRef string , SInt16 width , SInt16 margin = 0 )
[非推奨 API ( 廃止予定 API )]指定したテキスト文字列を描画した場合の高さを測定します。
static
SInt16
MeasureString( AEEFont font , SFXWideStringConstRef string , SInt16 width , SInt16 margin = 0 )
[非推奨 API ( 廃止予定 API )]指定したテキスト文字列を描画した場合の高さを測定します。
SInt16 MeasureText( SFXWideStringConstRef string )
MeasureText( SFXWideStringConstRef string , SInt16 limit , SInt16Ptr fit )
MeasureText( SFXWideStringConstRef string , SInt32 length , SInt16 limit , SInt16Ptr fit )
[非推奨 API ( 廃止予定 API )]指定したテキスト文字列を描画した場合の幅を測定します。
static
SInt16
MeasureText( AEEFont font , SFXWideStringConstRef string )
MeasureText( AEEFont font , SFXWideStringConstRef string , SInt16 limit , SInt16Ptr fit )
MeasureText( AEEFont font , SFXWideStringConstRef string , SInt32 length , SInt16 limit , SInt16Ptr fit )
[非推奨 API ( 廃止予定 API )]指定したテキスト文字列を描画した場合の幅を測定します。
SFCError RegisterFont( AEECLSID id )
AEEFont に ClassID を対応付けます。
static
SFCError
RegisterFont( AEEFont font , AEECLSID id )
AEEFont に ClassID を対応付けます。
Void ResetClip( Void )
クリッピングを解除します。
Void ResetDestination( Void )
レンダリング先のビットマップをデフォルトに戻します。
Void ResetTranslate( Void )
原点移動を解除します。
Void SetAlgorithmHint( AEEAlgorithmHint param )
描画アルゴリズムについてのヒントを設定します。
Void SetAnnunciators( UInt16 value , UInt16 mask )
指定したアナンシエータをオンまたはオフに設定します。
Void SetBackColor( SFXRGBColorConstRef param )
背景色を設定します。
Void SetBacklight( Bool active )
デバイスのバックライトを設定します。
Void SetClip( SFXRectangleConstRef param )
クリッピング領域を設定します。
SFCError SetDestination( SFBBitmapSmpConstRef param )
レンダリング先のビットマップを設定します。
Void SetFillColor( SFXRGBColorConstRef param )
塗りつぶし色を設定します。
Bool SetFillMode( Bool param )
塗りつぶしモードを設定します。
Void SetFont( AEEFont param )
フォントを設定します。
Void SetForeColor( SFXRGBColorConstRef param )
前景色を設定します。
AEEPaintMode SetPaintMode( AEEPaintMode param )
現在の描画モードを設定します。
UInt08 SetPixelSize( UInt08 param )
ポイントのサイズ(幅)のピクセル数を設定します。
AEEStrokeStyle SetStrokeStyle( AEEStrokeStyle param )
ストローク スタイルを設定します。
Void SetTranslate( SFXGridConstRef param )
原点移動の移動量を設定します。
SFCError UnregisterFont( Void )
AEEFont に対応付けた ClassID の対応付け解消を行います。
static
SFCError
UnregisterFont( AEEFont font )
AEEFont に対応付けた ClassID の対応付け解消を行います。
Void Update( Void )
描画操作を行った後、変更を表示ハードウェアに通知します。

SFXGraphics::BitBlt
ビットマップを長方形領域に転送します。
[ public ]
Void BitBlt(
    SFXRectangleConstRef rectangle     // 転送先の長方形
    SFBBitmapSmpConstRef bitmap        // 転送元ビットマップ
    SFXGridConstRef grid               // 転送元ビットマップの左上隅の座標
    AEERasterOp raster = AEE_RO_COPY   // 転送モード
);
[ public ]
Void BitBlt(
    SFXRectangleConstRef rectangle     // 転送先の長方形、転送元ビットマップの左上隅の座標
    SFBBitmapSmpConstRef bitmap        // 転送元ビットマップ
    AEERasterOp raster = AEE_RO_COPY   // 転送モード
);

参照

SFXGraphics::Update | AEERasterOp


SFXGraphics::ClearRectangle
指定した長方形を背景色で塗りつぶしてクリアします。
[ public ]
Void ClearRectangle(
    SFXRectangleConstRef rectangle   // 長方形
);
[ public ]
Void ClearRectangle(
    SFXRectangleConstRef rectangle   // 長方形
    SFXRGBColorConstRef color        // 背景色
);

解説

背景色を設定すると、背景色を指定されたものに変更してから塗りつぶします。

参照

SFXGraphics::DrawRectangle


SFXGraphics::CloneBitmap
現在描画対象となっているビットマップの内容から新しいビットマップを作成します。
[ public, const ]
SFBBitmapSmp CloneBitmap(
    SFXRectangleConstRef param   // コピー元となる長方形領域
);

参照

SFXGraphics::CreateBitmap


SFXGraphics::CreateBitmap
デバイスビットマップと互換性のあるビットマップを作成します。
[ public, static ]
SFBBitmapSmp CreateBitmap(
    SFXSizeConstRef param   // 新しいビットマップのサイズ
);

参照

SFXGraphics::CloneBitmap


SFXGraphics::DrawArc
円弧を描画します。
[ public ]
Void DrawArc(
    SFXArcConstRef arc   // 描画する円弧
);
[ public ]
Void DrawArc(
    SFXArcConstRef arc          // 描画する円弧
    SFXRGBColorConstRef color   // 描画色
);

解説

描画色を設定すると、前景色が変更されます。

参照

SFXArc


SFXGraphics::DrawBevel
べベルの枠を描画します。
[ public ]
Void DrawBevel(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
    Bool left                        // 左辺を描画するかどうか
    Bool top                         // 上辺を描画するかどうか
    Bool right                       // 右辺を描画するかどうか
    Bool bottom                      // 下辺を描画するかどうか
);

解説

べベルの枠の左辺、上辺、右辺、下辺を描画するかどうかは、それぞれ left、top、right、bottom 引数で指定できます。

べベルの左辺と上辺は color 引数のライト カラー(明るい色)、右辺と下辺は color 引数のダーク カラー(暗い色)でそれぞれ描画します。

上辺と右辺の両方を同時に描画する場合、右上隅の頂点は color 引数のベース カラーで描画します。 同様に、左辺と下辺の両方を同時に描画する場合も、左下隅の頂点は color 引数のベース カラーで描画します。

[Note] べベルとは

べベルとは、明るい色の辺(左辺と上辺)と暗い色の辺(右辺と下辺)からなる長方形のことです。立体的に見えます。

参照

SFXGraphics::FillBevel


SFXGraphics::DrawBevelBottom
べベルの左辺、右辺、下辺を描画します。
[ public ]
Void DrawBevelBottom(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, true, false, true, true); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelBottom


SFXGraphics::DrawBevelCenter
べベルの上辺と下辺を描画します。
[ public ]
Void DrawBevelCenter(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, false, true, false, true); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelCenter


SFXGraphics::DrawBevelHorizontal
[非推奨 API ( 廃止予定 API )]べベルの上辺と下辺を描画します。
[ public ]
Void DrawBevelHorizontal(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, false, true, false, true); と同等です。

[Note] 非推奨 API ( 廃止予定 API )

この API は、SophiaFramework UNIVERSE 6.0 では廃止される予定です。 この API の替わりに SFXGraphics::DrawBevelCenter 関数を利用することを推奨します。

参照

SFXGraphics::DrawBevelCenter | SFXGraphics::DrawBevel | SFXGraphics::FillBevelHorizontal


SFXGraphics::DrawBevelLeft
べベルの左辺、上辺、下辺を描画します。
[ public ]
Void DrawBevelLeft(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, true, true, false, true); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelLeft


SFXGraphics::DrawBevelMiddle
べベルの左辺と右辺を描画します。
[ public ]
Void DrawBevelMiddle(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, true, false, true, false); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelMiddle


SFXGraphics::DrawBevelRectangle
べベルの枠をすべて描画します。
[ public ]
Void DrawBevelRectangle(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, true, true, true, true); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelRectangle


SFXGraphics::DrawBevelRight
べベルの上辺、右辺、下辺を描画します。
[ public ]
Void DrawBevelRight(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, false, true, true, true); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelRight


SFXGraphics::DrawBevelTop
べベルの左辺、上辺、右辺を描画します。
[ public ]
Void DrawBevelTop(
    SFXRectangleConstRef rectangle   // 描画先の長方形領域
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, true, true, true, false); と同等です。

参照

SFXGraphics::DrawBevel | SFXGraphics::FillBevelTop


SFXGraphics::DrawBevelVertical
[非推奨 API ( 廃止予定 API )]べベルの左辺と右辺を描画します。
[ public ]
Void DrawBevelVertical(
    SFXRectangleConstRef rectangle   // 
    SFXBevelColorConstRef color      // ベース、ライト、ダークを表すカラー
);

解説

SFXGraphics::DrawBevel(rectangle, color, true, false, true, false); と同等です。

[Note] 非推奨 API ( 廃止予定 API )

この API は、SophiaFramework UNIVERSE 6.0 では廃止される予定です。 この API の替わりに SFXGraphics::DrawBevelMiddle 関数を利用することを推奨します。

参照

SFXGraphics::DrawBevelMiddle | SFXGraphics::DrawBevel | SFXGraphics::FillBevelVertical


SFXGraphics::DrawBitmap
ビットマップを描画します。
[ public ]
SFCError DrawBitmap(
    SFBBitmapSmpConstRef bitmap        // 描画元ビットマップ
    SFXRectangleConstRef rectangle     // 描画先の長方形領域
    AEERasterOp raster = AEE_RO_COPY   // 転送モード
);
[ public ]
SFCError DrawBitmap(
    SFBBitmapSmpConstRef bitmap        // 描画元ビットマップ
    SFXGridConstRef grid               // 描画先の座標
    AEERasterOp raster = AEE_RO_COPY   // 転送モード
);

戻り値

  • 成功したとき : SFERR_NO_ERROR
  • 引数のビットマップが設定されていないとき : SFERR_INVALID_PARAM

SFXGraphics::DrawCircle
円を描画します。
[ public ]
Void DrawCircle(
    SFXCircleConstRef circle   // 描画する円
);
[ public ]
Void DrawCircle(
    SFXCircleConstRef circle    // 描画する円
    SFXRGBColorConstRef color   // 描画色
);

解説

描画色を指定しない場合は設定されている前景色、塗りつぶしモード、塗りつぶし色で描画します。

描画色を指定した場合は塗りつぶしは行いません。このとき、前景色と塗りつぶしモードが変更されます。

参照

SFXCircle | SFXGraphics::FillCircle


SFXGraphics::DrawEllipse
楕円を描画します。
[ public ]
Void DrawEllipse(
    SFXEllipseConstRef ellipse   // 描画する楕円
);
[ public ]
Void DrawEllipse(
    SFXEllipseConstRef ellipse   // 描画する楕円
    SFXRGBColorConstRef color    // 描画色
);

解説

描画色を指定しない場合は設定されている前景色、塗りつぶしモード、塗りつぶし色で描画します。 描画色を指定した場合は塗りつぶしは行いません。このとき、前景色と塗りつぶしモードが変更されます。

参照

SFXEllipse | SFXGraphics::FillEllipse


SFXGraphics::DrawEllipticalArc
楕円弧を描画します。
[ public ]
Void DrawEllipticalArc(
    SFXRectangleConstRef rectangle   // 楕円の外接長方形
    SInt16 anchor                    // 弧の開始角度 (度単位)
    SInt16 degree                    // 弧の範囲角度 (度単位)
);
[ public ]
Void DrawEllipticalArc(
    SFXRectangleConstRef rectangle   // 楕円の外接長方形
    SInt16 anchor                    // 弧の開始角度 (度単位)
    SInt16 degree                    // 弧の範囲角度 (度単位)
    SFXRGBColorConstRef color        // 描画色
);

解説

描画色を設定すると、前景色が変更されます。

参照

SFXGraphics::FillEllipticalArc


SFXGraphics::DrawFrame
長方形の枠を描画します。
[ public ]
Void DrawFrame(
    SFXRectangleConstRef rectangle   // 描画する長方形
    SFXFrameColorConstRef color      // 描画色
);

解説

[Warning] 使用上の注意

SFXGraphics::DrawFrame 関数を実行すると、前景色と塗りつぶしモードが変更されます。


SFXGraphics::DrawImage
イメージを描画します。
[ public ]
SFCError DrawImage(
    SFBImageSmpConstRef image   // 描画元イメージ
    SFXGridConstRef grid        // 描画先の座標
);
[ public ]
SFCError DrawImage(
    SFBImageSmpConstRef image   // 描画元イメージ
    SFXGridConstRef grid        // 描画先の座標
    AEERasterOp raster          // 転送モード
);

戻り値

  • 成功したとき : SFERR_NO_ERROR
  • 引数のイメージが設定されていないとき : SFERR_INVALID_PARAM

解説

[Warning] 使用上の注意

SFXGraphics::DrawImage 関数を実行すると、描画元イメージの描画先ディスプレイが変更されます。 転送モードが設定された時は、描画元イメージの転送モードも変更されます。


SFXGraphics::DrawLine
線を描画します。
[ public ]
Void DrawLine(
    SFXLineConstRef line   // 描画する線
);
[ public ]
Void DrawLine(
    SFXLineConstRef line        // 描画する線
    SFXRGBColorConstRef color   // 描画色
);

解説

描画色を設定すると、前景色が変更されます。

参照

SFXLine


SFXGraphics::DrawMultipleTextCenter
複数行文字列を中央揃えで描画します。
[ public ]
Void DrawMultipleTextCenter(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
);
[ public ]
Void DrawMultipleTextCenter(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SFXRGBColorConstRef color        // 描画色
);
[ public ]
Void DrawMultipleTextCenter(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SInt16 wrap                      // 最大幅
);
[ public ]
Void DrawMultipleTextCenter(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SFXRGBColorConstRef color        // 描画色
    SInt16 wrap                      // 最大幅
);

参照

SFBDisplay::DrawText | SFXGraphics::DrawText | SFXGraphics::DrawMultipleTextLeft | SFXGraphics::DrawMultipleTextRight | SFXGraphics::DrawSingleText


SFXGraphics::DrawMultipleTextLeft
複数行文字列を左揃えで描画します。
[ public ]
Void DrawMultipleTextLeft(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
);
[ public ]
Void DrawMultipleTextLeft(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SFXRGBColorConstRef color        // 描画色
);
[ public ]
Void DrawMultipleTextLeft(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SInt16 wrap                      // 最大幅
);
[ public ]
Void DrawMultipleTextLeft(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SFXRGBColorConstRef color        // 描画色
    SInt16 wrap                      // 最大幅
);

参照

SFBDisplay::DrawText | SFXGraphics::DrawText | SFXGraphics::DrawMultipleTextCenter | SFXGraphics::DrawMultipleTextRight | SFXGraphics::DrawSingleText


SFXGraphics::DrawMultipleTextRight
複数行文字列を右揃えで描画します。
[ public ]
Void DrawMultipleTextRight(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
);
[ public ]
Void DrawMultipleTextRight(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SFXRGBColorConstRef color        // 描画色
);
[ public ]
Void DrawMultipleTextRight(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SInt16 wrap                      // 最大幅
);
[ public ]
Void DrawMultipleTextRight(
    SFXWideStringConstRef string     // 描画文字列
    SFXRectangleConstRef rectangle   // 表示範囲矩形
    SFXGridConstRef grid             // 描画座標(原点)
    SFXRGBColorConstRef color        // 描画色
    SInt16 wrap                      // 最大幅
);

参照

SFBDisplay::DrawText | SFXGraphics::DrawText | SFXGraphics::DrawMultipleTextLeft | SFXGraphics::DrawMultipleTextCenter | SFXGraphics::DrawSingleText


SFXGraphics::DrawPie
扇形を描画します。
[ public ]
Void DrawPie(
    SFXPieConstRef pie   // 描画する扇形
);
[ public ]
Void DrawPie(
    SFXPieConstRef pie          // 描画する扇形
    SFXRGBColorConstRef color   // 描画色
);

解説

描画色を指定しない場合は設定されている描画色、塗りつぶしモード、塗りつぶし色で描画します。

描画色を指定した場合は塗りつぶしは行いません。このとき、前景色と塗りつぶしモードが変更されます。

参照

SFXPie | SFXGraphics::FillPie


SFXGraphics::DrawPixel
点を描画します。
[ public ]
Void DrawPixel(
    SFXPixelConstRef pixel   // 描画する点
);
[ public ]
Void DrawPixel(
    SFXPixelConstRef pixel      // 描画する点
    SFXRGBColorConstRef color   // 描画色
);

解説

描画色を設定すると、前景色が変更されます。

参照

SFXPixel


SFXGraphics::DrawPolygon
多角形を描画します。
[ public ]
Void DrawPolygon(
    SFXPolygonConstRef polygon   // 描画する多角形
);
[ public ]
Void DrawPolygon(
    SFXPolygonConstRef polygon   // 描画する多角形
    SFXRGBColorConstRef color    // 描画色
);

解説

描画色を指定しない場合は設定されている描画色、塗りつぶしモード、塗りつぶし色で描画します。

描画色を指定した場合は塗りつぶしは行いません。このとき、前景色と塗りつぶしモードが変更されます。

参照

SFXPolygon | SFXGraphics::FillPolygon


SFXGraphics::DrawPolyline
多角線を描画します。
[ public ]
Void DrawPolyline(
    SFXPolylineConstRef polyline   // 描画する多角線
);
[ public ]
Void Draw