svvitch
digital signage player
|
テキストコンテントクラス. More...
#include <TextContent.h>
Public Member Functions | |
TextContent (Renderer &renderer, int splitType, float x=0, float y=0, float w=0, float h=0) | |
virtual | ‾TextContent () |
bool | open (const MediaItemPtr media, const int offset=0) |
ファイルをオープンします | |
void | setReference (TextContent *text) |
void | play () |
再生 | |
void | stop () |
停止 | |
const bool | finished () |
終了したかどうか | |
void | close () |
ファイルをクローズします | |
int | getTextWidth () |
int | getTextHeight () |
void | setColor (DWORD c1, DWORD c2) |
void | setBorder1 (int size, DWORD col) |
void | setBorder2 (int size, DWORD col) |
void | setFont (string font) |
void | setFontHeight (int height, int desent=0) |
void | setTextStyle (string style) |
void | setAlign (string align) |
void | setFitBounds (bool fit) |
void | drawTexture (string text) |
void | process (const DWORD &frame) |
1フレームに1度だけ処理される | |
void | draw (const DWORD &frame) |
描画 | |
Private Member Functions | |
void | initialize () |
初期化 | |
void | drawText (string text, Gdiplus::Bitmap &bitmap, Gdiplus::Rect &rect) |
Private Attributes | |
Poco::FastMutex | _lock |
Poco::FastMutex | _initializeLock |
LPDIRECT3DTEXTURE9 | _texture |
TextContent * | _referencedText |
string | _text |
string | _textFont |
string | _textStyle |
int | _textHeight |
int | _desent |
Gdiplus::Color | _c1 |
Gdiplus::Color | _c2 |
Gdiplus::Color | _b1 |
Gdiplus::REAL | _borderSize1 |
Gdiplus::Color | _b2 |
Gdiplus::REAL | _borderSize2 |
int | _ax |
int | _tw |
int | _th |
int | _iw |
int | _ih |
int | _cx |
int | _cy |
int | _cw |
int | _ch |
int | _sx |
int | _sy |
string | _move |
bool | _async |
float | _dx |
float | _dy |
int | _frameWait |
string | _align |
bool | _fitBounds |
Gdiplus::FontFamily | _ff [16] |
TextContent::TextContent | ( | Renderer & | renderer, |
int | splitType, | ||
float | x = 0 , |
||
float | y = 0 , |
||
float | w = 0 , |
||
float | h = 0 |
||
) |
void TextContent::close | ( | ) | [virtual] |
ファイルをクローズします
Reimplemented from Content.
Definition at line 170 of file TextContent.cpp.
void TextContent::draw | ( | const DWORD & | frame | ) | [virtual] |
描画
Reimplemented from Content.
Definition at line 271 of file TextContent.cpp.
void TextContent::drawText | ( | string | text, |
Gdiplus::Bitmap & | bitmap, | ||
Gdiplus::Rect & | rect | ||
) | [private] |
Definition at line 584 of file TextContent.cpp.
void TextContent::drawTexture | ( | string | text | ) |
Definition at line 480 of file TextContent.cpp.
const bool TextContent::finished | ( | ) | [virtual] |
int TextContent::getTextHeight | ( | ) |
Definition at line 431 of file TextContent.cpp.
int TextContent::getTextWidth | ( | ) |
Definition at line 427 of file TextContent.cpp.
void TextContent::initialize | ( | ) | [private, virtual] |
初期化
Reimplemented from Content.
Definition at line 27 of file TextContent.cpp.
bool TextContent::open | ( | const MediaItemPtr | media, |
const int | offset = 0 |
||
) | [virtual] |
ファイルをオープンします
Reimplemented from Content.
Definition at line 34 of file TextContent.cpp.
void TextContent::play | ( | ) | [virtual] |
void TextContent::process | ( | const DWORD & | frame | ) | [virtual] |
1フレームに1度だけ処理される
Reimplemented from Content.
Definition at line 190 of file TextContent.cpp.
void TextContent::setAlign | ( | string | align | ) |
Definition at line 467 of file TextContent.cpp.
void TextContent::setBorder1 | ( | int | size, |
DWORD | col | ||
) |
Definition at line 444 of file TextContent.cpp.
void TextContent::setBorder2 | ( | int | size, |
DWORD | col | ||
) |
Definition at line 449 of file TextContent.cpp.
void TextContent::setColor | ( | DWORD | c1, |
DWORD | c2 | ||
) |
Definition at line 439 of file TextContent.cpp.
void TextContent::setFitBounds | ( | bool | fit | ) |
Definition at line 435 of file TextContent.cpp.
void TextContent::setFont | ( | string | font | ) |
Definition at line 454 of file TextContent.cpp.
void TextContent::setFontHeight | ( | int | height, |
int | desent = 0 |
||
) |
Definition at line 458 of file TextContent.cpp.
void TextContent::setReference | ( | TextContent * | text | ) |
void TextContent::setTextStyle | ( | string | style | ) |
Definition at line 463 of file TextContent.cpp.
void TextContent::stop | ( | ) | [virtual] |
TextContent::‾TextContent | ( | ) | [virtual] |
string TextContent::_align [private] |
Definition at line 46 of file TextContent.h.
bool TextContent::_async [private] |
Definition at line 42 of file TextContent.h.
int TextContent::_ax [private] |
Definition at line 30 of file TextContent.h.
Gdiplus::Color TextContent::_b1 [private] |
Definition at line 26 of file TextContent.h.
Gdiplus::Color TextContent::_b2 [private] |
Definition at line 28 of file TextContent.h.
Gdiplus::REAL TextContent::_borderSize1 [private] |
Definition at line 27 of file TextContent.h.
Gdiplus::REAL TextContent::_borderSize2 [private] |
Definition at line 29 of file TextContent.h.
Gdiplus::Color TextContent::_c1 [private] |
Definition at line 24 of file TextContent.h.
Gdiplus::Color TextContent::_c2 [private] |
Definition at line 25 of file TextContent.h.
int TextContent::_ch [private] |
Definition at line 38 of file TextContent.h.
int TextContent::_cw [private] |
Definition at line 37 of file TextContent.h.
int TextContent::_cx [private] |
Definition at line 35 of file TextContent.h.
int TextContent::_cy [private] |
Definition at line 36 of file TextContent.h.
int TextContent::_desent [private] |
Definition at line 23 of file TextContent.h.
float TextContent::_dx [private] |
Definition at line 43 of file TextContent.h.
float TextContent::_dy [private] |
Definition at line 44 of file TextContent.h.
Gdiplus::FontFamily TextContent::_ff[16] [private] |
Definition at line 48 of file TextContent.h.
bool TextContent::_fitBounds [private] |
Definition at line 47 of file TextContent.h.
int TextContent::_frameWait [private] |
Definition at line 45 of file TextContent.h.
int TextContent::_ih [private] |
Definition at line 34 of file TextContent.h.
Poco::FastMutex TextContent::_initializeLock [private] |
Definition at line 15 of file TextContent.h.
int TextContent::_iw [private] |
Definition at line 33 of file TextContent.h.
Poco::FastMutex TextContent::_lock [private] |
Definition at line 14 of file TextContent.h.
string TextContent::_move [private] |
Definition at line 41 of file TextContent.h.
TextContent* TextContent::_referencedText [private] |
Definition at line 18 of file TextContent.h.
int TextContent::_sx [private] |
Definition at line 39 of file TextContent.h.
int TextContent::_sy [private] |
Definition at line 40 of file TextContent.h.
string TextContent::_text [private] |
Definition at line 19 of file TextContent.h.
string TextContent::_textFont [private] |
Definition at line 20 of file TextContent.h.
int TextContent::_textHeight [private] |
Definition at line 22 of file TextContent.h.
string TextContent::_textStyle [private] |
Definition at line 21 of file TextContent.h.
LPDIRECT3DTEXTURE9 TextContent::_texture [private] |
Definition at line 17 of file TextContent.h.
int TextContent::_th [private] |
Definition at line 32 of file TextContent.h.
int TextContent::_tw [private] |
Definition at line 31 of file TextContent.h.