TTF_Draw Class Reference

文字描画 More...

#include <ttfDraw.h>

List of all members.

Public Member Functions

bool load (const char *file)
 TrueTypeFont資源の読み出し.
SDL_Surface * createText (const unsigned short *text, int pxSize, unsigned long color=White, unsigned long background=Black)
 文字列サーフェスの作成
SDL_Surface * createText (const char *text, int pxSize, unsigned long color=White, unsigned long background=Black)


Detailed Description

文字描画

Definition at line 28 of file ttfDraw.h.


Member Function Documentation

bool TTF_Draw::load ( const char *  file  ) 

TrueTypeFont資源の読み出し.

Parameters:
file [i] TrueTypeFont資源のファイル
Returns:
正常に読み込めた場合に true

Definition at line 68 of file ttfDraw.cpp.

References VXV::length().

Referenced by vmonitor::getObject(), and ResourceInitialize::Initialize().

SDL_Surface * TTF_Draw::createText ( const unsigned short *  text,
int  pxSize,
unsigned long  color = White,
unsigned long  background = Black 
)

文字列サーフェスの作成

Parameters:
text [i] ユニコード文字列
pxSize [i] 文字サイズ
color [i] 色
background 背景色

Definition at line 87 of file ttfDraw.cpp.

Referenced by ComboBoxComponent::activate(), createText(), UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().

SDL_Surface * TTF_Draw::createText ( const char *  text,
int  pxSize,
unsigned long  color = White,
unsigned long  background = Black 
)

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

Parameters:
text [i] 文字列
pxSize [i] 文字サイズ
color [i] 色
background 背景色

Definition at line 120 of file ttfDraw.cpp.

References createText(), and VXV::length().


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