vdr
1.7.27
|
Public Member Functions | |
cTrueColorDemo (void) | |
virtual | ~cTrueColorDemo () |
virtual void | Show (void) |
virtual eOSState | ProcessKey (eKeys Key) |
Private Member Functions | |
virtual void | Action (void) |
cPixmap * | CreateTextPixmap (const char *s, int Line, int Layer, tColor ColorFg, tColor ColorBg, const cFont *Font) |
Private Attributes | |
cOsd * | osd |
cPoint | cursor |
cRect | cursorLimits |
bool | clockwise |
cPixmap * | destroyablePixmap |
cPixmap * | toggleablePixmap |
cTrueColorDemo::cTrueColorDemo | ( | void | ) |
Definition at line 96 of file osddemo.c.
References clockwise, destroyablePixmap, osd, and toggleablePixmap.
cTrueColorDemo::~cTrueColorDemo | ( | ) | [virtual] |
Definition at line 104 of file osddemo.c.
References cThread::Cancel(), and osd.
void cTrueColorDemo::Action | ( | void | ) | [private, virtual] |
A derived cThread class must implement the code it wants to execute as a separate thread in this function.
If this is a loop, it must check Running() repeatedly to see whether it's time to stop.
Implements cThread.
Definition at line 123 of file osddemo.c.
References ALPHA_OPAQUE, ArgbToColor(), cRect::Bottom(), cPixmap::Clear(), clockwise, clrBlack, clrRed, clrTransparent, clrWhite, clrYellow, cFont::CreateFont(), cOsd::CreatePixmap(), CreateTextPixmap(), cursor, cursorLimits, destroyablePixmap, cPixmap::DrawEllipse(), cPixmap::DrawPort(), cPixmap::DrawRectangle(), cPixmap::DrawText(), cOsd::Flush(), cSetup::FontOsd, cSetup::FontOsdSize, cSetup::FontSml, cSetup::FontSmlSize, cRect::Grow(), cRect::Grown(), cFont::Height(), cRect::Height(), cOsd::Height(), HsvToColor(), cThread::Lock(), LOCK_THREAD, min(), cTimeMs::Now(), osd, cPixmap::Pan(), cRect::Point(), cRect::Right(), cThread::Running(), cPoint::Set(), cRect::Set(), cPixmap::SetAlpha(), cRect::SetBottom(), cPixmap::SetDrawPortPoint(), cPixmap::SetLayer(), cImage::SetPixel(), cRect::SetPoint(), cRect::SetRight(), cPixmap::SetTile(), Setup, cPixmap::SetViewPort(), cPoint::SetY(), cPoint::Shifted(), cCondWait::SleepMs(), cString::sprintf(), cThread::Start(), taCenter, toggleablePixmap, cThread::Unlock(), cPixmap::ViewPort(), cFont::Width(), cRect::Width(), cOsd::Width(), cPoint::X(), cRect::X(), cPoint::Y(), and cRect::Y().
cPixmap * cTrueColorDemo::CreateTextPixmap | ( | const char * | s, |
int | Line, | ||
int | Layer, | ||
tColor | ColorFg, | ||
tColor | ColorBg, | ||
const cFont * | Font | ||
) | [private] |
Definition at line 110 of file osddemo.c.
References cPixmap::Clear(), cOsd::CreatePixmap(), cPixmap::DrawText(), cFont::Height(), osd, cPixmap::SetAlpha(), cFont::Width(), and cOsd::Width().
Referenced by Action().
eOSState cTrueColorDemo::ProcessKey | ( | eKeys | Key | ) | [virtual] |
Reimplemented from cOsdObject.
Definition at line 406 of file osddemo.c.
References cRect::Bottom(), clockwise, cursor, cursorLimits, destroyablePixmap, cOsd::DestroyPixmap(), k_Repeat, kDown, kGreen, kLeft, kOk, kRed, kRight, kUp, cPixmap::Layer(), cRect::Left(), LOCK_PIXMAPS, LOCK_THREAD, max(), min(), osContinue, osd, osEnd, osUnknown, cRect::Right(), cPixmap::SetLayer(), cPoint::SetX(), cPoint::SetY(), toggleablePixmap, cRect::Top(), cPoint::X(), and cPoint::Y().
void cTrueColorDemo::Show | ( | void | ) | [virtual] |
Reimplemented from cOsdObject.
Definition at line 393 of file osddemo.c.
References clrGray50, cOsd::DrawRectangle(), cOsd::Flush(), cOsd::Height(), cOsdProvider::NewOsd(), oeOk, osd, cOsd::OsdHeight(), cOsd::OsdLeft(), cOsd::OsdTop(), cOsd::OsdWidth(), cOsd::SetAreas(), cThread::Start(), and cOsd::Width().
bool cTrueColorDemo::clockwise [private] |
Definition at line 84 of file osddemo.c.
Referenced by Action(), cTrueColorDemo(), and ProcessKey().
cPoint cTrueColorDemo::cursor [private] |
Definition at line 82 of file osddemo.c.
Referenced by Action(), and ProcessKey().
cRect cTrueColorDemo::cursorLimits [private] |
Definition at line 83 of file osddemo.c.
Referenced by Action(), and ProcessKey().
cPixmap* cTrueColorDemo::destroyablePixmap [private] |
Definition at line 85 of file osddemo.c.
Referenced by Action(), cTrueColorDemo(), and ProcessKey().
cOsd* cTrueColorDemo::osd [private] |
Definition at line 81 of file osddemo.c.
Referenced by Action(), CreateTextPixmap(), cTrueColorDemo(), ProcessKey(), Show(), and ~cTrueColorDemo().
cPixmap* cTrueColorDemo::toggleablePixmap [private] |
Definition at line 86 of file osddemo.c.
Referenced by Action(), cTrueColorDemo(), and ProcessKey().