FillSurface Class Reference

矩形の塗りつぶしサーフェス More...

#include <fillSurface.h>

Inheritance diagram for FillSurface:

Inheritance graph
[legend]
Collaboration diagram for FillSurface:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FillSurface (const VXV::Rect &size, unsigned long color=White)
 矩形の塗りつぶし
 FillSurface (const VXV::Rect &size, SurfaceInterface *surface)
 矩形の塗りつぶし
bool draw (const VXV::Rect &size, const VXV::Grid &pos, unsigned long ticks)
 サーフェスの描画


Detailed Description

矩形の塗りつぶしサーフェス

Definition at line 20 of file fillSurface.h.


Constructor & Destructor Documentation

FillSurface::FillSurface ( const VXV::Rect size,
unsigned long  color = White 
)

矩形の塗りつぶし

Parameters:
size [i] 範囲
color [i] 色

Definition at line 11 of file fillSurface.cpp.

References VXV::Rect::h, SurfaceInterface::h, VXV::Rect::w, and SurfaceInterface::w.

FillSurface::FillSurface ( const VXV::Rect size,
SurfaceInterface surface 
)

矩形の塗りつぶし

Parameters:
size [i] 範囲
surface [i] 塗りつぶしに用いるサーフェス

Definition at line 18 of file fillSurface.cpp.

References VXV::Rect::h, SurfaceInterface::h, VXV::Rect::w, and SurfaceInterface::w.


Member Function Documentation

bool FillSurface::draw ( const VXV::Rect size,
const VXV::Grid pos,
unsigned long  ticks 
) [virtual]

サーフェスの描画

指定場所に指定領域のサーフェスを描画する

Parameters:
size [i] サーフェスの描画領域を指定
pos [i] スクリーンに対するサーフェスの描画位置を指定
ticks [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい
Return values:
true 正常
false サーフェスが無効

Implements SurfaceInterface.

Definition at line 29 of file fillSurface.cpp.

References SurfaceInterface::draw(), SDL_Video::fillRect(), SurfaceInterface::h, VXV::Rect::h, SurfaceInterface::w, VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.

Referenced by TextInputComponent::draw().


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 22:52:07 2009 by  doxygen 1.5.7.1