vdr
2.2.0
|
#include <osd.h>
Public Member Functions | |
cRect (void) | |
cRect (int X, int Y, int Width, int Height) | |
cRect (const cPoint &Point, const cSize &Size) | |
cRect (const cSize &Size) | |
cRect (const cRect &Rect) | |
bool | operator== (const cRect &Rect) const |
bool | operator!= (const cRect &Rect) const |
int | X (void) const |
int | Y (void) const |
int | Width (void) const |
int | Height (void) const |
int | Left (void) const |
int | Top (void) const |
int | Right (void) const |
int | Bottom (void) const |
const cPoint & | Point (void) const |
const cSize & | Size (void) const |
void | Set (int X, int Y, int Width, int Height) |
void | Set (cPoint Point, cSize Size) |
void | SetPoint (int X, int Y) |
void | SetPoint (const cPoint &Point) |
void | SetSize (int Width, int Height) |
void | SetSize (const cSize &Size) |
void | SetX (int X) |
void | SetY (int Y) |
void | SetWidth (int Width) |
void | SetHeight (int Height) |
void | SetLeft (int Left) |
void | SetTop (int Top) |
void | SetRight (int Right) |
void | SetBottom (int Bottom) |
void | Shift (int Dx, int Dy) |
void | Shift (const cPoint &Dp) |
cRect | Shifted (int Dx, int Dy) const |
cRect | Shifted (const cPoint &Dp) const |
void | Grow (int Dx, int Dy) |
cRect | Grown (int Dw, int Dh) const |
bool | Contains (const cPoint &Point) const |
bool | Contains (const cRect &Rect) const |
bool | Intersects (const cRect &Rect) const |
cRect | Intersected (const cRect &Rect) const |
void | Combine (const cRect &Rect) |
cRect | Combined (const cRect &Rect) const |
void | Combine (const cPoint &Point) |
cRect | Combined (const cPoint &Point) const |
bool | IsEmpty (void) const |
Static Public Attributes | |
static const cRect | Null |
Private Attributes | |
cPoint | point |
cSize | size |
|
inline |
Definition at line 372 of file osd.h.
Referenced by Combine(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), and Intersects().
void cRect::Combine | ( | const cRect & | Rect | ) |
void cRect::Combine | ( | const cPoint & | Point | ) |
Combines this rectangle with the given Point.
Definition at line 945 of file osd.c.
References max(), min(), cPixmap::mutex, cPoint::X(), and cPoint::Y().
bool cRect::Contains | ( | const cPoint & | Point | ) | const |
Returns true if this rectangle contains Point.
Definition at line 896 of file osd.c.
References cPoint::X(), and cPoint::Y().
bool cRect::Contains | ( | const cRect & | Rect | ) | const |
void cRect::Grow | ( | int | Dx, |
int | Dy | ||
) |
|
inline |
|
inline |
Definition at line 368 of file osd.h.
References cSize::Height().
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), cPixmapMemory::Render(), cDvbHdFfDevice::ScaleVideo(), and cPixmapMemory::Scroll().
Returns the intersection of this rectangle and the given Rect.
Definition at line 920 of file osd.c.
References Bottom(), IsEmpty(), Left(), max(), min(), Right(), SetBottom(), SetLeft(), SetRight(), SetTop(), and Top().
Referenced by cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmap::MarkDrawPortDirty(), cPixmap::MarkViewPortDirty(), cPixmapMemory::Render(), and cPixmapMemory::Scroll().
bool cRect::Intersects | ( | const cRect & | Rect | ) | const |
|
inline |
Returns true if this rectangle is empty.
Definition at line 415 of file osd.h.
Referenced by Combine(), cPixmapMemory::Copy(), cPixmap::cPixmap(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), Intersected(), cPixmapMemory::Render(), cOsd::RenderPixmaps(), and cPixmapMemory::Scroll().
|
inline |
Definition at line 369 of file osd.h.
Referenced by Combine(), Contains(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cPixmapMemory::Render(), and cPixmapMemory::Scroll().
|
inline |
|
inline |
Definition at line 373 of file osd.h.
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), cPixmap::DrawPixmap(), operator==(), cPixmapMemory::Render(), cOsd::RenderPixmaps(), and cPixmapMemory::Scroll().
|
inline |
Definition at line 371 of file osd.h.
Referenced by Combine(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), and Intersects().
|
inline |
Definition at line 375 of file osd.h.
References cPoint::Set(), and cSize::Set().
Definition at line 376 of file osd.h.
References cPoint::Set(), and cSize::Set().
|
inline |
Definition at line 388 of file osd.h.
Referenced by Intersected().
|
inline |
Definition at line 384 of file osd.h.
References cSize::SetHeight().
|
inline |
Definition at line 385 of file osd.h.
Referenced by Intersected().
|
inline |
Definition at line 377 of file osd.h.
References cPoint::Set().
Referenced by cTrueColorDemo::Action(), cPixmap::cPixmap(), and cPixmap::DrawPixmap().
|
inline |
Definition at line 378 of file osd.h.
References cPoint::Set().
|
inline |
Definition at line 387 of file osd.h.
Referenced by Intersected().
|
inline |
Definition at line 379 of file osd.h.
References cSize::Set().
|
inline |
Definition at line 380 of file osd.h.
References cSize::Set().
|
inline |
Definition at line 386 of file osd.h.
Referenced by Intersected().
|
inline |
Definition at line 383 of file osd.h.
References cSize::SetWidth().
|
inline |
Definition at line 381 of file osd.h.
References cPoint::SetX().
|
inline |
Definition at line 382 of file osd.h.
References cPoint::SetY().
|
inline |
Definition at line 389 of file osd.h.
References cPoint::Shift().
Referenced by cPixmap::DrawPixmap(), and Shifted().
|
inline |
Definition at line 390 of file osd.h.
References cPoint::Shift().
|
inline |
Definition at line 391 of file osd.h.
References Shift().
Referenced by cPixmapMemory::Copy(), cPixmap::MarkDrawPortDirty(), cPixmapMemory::Render(), and cPixmapMemory::Scroll().
|
inline |
Definition at line 374 of file osd.h.
Referenced by cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), operator==(), and cPixmapMemory::Render().
|
inline |
Definition at line 370 of file osd.h.
Referenced by Combine(), Contains(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cPixmapMemory::Render(), and cPixmapMemory::Scroll().
|
inline |
Definition at line 367 of file osd.h.
References cSize::Width().
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawImage(), cPixmapMemory::DrawPixel(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), cFreetypeFont::DrawText(), cPixmapMemory::Render(), cDvbHdFfDevice::ScaleVideo(), and cPixmapMemory::Scroll().
|
inline |
Definition at line 365 of file osd.h.
References cPoint::X().
Referenced by cTrueColorDemo::Action(), and cDvbHdFfDevice::ScaleVideo().
|
inline |
Definition at line 366 of file osd.h.
References cPoint::Y().
Referenced by cTrueColorDemo::Action(), and cDvbHdFfDevice::ScaleVideo().
|
static |
Definition at line 357 of file osd.h.
Referenced by cDevice::CanScaleVideo(), cPixmapMemory::Data(), cPixmap::DirtyDrawPort(), cOsd::Height(), cBitmap::Scaled(), cDvbHdFfDevice::ScaleVideo(), and cPixmap::~cPixmap().