#include <fillSurface.h>
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) |
サーフェスの描画 |
Definition at line 20 of file fillSurface.h.
FillSurface::FillSurface | ( | const VXV::Rect & | size, | |
unsigned long | color = White | |||
) |
矩形の塗りつぶし
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 | |||
) |
矩形の塗りつぶし
size | [i] 範囲 | |
surface | [i] 塗りつぶしに用いるサーフェス |
Definition at line 18 of file fillSurface.cpp.
References VXV::Rect::h, SurfaceInterface::h, VXV::Rect::w, and SurfaceInterface::w.
bool FillSurface::draw | ( | const VXV::Rect & | size, | |
const VXV::Grid & | pos, | |||
unsigned long | ticks | |||
) | [virtual] |
サーフェスの描画
指定場所に指定領域のサーフェスを描画する
size | [i] サーフェスの描画領域を指定 | |
pos | [i] スクリーンに対するサーフェスの描画位置を指定 | |
ticks | [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい |
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().