vdr 2.6.1
|
#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 |
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 |
Definition at line 352 of file include/vdr/osd.h.
|
inline |
Definition at line 358 of file include/vdr/osd.h.
|
inline |
Definition at line 359 of file include/vdr/osd.h.
Definition at line 360 of file include/vdr/osd.h.
|
inline |
Definition at line 361 of file include/vdr/osd.h.
|
inline |
Definition at line 362 of file include/vdr/osd.h.
|
inline |
Definition at line 372 of file include/vdr/osd.h.
Referenced by cTrueColorDemo::Action(), Combine(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cTrueColorDemo::ProcessKey(), and SetBottom().
|
inline |
void cRect::Combine | ( | const cPoint & | Point | ) |
Combines this rectangle with the given Point.
Definition at line 947 of file osd.c.
References Bottom(), IsEmpty(), Left(), max(), min(), Point(), Right(), Set(), SetBottom(), SetLeft(), SetRight(), SetTop(), Top(), cPoint::X(), and cPoint::Y().
void cRect::Combine | ( | const cPoint & | Point | ) |
Combines this rectangle with the given Point.
void cRect::Combine | ( | const cRect & | Rect | ) |
Combines this rectangle with the given Rect.
Definition at line 934 of file osd.c.
References Bottom(), IsEmpty(), Left(), max(), min(), Right(), SetBottom(), SetLeft(), SetRight(), SetTop(), and Top().
Referenced by Combined(), cPixmap::MarkDrawPortDirty(), cPixmap::MarkViewPortDirty(), and cOsd::RenderPixmaps().
void cRect::Combine | ( | const cRect & | Rect | ) |
Combines this rectangle with the given Rect.
Returns the surrounding rectangle that contains this rectangle and the given Point.
Definition at line 412 of file include/vdr/osd.h.
Returns the surrounding rectangle that contains this rectangle and the given Rect.
Definition at line 407 of file include/vdr/osd.h.
References Combine().
bool cRect::Contains | ( | const cPoint & | Point | ) | const |
Returns true if this rectangle contains Point.
Definition at line 898 of file osd.c.
References Bottom(), Left(), Point(), Right(), Top(), cPoint::X(), and cPoint::Y().
Referenced by cPixmap::MarkDrawPortDirty(), and cPixmap::MarkViewPortDirty().
bool cRect::Contains | ( | const cPoint & | Point | ) | const |
Returns true if this rectangle contains Point.
bool cRect::Contains | ( | const cRect & | Rect | ) | const |
bool cRect::Contains | ( | const cRect & | Rect | ) | const |
Returns true if this rectangle completely contains Rect.
void cRect::Grow | ( | int | Dx, |
int | Dy | ||
) |
Grows the rectangle by the given number of pixels in either direction.
A negative value will shrink the rectangle.
Definition at line 892 of file osd.c.
References cSize::Grow(), point, cPoint::Shift(), and size.
Referenced by cTrueColorDemo::Action(), and Grown().
void cRect::Grow | ( | int | Dx, |
int | Dy | ||
) |
Grows the rectangle by the given number of pixels in either direction.
A negative value will shrink the rectangle.
|
inline |
Definition at line 396 of file include/vdr/osd.h.
References Grow().
Referenced by cTrueColorDemo::Action().
|
inline |
|
inline |
Definition at line 368 of file include/vdr/osd.h.
References cSize::Height(), and size.
Referenced by cTrueColorDemo::Action(), Bottom(), cPixmapMemory::Copy(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), IsEmpty(), cPixmapMemory::Render(), cDvbHdFfDevice::ScaleVideo(), cPixmapMemory::Scroll(), Set(), SetHeight(), SetSize(), cPixmap::SetTile(), and SetTop().
|
inline |
Definition at line 368 of file osd.h.
References cSize::Height(), and size.
Returns the intersection of this rectangle and the given Rect.
Definition at line 922 of file osd.c.
References Bottom(), 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().
Returns the intersection of this rectangle and the given Rect.
bool cRect::Intersects | ( | const cRect & | Rect | ) | const |
bool cRect::Intersects | ( | const cRect & | Rect | ) | const |
Returns true if this rectangle intersects with Rect.
|
inline |
Returns true if this rectangle is empty.
Definition at line 415 of file include/vdr/osd.h.
References Height(), and Width().
Referenced by Combine(), cPixmapMemory::Copy(), cPixmap::cPixmap(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), Intersected(), cPixmapMemory::Render(), cOsd::RenderPixmaps(), and cPixmapMemory::Scroll().
|
inline |
|
inline |
Definition at line 369 of file include/vdr/osd.h.
References X().
Referenced by Combine(), Contains(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cTrueColorDemo::ProcessKey(), cPixmapMemory::Render(), cPixmapMemory::Scroll(), and SetLeft().
|
inline |
Definition at line 364 of file include/vdr/osd.h.
|
inline |
|
inline |
|
inline |
Definition at line 373 of file include/vdr/osd.h.
References point.
Referenced by cTrueColorDemo::Action(), Combine(), Combined(), Contains(), cPixmapMemory::Copy(), cPixmap::DrawPixmap(), cPixmap::MarkDrawPortDirty(), operator==(), cPixmapMemory::Render(), cOsd::RenderPixmaps(), cOsd::RestoreRegion(), cPixmapMemory::Scroll(), Set(), cPixmap::SetDrawPortPoint(), SetPoint(), cPixmap::SetTile(), and cPixmap::SetViewPort().
|
inline |
|
inline |
Definition at line 371 of file include/vdr/osd.h.
Referenced by cTrueColorDemo::Action(), Combine(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cTrueColorDemo::ProcessKey(), and SetRight().
|
inline |
Definition at line 376 of file include/vdr/osd.h.
References point, Point(), cSize::Set(), cPoint::Set(), size, and Size().
Definition at line 376 of file osd.h.
References point, Point(), cSize::Set(), cPoint::Set(), size, and Size().
|
inline |
Definition at line 375 of file include/vdr/osd.h.
References Height(), point, cSize::Set(), cPoint::Set(), size, Width(), X(), and Y().
Referenced by cTrueColorDemo::Action(), and Combine().
|
inline |
Definition at line 375 of file osd.h.
References Height(), point, cSize::Set(), cPoint::Set(), size, Width(), X(), and Y().
|
inline |
Definition at line 388 of file include/vdr/osd.h.
References Bottom(), SetHeight(), and Y().
Referenced by cTrueColorDemo::Action(), Combine(), and Intersected().
|
inline |
Definition at line 388 of file osd.h.
References Bottom(), SetHeight(), and Y().
|
inline |
Definition at line 384 of file include/vdr/osd.h.
References Height(), cSize::SetHeight(), and size.
Referenced by SetBottom(), and SetTop().
|
inline |
Definition at line 384 of file osd.h.
References Height(), cSize::SetHeight(), and size.
|
inline |
Definition at line 385 of file include/vdr/osd.h.
References Left(), SetWidth(), SetX(), Width(), and X().
Referenced by Combine(), and Intersected().
|
inline |
|
inline |
Definition at line 378 of file include/vdr/osd.h.
References point, Point(), and cPoint::Set().
|
inline |
Definition at line 378 of file osd.h.
References point, Point(), and cPoint::Set().
|
inline |
Definition at line 377 of file include/vdr/osd.h.
References point, cPoint::Set(), X(), and Y().
Referenced by cTrueColorDemo::Action(), cPixmap::cPixmap(), cPixmap::DrawPixmap(), and cPixmap::SetDrawPortPoint().
|
inline |
|
inline |
Definition at line 387 of file include/vdr/osd.h.
References Right(), SetWidth(), and X().
Referenced by cTrueColorDemo::Action(), Combine(), and Intersected().
|
inline |
Definition at line 387 of file osd.h.
References Right(), SetWidth(), and X().
|
inline |
Definition at line 380 of file include/vdr/osd.h.
References cSize::Set(), size, and Size().
|
inline |
Definition at line 380 of file osd.h.
References cSize::Set(), size, and Size().
|
inline |
Definition at line 379 of file include/vdr/osd.h.
References Height(), cSize::Set(), size, and Width().
|
inline |
|
inline |
Definition at line 386 of file include/vdr/osd.h.
References Height(), SetHeight(), SetY(), Top(), and Y().
Referenced by Combine(), and Intersected().
|
inline |
|
inline |
Definition at line 383 of file include/vdr/osd.h.
References cSize::SetWidth(), size, and Width().
Referenced by SetLeft(), and SetRight().
|
inline |
Definition at line 383 of file osd.h.
References cSize::SetWidth(), size, and Width().
|
inline |
Definition at line 381 of file include/vdr/osd.h.
References point, cPoint::SetX(), and X().
Referenced by SetLeft().
|
inline |
Definition at line 381 of file osd.h.
References point, cPoint::SetX(), and X().
|
inline |
Definition at line 382 of file include/vdr/osd.h.
References point, cPoint::SetY(), and Y().
Referenced by SetTop().
|
inline |
Definition at line 382 of file osd.h.
References point, cPoint::SetY(), and Y().
|
inline |
Definition at line 390 of file include/vdr/osd.h.
References point, and cPoint::Shift().
|
inline |
Definition at line 390 of file osd.h.
References point, and cPoint::Shift().
|
inline |
Definition at line 389 of file include/vdr/osd.h.
References point, and cPoint::Shift().
Referenced by cPixmap::DrawPixmap(), and Shifted().
|
inline |
Definition at line 389 of file osd.h.
References point, and cPoint::Shift().
Definition at line 392 of file include/vdr/osd.h.
References Shift().
|
inline |
Definition at line 391 of file include/vdr/osd.h.
References Shift().
Referenced by cPixmapMemory::Copy(), cPixmap::MarkDrawPortDirty(), cPixmapMemory::Render(), cPixmapMemory::Scroll(), cPixmap::SetDrawPortPoint(), and cPixmap::SetViewPort().
|
inline |
|
inline |
Definition at line 374 of file include/vdr/osd.h.
References size.
Referenced by cPixmap::DrawPixmap(), operator==(), cPixmapMemory::Render(), Set(), and SetSize().
|
inline |
|
inline |
Definition at line 370 of file include/vdr/osd.h.
References Y().
Referenced by Combine(), Contains(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), cTrueColorDemo::ProcessKey(), cPixmapMemory::Render(), cPixmapMemory::Scroll(), and SetTop().
|
inline |
Definition at line 367 of file include/vdr/osd.h.
References size, and cSize::Width().
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), 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(), cPixmap::SetTile(), and SetWidth().
|
inline |
Definition at line 367 of file osd.h.
References size, and cSize::Width().
|
inline |
Definition at line 365 of file include/vdr/osd.h.
References point, and cPoint::X().
Referenced by cTrueColorDemo::Action(), Left(), Right(), cDvbHdFfDevice::ScaleVideo(), Set(), SetLeft(), SetPoint(), SetRight(), and SetX().
|
inline |
Definition at line 365 of file osd.h.
References point, and cPoint::X().
|
inline |
Definition at line 366 of file include/vdr/osd.h.
References point, and cPoint::Y().
Referenced by cTrueColorDemo::Action(), Bottom(), cDvbHdFfDevice::ScaleVideo(), Set(), SetBottom(), SetPoint(), SetTop(), SetY(), and Top().
|
inline |
Definition at line 366 of file osd.h.
References point, and cPoint::Y().
|
static |
Definition at line 357 of file include/vdr/osd.h.
Referenced by cDevice::CanScaleVideo(), cDvbHdFfDevice::ScaleVideo(), and cPixmapMemory::Scroll().
|
private |
Definition at line 354 of file include/vdr/osd.h.
Referenced by Grow(), operator==(), Point(), Set(), SetPoint(), SetX(), SetY(), Shift(), X(), and Y().
|
private |
Definition at line 355 of file include/vdr/osd.h.
Referenced by Grow(), Height(), operator==(), Set(), SetHeight(), SetSize(), SetWidth(), Size(), and Width().