メインページ | ネームスペース一覧 | クラス階層 | 構成 | ファイル一覧 | 構成メンバ | ファイルメンバ

クラス baygui::Graphics

描画クラス

baygui::Graphicsに対する継承グラフ

baygui::Object すべてのメンバ一覧

Public メソッド

 Graphics (Image *image)
void drawPixel (int x, int y, dword color)
void drawImage (Image *image, int x, int y)
void drawLine (int x0, int y0, int x1, int y1)
void drawRect (int x, int y, int width, int height)
void drawCircle (int x0, int y0, int r)
void drawString (String *str, int x, int y)
void drawString (const String &str, int x, int y)
void fillCircle (int x0, int y0, int r)
void fillRect (int x, int y, int width, int height)
void translate (int x, int y)
void setClip (int cx, int cy, int cw, int ch)
void setColor (unsigned char r, unsigned char g, unsigned char b)
void setColor (dword color)
void setFontStyle (int style)

コンストラクタとデストラクタ

baygui::Graphics::Graphics  ) 
 

コンストラクタ

baygui::Graphics::Graphics Image image  ) 
 

コンストラクタ

引数:
image 内部バッファー

virtual baygui::Graphics::~Graphics  )  [virtual]
 

デストラクタ


関数

void baygui::Graphics::drawCircle int  x0,
int  y0,
int  r
 

円描画

引数:
x0 中心X
y0 中心Y
r 半径

void baygui::Graphics::drawImage Image image,
int  x,
int  y
 

イメージ描画

引数:
image イメージ
x 描画開始X座標
y 描画開始Y座標

void baygui::Graphics::drawLine int  x0,
int  y0,
int  x1,
int  y1
 

直線描画

引数:
x0 始点X
y0 始点Y
x1 終点X
y1 終点Y

void baygui::Graphics::drawPixel int  x,
int  y,
dword  color
 

点描画

引数:
x X座標
y Y座標
color 描画する色

void baygui::Graphics::drawRect int  x,
int  y,
int  width,
int  height
 

矩形描画

引数:
x 始点X
y 始点Y
width 
height 高さ

void baygui::Graphics::drawString const String str,
int  x,
int  y
 

文字列描画

引数:
str 文字列(複数行対応)
x 始点X
y 始点Y

void baygui::Graphics::drawString String str,
int  x,
int  y
 

文字列描画

引数:
str 文字列(複数行対応)
x 始点X
y 始点Y

void baygui::Graphics::fillCircle int  x0,
int  y0,
int  r
 

円塗りつぶし描画

引数:
x0 中心X
y0 中心Y
r 半径

void baygui::Graphics::fillRect int  x,
int  y,
int  width,
int  height
 

矩形ぬりつぶし描画

引数:
x 始点X
y 始点Y
width 
height 高さ

int baygui::Graphics::getFontStyle  ) 
 

フォントスタイルを得る

void baygui::Graphics::setClip int  cx,
int  cy,
int  cw,
int  ch
 

クリッピング領域設定

引数:
cx 始点X
cy 始点Y
cw 終点X
ch 終点Y

void baygui::Graphics::setColor dword  color  ) 
 

色設定

引数:
color (0x0-0xFFFFFF)

void baygui::Graphics::setColor unsigned char  r,
unsigned char  g,
unsigned char  b
 

色設定

引数:
r 赤(0-255)
g 緑(0-255)
b 青(0-255)

void baygui::Graphics::setFontStyle int  style  ) 
 

フォントスタイル(通常、太字、斜字、固定幅)を設定する.

各スタイルを"|"で組み合わせることも可能。

引数:
style フォントスタイル (Font::PLAIN / Font::BOLD / Font::ITALIC / Font::FIXED )

void baygui::Graphics::translate int  x,
int  y
 

座標設定

引数:
x 始点X
y 始点Y


このクラスの説明は次のファイルから生成されました:
BayGUI APIに対してTue Aug 23 02:06:15 2005に生成されました。  doxygen 1.4.3