vdr 2.7.3
|
Public Member Functions | |
cTrueColorDemo (void) | |
virtual | ~cTrueColorDemo () |
virtual void | Show (void) |
virtual eOSState | ProcessKey (eKeys Key) |
![]() | |
cOsdObject (bool FastResponse=false) | |
virtual | ~cOsdObject () |
virtual bool | NeedsFastResponse (void) |
bool | IsMenu (void) const |
![]() | |
cThread (const char *Description=NULL, bool LowPriority=false) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
Private Member Functions | |
bool | SetArea (void) |
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 |
Additional Inherited Members | |
![]() | |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
![]() | |
void | SetNeedsFastResponse (bool NeedsFastResponse) |
![]() | |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
cTrueColorDemo::cTrueColorDemo | ( | void | ) |
Definition at line 322 of file osddemo.c.
References clockwise, destroyablePixmap, osd, and toggleablePixmap.
|
virtual |
Definition at line 330 of file osddemo.c.
References cThread::Cancel(), and osd.
|
privatevirtual |
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 349 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(), cOsd::Height(), cRect::Height(), cSize::Height(), HsvToColor(), cPixmap::Lock(), LOCK_THREAD, cOsd::MaxPixmapSize(), 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, cPixmap::Unlock(), cPixmap::ViewPort(), cFont::Width(), cOsd::Width(), cRect::Width(), cPoint::X(), cRect::X(), cPoint::Y(), and cRect::Y().
|
private |
Definition at line 336 of file osddemo.c.
References cPixmap::Clear(), cOsd::CreatePixmap(), cPixmap::DrawText(), Font, cCursesFont::Height(), osd, cPixmap::SetAlpha(), cCursesFont::Width(), and cOsd::Width().
Referenced by Action().
Reimplemented from cOsdObject.
Definition at line 646 of file osddemo.c.
References cRect::Bottom(), cThread::Cancel(), clockwise, cursor, cursorLimits, destroyablePixmap, cOsd::DestroyPixmap(), DrawEllipseAlignments(), DrawEllipses(), DrawImages(), DrawSlopes(), k1, k2, k3, k4, k_Repeat, kBack, kDown, kGreen, kLeft, kOk, kRed, kRight, kUp, cPixmap::Layer(), cRect::Left(), LOCK_PIXMAPS, LOCK_THREAD, max(), min(), osContinue, osd, osEnd, osUnknown, cOsdObject::ProcessKey(), cRect::Right(), SetArea(), cPixmap::SetLayer(), cPoint::SetX(), cPoint::SetY(), toggleablePixmap, cRect::Top(), cPoint::X(), and cPoint::Y().
|
private |
Definition at line 625 of file osddemo.c.
References oeOk, osd, cOsd::OsdHeight(), cOsd::OsdWidth(), and cOsd::SetAreas().
Referenced by ProcessKey(), and Show().
|
virtual |
Reimplemented from cOsdObject.
Definition at line 634 of file osddemo.c.
References clrGray50, cOsd::DrawRectangle(), cOsd::Flush(), cOsd::Height(), cOsdProvider::NewOsd(), osd, cOsd::OsdLeft(), cOsd::OsdTop(), SetArea(), cThread::Start(), and cOsd::Width().
|
private |
Definition at line 309 of file osddemo.c.
Referenced by Action(), cTrueColorDemo(), and ProcessKey().
|
private |
Definition at line 307 of file osddemo.c.
Referenced by Action(), and ProcessKey().
|
private |
Definition at line 308 of file osddemo.c.
Referenced by Action(), and ProcessKey().
|
private |
Definition at line 310 of file osddemo.c.
Referenced by Action(), cTrueColorDemo(), and ProcessKey().
|
private |
Definition at line 306 of file osddemo.c.
Referenced by Action(), CreateTextPixmap(), cTrueColorDemo(), ProcessKey(), SetArea(), Show(), and ~cTrueColorDemo().
|
private |
Definition at line 311 of file osddemo.c.
Referenced by Action(), cTrueColorDemo(), and ProcessKey().