SDL_Window Class Reference

SDL の Window クラス. More...

#include <sdlWindow.h>

Inheritance diagram for SDL_Window:

Inheritance graph
[legend]
Collaboration diagram for SDL_Window:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SDL_Window (bool fullscreen=false)
 フルスクリーン指定のコンストラクタ
void setTitle (const char *title, const char *icon)
void autoHideCursor (int waitMsec)
void activate (bool on)
unsigned long getTicks (void)
 スクリーンが activate されてからの時間を返す
void delay (unsigned long ticks)
 待機処理
void lock (void)
void unlock (void)
void add (ComponentInterface *component, char depth)
 コンポーネントをレイヤーに登録
void del (ComponentInterface *component, char depth)
 コンポーネントをレイヤーから削除
void clear (char depth)
 レイヤーのクリア
void addInputComponent (FocusComponentInterface *component, char depth)
void toggleFocus (void)
void setFocus (FocusComponentInterface *component)
void setFullscreen (bool on)
bool getNowFullscreen (void)


Detailed Description

SDL の Window クラス.

Definition at line 20 of file sdlWindow.h.


Constructor & Destructor Documentation

SDL_Window::SDL_Window ( bool  fullscreen = false  ) 

フルスクリーン指定のコンストラクタ

Parameters:
fullscreen [i] フルスクリーンで起動する場合に true

Definition at line 10 of file sdlWindow.cpp.

References SDL_Video::fullscreen, WindowInterface::h, and WindowInterface::w.


Member Function Documentation

void SDL_Window::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 from SDL_Video.

Definition at line 23 of file sdlWindow.cpp.

void SDL_Window::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 from SDL_Video.

Definition at line 28 of file sdlWindow.cpp.

void SDL_Window::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 from SDL_Video.

Definition at line 33 of file sdlWindow.cpp.

unsigned long SDL_Window::getTicks ( void   ) 

スクリーンが activate されてからの時間を返す

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

Reimplemented from SDL_Video.

Definition at line 38 of file sdlWindow.cpp.

void SDL_Window::delay ( unsigned long  ticks  )  [virtual]

待機処理

Parameters:
ticks [i] 待機時間 [msec]

Implements WindowInterface.

Definition at line 43 of file sdlWindow.cpp.

void SDL_Window::lock ( void   ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Reimplemented from SDL_Video.

Definition at line 48 of file sdlWindow.cpp.

void SDL_Window::unlock ( void   ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Reimplemented from SDL_Video.

Definition at line 53 of file sdlWindow.cpp.

void SDL_Window::add ( ComponentInterface component,
char  depth 
) [virtual]

コンポーネントをレイヤーに登録

Parameters:
component [i] コンポーネント
depth [i] レイヤー

Implements WindowInterface.

Definition at line 58 of file sdlWindow.cpp.

References SDL_Video::draws.

void SDL_Window::del ( ComponentInterface component,
char  depth 
) [virtual]

コンポーネントをレイヤーから削除

Parameters:
component [i] コンポーネント
depth [i] レイヤー

Implements WindowInterface.

Definition at line 66 of file sdlWindow.cpp.

References SDL_Video::draws.

Referenced by clear().

void SDL_Window::clear ( char  depth  )  [virtual]

レイヤーのクリア

Parameters:
depth [i] レイヤー

Implements WindowInterface.

Definition at line 78 of file sdlWindow.cpp.

References del(), and SDL_Video::draws.


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