#include <sdlVideo.h>
Public Member Functions | |
void | activate (bool on) |
void | setTitle (const char *title, const char *icon) |
void | autoHideCursor (int waitMsec) |
unsigned long | getTicks (void) |
スクリーンが activate されてからの時間を返す | |
void | delInputComponent (ComponentInterface *component) |
void | setFocus (FocusComponentInterface *component) |
Static Public Member Functions | |
static void | blitSurface (SDL_Surface *surface, const VXV::Rect &size, const VXV::Grid &pos) |
サーフェスの描画 | |
static void | fillRect (const VXV::Rect &rect, unsigned long color) |
矩形の塗りつぶし | |
static void | toggleFocus (void) |
Protected Types | |
enum | { ScreenWidth = 640, ScreenHeight = 480 } |
typedef std::list < ComponentInterface * > | drawList |
Protected Member Functions | |
void | registerEventHandler (call_t function) |
描画ループ毎に呼ばれる関数の登録 | |
Static Protected Member Functions | |
static void | lock (void) |
static void | unlock (void) |
Static Protected Attributes | |
static bool | fullscreen = false |
static bool | fullscreen_trigger = false |
static SDL_Surface * | screen = NULL |
static SDL_mutex * | mutex = NULL |
static std::map< char, drawList > | draws |
static std::vector < FocusComponentInterface * > | inputList |
Definition at line 22 of file sdlVideo.h.
typedef std::list<ComponentInterface*> SDL_Video::drawList [protected] |
コンポーネントリスト
Definition at line 50 of file sdlVideo.h.
void SDL_Video::lock | ( | void | ) | [static, protected] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented in SDL_Window.
Definition at line 155 of file sdlVideo.cpp.
References mutex.
Referenced by activate().
void SDL_Video::unlock | ( | void | ) | [static, protected] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented in SDL_Window.
Definition at line 160 of file sdlVideo.cpp.
References mutex.
Referenced by activate().
void SDL_Video::activate | ( | bool | on | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
on | [i] 表示する場合に true |
Reimplemented in SDL_Window.
Definition at line 165 of file sdlVideo.cpp.
void SDL_Video::setTitle | ( | const char * | title, | |
const char * | icon | |||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
title | [i] タイトル文字列 | |
icon | [i] 表示アイコン |
Reimplemented in SDL_Window.
Definition at line 204 of file sdlVideo.cpp.
void SDL_Video::autoHideCursor | ( | int | waitMsec | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
waitMsec | [i] 指定時間だけカーソルが移動しないときに隠す [msec] |
Reimplemented in SDL_Window.
Definition at line 222 of file sdlVideo.cpp.
void SDL_Video::blitSurface | ( | SDL_Surface * | surface, | |
const VXV::Rect & | size, | |||
const VXV::Grid & | pos | |||
) | [static] |
サーフェスの描画
surface | [i] サーフェス | |
size | [i] サイズ | |
pos | [i] 位置 |
Definition at line 228 of file sdlVideo.cpp.
References VXV::Rect::h, screen, VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.
Referenced by DrawSurface::draw().
void SDL_Video::fillRect | ( | const VXV::Rect & | rect, | |
unsigned long | color | |||
) | [static] |
矩形の塗りつぶし
rect | [i] 範囲 | |
color | [i] 色 |
Definition at line 241 of file sdlVideo.cpp.
References VXV::Rect::h, screen, VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.
Referenced by FillSurface::draw(), and PixelDraw::setPixel().
unsigned long SDL_Video::getTicks | ( | void | ) |
スクリーンが activate されてからの時間を返す
Reimplemented in SDL_Window.
Definition at line 257 of file sdlVideo.cpp.
bool SDL_Video::fullscreen = false [static, protected] |
SDL_Surface * SDL_Video::screen = NULL [static, protected] |
画面資源
Definition at line 47 of file sdlVideo.h.
Referenced by activate(), blitSurface(), and fillRect().
SDL_mutex * SDL_Video::mutex = NULL [static, protected] |
std::map< char, SDL_Video::drawList > SDL_Video::draws [static, protected] |
描画コンポーネント管理リソース
Definition at line 51 of file sdlVideo.h.
Referenced by SDL_Window::add(), SDL_Window::clear(), and SDL_Window::del().