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

クラス Graphics

描画クラス

Graphicsに対する継承グラフ

Object すべてのメンバ一覧

Public メソッド

void drawImage (Image *image, int x, int y)
void drawPixel (int x, int y, unsigned int color)
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 drawText (char *s, 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 int color)
void setColor (unsigned char r, unsigned char g, unsigned char b)
void setFontStyle (int style)

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

Graphics::Graphics  ) 
 

コンストラクタ

Graphics::Graphics Image image  ) 
 

コンストラクタ

Graphics::~Graphics  )  [virtual]
 

デストラクタ


関数

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

円描画

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

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

イメージ描画

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

void Graphics::drawLine int  x1,
int  y1,
int  x2,
int  y2
 

直線描画

引数:
x1 始点X
y1 始点Y
x2 終点X
y2 終点Y

void Graphics::drawPixel int  x,
int  y,
unsigned int  color
 

点描画

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

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

矩形描画

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

void Graphics::drawText char *  str,
int  x,
int  y
 

文字列描画

引数:
str 文字列
x 始点X
y 始点Y

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

円塗りつぶし描画描画

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

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

矩形ぬりつぶし描画

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

int Graphics::getFontStyle  ) 
 

フォントスタイルを得る

int Graphics::getHeight  ) 
 

高さを得る

int Graphics::getWidth  ) 
 

幅を得る

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

クリッピング領域設定

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

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

色設定

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

void Graphics::setColor unsigned int  color  ) 
 

色設定

引数:
color (0x0-0xFFFFFF)

void Graphics::setFontStyle int  style  ) 
 

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

引数:
style フォントスタイル (FONT_PLAIN/FONT_BOLD/FONT_ITALIC/FONT_BOLD|FONT_ITALIC)

void Graphics::translate int  x,
int  y
 

座標設定

引数:
x 始点X
y 始点Y


このクラスの説明は次のファイルから生成されました:
BayGUI APIに対してMon Feb 21 12:42:25 2005に生成されました。  doxygen 1.4.1