SDL_Video Class Reference

SDL の描画操作クラス. More...

#include <sdlVideo.h>

Inheritance diagram for SDL_Video:

Inheritance graph
[legend]
Collaboration diagram for SDL_Video:

Collaboration graph
[legend]

List of all members.

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, drawListdraws
static std::vector
< FocusComponentInterface * > 
inputList


Detailed Description

SDL の描画操作クラス.

Definition at line 22 of file sdlVideo.h.


Member Typedef Documentation

typedef std::list<ComponentInterface*> SDL_Video::drawList [protected]

コンポーネントリスト

Definition at line 50 of file sdlVideo.h.


Member Function Documentation

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.

Parameters:
on [i] 表示する場合に true

Reimplemented in SDL_Window.

Definition at line 165 of file sdlVideo.cpp.

References lock(), screen, and unlock().

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.

Parameters:
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.

Parameters:
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]

サーフェスの描画

Parameters:
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]

矩形の塗りつぶし

Parameters:
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 されてからの時間を返す

Returns:
スクリーンが activate されてからの時間 [msec]

Reimplemented in SDL_Window.

Definition at line 257 of file sdlVideo.cpp.


Member Data Documentation

bool SDL_Video::fullscreen = false [static, protected]

フルスクリーン表示かどうか

Definition at line 45 of file sdlVideo.h.

Referenced by SDL_Window::SDL_Window().

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]

ロック資源

Definition at line 48 of file sdlVideo.h.

Referenced by lock(), and unlock().

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().


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