vdr 2.7.5
|
#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 358 of file osd.h.
Referenced by Combine(), Combined(), Combined(), Contains(), cRect(), Grown(), Intersected(), Intersects(), operator!=(), operator==(), Shifted(), and Shifted().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 372 of file osd.h.
Referenced by Combine(), Combine(), Contains(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), and SetBottom().
void cRect::Combine | ( | const cPoint & | Point | ) |
void cRect::Combine | ( | const cRect & | Rect | ) |
Combines this rectangle with the given Rect.
Definition at line 934 of file osd.c.
References Bottom(), cRect(), IsEmpty(), Left(), max(), min(), Right(), SetBottom(), SetLeft(), SetRight(), SetTop(), and Top().
Referenced by Combined(), Combined(), and cOsd::RenderPixmaps().
bool cRect::Contains | ( | const cPoint & | Point | ) | const |
bool cRect::Contains | ( | const cRect & | Rect | ) | const |
void cRect::Grow | ( | int | Dx, |
int | Dy ) |
|
inline |
Definition at line 396 of file osd.h.
References cRect(), and Grow().
Referenced by cTrueColorDemo::Action().
|
inline |
Definition at line 368 of file osd.h.
References size.
Referenced by cTrueColorDemo::Action(), Bottom(), cPixmapMemory::Copy(), cRect(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), IsEmpty(), cPixmapMemory::Render(), cDvbHdFfDevice::ScaleVideo(), cPixmapMemory::Scroll(), Set(), SetHeight(), SetSize(), and SetTop().
Returns the intersection of this rectangle and the given Rect.
Definition at line 922 of file osd.c.
References Bottom(), cRect(), IsEmpty(), Left(), max(), min(), Right(), SetBottom(), SetLeft(), SetRight(), SetTop(), and Top().
Referenced by cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawImage(), 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.
References Height(), and Width().
Referenced by Combine(), Combine(), cPixmapMemory::Copy(), 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.
References X().
Referenced by Combine(), Combine(), Contains(), Contains(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cPixmapMemory::Render(), cPixmapMemory::Scroll(), and SetLeft().
|
inline |
|
inline |
|
inline |
Definition at line 373 of file osd.h.
References point.
Referenced by cTrueColorDemo::Action(), Combine(), Combined(), Contains(), cPixmapMemory::Copy(), cRect(), cRect(), cPixmap::DrawPixmap(), operator==(), cPixmapMemory::Render(), cOsd::RenderPixmaps(), cPixmapMemory::Scroll(), Set(), and SetPoint().
|
inline |
Definition at line 371 of file osd.h.
Referenced by Combine(), Combine(), Contains(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), and SetRight().
|
inline |
|
inline |
Definition at line 388 of file osd.h.
References Bottom(), SetHeight(), and Y().
Referenced by Combine(), Combine(), and Intersected().
|
inline |
|
inline |
Definition at line 385 of file osd.h.
References Left(), SetWidth(), SetX(), Width(), and X().
Referenced by Combine(), Combine(), and Intersected().
|
inline |
|
inline |
Definition at line 377 of file osd.h.
References point, X(), and Y().
Referenced by cTrueColorDemo::Action(), and cPixmap::DrawPixmap().
|
inline |
Definition at line 387 of file osd.h.
References Right(), SetWidth(), and X().
Referenced by Combine(), Combine(), and Intersected().
|
inline |
|
inline |
|
inline |
Definition at line 386 of file osd.h.
References Height(), SetHeight(), SetY(), Top(), and Y().
Referenced by Combine(), Combine(), and Intersected().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 391 of file osd.h.
References cRect(), and Shift().
Referenced by cPixmapMemory::Copy(), cPixmap::MarkDrawPortDirty(), cPixmapMemory::Render(), and cPixmapMemory::Scroll().
|
inline |
Definition at line 374 of file osd.h.
References size.
Referenced by cRect(), cRect(), cRect(), cPixmap::DrawPixmap(), operator==(), cPixmapMemory::Render(), Set(), and SetSize().
|
inline |
Definition at line 370 of file osd.h.
References Y().
Referenced by Combine(), Combine(), Contains(), Contains(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cPixmapMemory::Render(), cPixmapMemory::Scroll(), and SetTop().
|
inline |
Definition at line 367 of file osd.h.
References size.
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), cRect(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawBlendedPixel(), cPixmapMemory::DrawImage(), cPixmapMemory::DrawPixel(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), cFreetypeFont::DrawText(), IsEmpty(), cPixmapMemory::Render(), Right(), cDvbHdFfDevice::ScaleVideo(), cPixmapMemory::Scroll(), Set(), SetLeft(), SetSize(), and SetWidth().
|
inline |
Definition at line 365 of file osd.h.
References point.
Referenced by cTrueColorDemo::Action(), cRect(), Left(), Right(), cDvbHdFfDevice::ScaleVideo(), Set(), SetLeft(), SetPoint(), SetRight(), and SetX().
|
inline |
Definition at line 366 of file osd.h.
References point.
Referenced by cTrueColorDemo::Action(), Bottom(), cRect(), cDvbHdFfDevice::ScaleVideo(), Set(), SetBottom(), SetPoint(), SetTop(), SetY(), and Top().
|
static |
Definition at line 357 of file osd.h.
Referenced by cDevice::CanScaleVideo(), cPixmap::Pan(), cDevice::ScaleVideo(), cDvbHdFfDevice::ScaleVideo(), cPixmap::Scroll(), and cPixmapMemory::Scroll().
|
private |
|
private |