vdr
1.7.27
|
#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 338 of file include/vdr/osd.h.
cRect::cRect | ( | void | ) | [inline] |
Definition at line 344 of file include/vdr/osd.h.
cRect::cRect | ( | int | X, |
int | Y, | ||
int | Width, | ||
int | Height | ||
) | [inline] |
Definition at line 345 of file include/vdr/osd.h.
cRect::cRect | ( | const cPoint & | Point, |
const cSize & | Size | ||
) | [inline] |
Definition at line 346 of file include/vdr/osd.h.
cRect::cRect | ( | const cSize & | Size | ) | [inline] |
Definition at line 347 of file include/vdr/osd.h.
cRect::cRect | ( | const cRect & | Rect | ) | [inline] |
Definition at line 348 of file include/vdr/osd.h.
cRect::cRect | ( | void | ) | [inline] |
cRect::cRect | ( | int | X, |
int | Y, | ||
int | Width, | ||
int | Height | ||
) | [inline] |
cRect::cRect | ( | const cPoint & | Point, |
const cSize & | Size | ||
) | [inline] |
cRect::cRect | ( | const cSize & | Size | ) | [inline] |
cRect::cRect | ( | const cRect & | Rect | ) | [inline] |
int cRect::Bottom | ( | void | ) | const [inline] |
Definition at line 358 of file include/vdr/osd.h.
Referenced by cTrueColorDemo::Action(), Combine(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), and cTrueColorDemo::ProcessKey().
int cRect::Bottom | ( | void | ) | const [inline] |
void cRect::Combine | ( | const cRect & | Rect | ) |
Combines this rectangle with the given Rect.
Definition at line 907 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.
void cRect::Combine | ( | const cPoint & | Point | ) |
Combines this rectangle with the given Point.
Definition at line 920 of file osd.c.
References Bottom(), IsEmpty(), Left(), max(), min(), 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.
cRect cRect::Combined | ( | const cRect & | Rect | ) | const [inline] |
Returns the surrounding rectangle that contains this rectangle and the given Rect.
Definition at line 393 of file include/vdr/osd.h.
References Combine().
cRect cRect::Combined | ( | const cRect & | Rect | ) | const [inline] |
cRect cRect::Combined | ( | const cPoint & | Point | ) | const [inline] |
Returns the surrounding rectangle that contains this rectangle and the given Point.
Definition at line 398 of file include/vdr/osd.h.
References Combine().
cRect cRect::Combined | ( | const cPoint & | Point | ) | const [inline] |
bool cRect::Contains | ( | const cPoint & | Point | ) | const |
Returns true if this rectangle contains Point.
bool cRect::Contains | ( | const cPoint & | Point | ) | const |
Returns true if this rectangle contains Point.
Definition at line 871 of file osd.c.
References Bottom(), Left(), Right(), Top(), cPoint::X(), and cPoint::Y().
Referenced by cPixmap::MarkDrawPortDirty(), and cPixmap::MarkViewPortDirty().
bool cRect::Contains | ( | const cRect & | Rect | ) | const |
Returns true if this rectangle completely contains Rect.
bool cRect::Contains | ( | const cRect & | Rect | ) | const |
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.
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 865 of file osd.c.
References cSize::Grow(), point, cPoint::Shift(), and size.
Referenced by cTrueColorDemo::Action(), and Grown().
cRect cRect::Grown | ( | int | Dw, |
int | Dh | ||
) | const [inline] |
Definition at line 382 of file include/vdr/osd.h.
References Grow().
Referenced by cTrueColorDemo::Action().
cRect cRect::Grown | ( | int | Dw, |
int | Dh | ||
) | const [inline] |
int cRect::Height | ( | void | ) | const [inline] |
Definition at line 354 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(), cPixmapMemory::Scroll(), cPixmap::SetTile(), and SetTop().
int cRect::Height | ( | void | ) | const [inline] |
Definition at line 354 of file osd.h.
References cSize::Height(), and size.
cRect cRect::Intersected | ( | const cRect & | Rect | ) | const |
Returns the intersection of this rectangle and the given Rect.
Definition at line 895 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().
cRect cRect::Intersected | ( | const cRect & | Rect | ) | const |
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.
bool cRect::IsEmpty | ( | void | ) | const [inline] |
Returns true if this rectangle is empty.
Definition at line 401 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().
bool cRect::IsEmpty | ( | void | ) | const [inline] |
int cRect::Left | ( | void | ) | const [inline] |
int cRect::Left | ( | void | ) | const [inline] |
Definition at line 355 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(), and cPixmapMemory::Scroll().
bool cRect::operator!= | ( | const cRect & | Rect | ) | const [inline] |
Definition at line 350 of file include/vdr/osd.h.
bool cRect::operator== | ( | const cRect & | Rect | ) | const [inline] |
bool cRect::operator== | ( | const cRect & | Rect | ) | const [inline] |
const cPoint& cRect::Point | ( | void | ) | const [inline] |
Definition at line 359 of file include/vdr/osd.h.
References point.
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), cPixmap::DrawPixmap(), cPixmap::MarkDrawPortDirty(), operator==(), cPixmapMemory::Render(), cOsd::RenderPixmaps(), cOsd::RestoreRegion(), cPixmapMemory::Scroll(), cPixmap::SetDrawPortPoint(), cPixmap::SetTile(), and cPixmap::SetViewPort().
const cPoint& cRect::Point | ( | void | ) | const [inline] |
int cRect::Right | ( | void | ) | const [inline] |
Definition at line 357 of file include/vdr/osd.h.
Referenced by cTrueColorDemo::Action(), Combine(), Contains(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawEllipse(), cPixmap::DrawPixmap(), cPixmapMemory::DrawSlope(), Intersected(), Intersects(), and cTrueColorDemo::ProcessKey().
int cRect::Right | ( | void | ) | const [inline] |
void cRect::Set | ( | int | X, |
int | Y, | ||
int | Width, | ||
int | Height | ||
) | [inline] |
Definition at line 361 of file include/vdr/osd.h.
References point, cPoint::Set(), cSize::Set(), and size.
Referenced by cTrueColorDemo::Action(), and Combine().
void cRect::Set | ( | int | X, |
int | Y, | ||
int | Width, | ||
int | Height | ||
) | [inline] |
Definition at line 361 of file osd.h.
References point, cPoint::Set(), cSize::Set(), and size.
void cRect::Set | ( | cPoint | Point, |
cSize | Size | ||
) | [inline] |
Definition at line 362 of file osd.h.
References point, cPoint::Set(), cSize::Set(), and size.
void cRect::Set | ( | cPoint | Point, |
cSize | Size | ||
) | [inline] |
Definition at line 362 of file include/vdr/osd.h.
References point, cPoint::Set(), cSize::Set(), and size.
void cRect::SetBottom | ( | int | Bottom | ) | [inline] |
Definition at line 374 of file osd.h.
References SetHeight(), and Y().
void cRect::SetBottom | ( | int | Bottom | ) | [inline] |
Definition at line 374 of file include/vdr/osd.h.
References SetHeight(), and Y().
Referenced by cTrueColorDemo::Action(), Combine(), and Intersected().
void cRect::SetHeight | ( | int | Height | ) | [inline] |
Definition at line 370 of file include/vdr/osd.h.
References cSize::SetHeight(), and size.
Referenced by SetBottom(), and SetTop().
void cRect::SetHeight | ( | int | Height | ) | [inline] |
Definition at line 370 of file osd.h.
References cSize::SetHeight(), and size.
void cRect::SetLeft | ( | int | Left | ) | [inline] |
void cRect::SetLeft | ( | int | Left | ) | [inline] |
Definition at line 371 of file include/vdr/osd.h.
References SetWidth(), SetX(), Width(), and X().
Referenced by Combine(), and Intersected().
void cRect::SetPoint | ( | int | X, |
int | Y | ||
) | [inline] |
Definition at line 363 of file include/vdr/osd.h.
References point, and cPoint::Set().
Referenced by cTrueColorDemo::Action(), cPixmap::cPixmap(), cPixmap::DrawPixmap(), and cPixmap::SetDrawPortPoint().
void cRect::SetPoint | ( | int | X, |
int | Y | ||
) | [inline] |
Definition at line 363 of file osd.h.
References point, and cPoint::Set().
void cRect::SetPoint | ( | const cPoint & | Point | ) | [inline] |
Definition at line 364 of file include/vdr/osd.h.
References point, and cPoint::Set().
void cRect::SetPoint | ( | const cPoint & | Point | ) | [inline] |
Definition at line 364 of file osd.h.
References point, and cPoint::Set().
void cRect::SetRight | ( | int | Right | ) | [inline] |
Definition at line 373 of file osd.h.
References SetWidth(), and X().
void cRect::SetRight | ( | int | Right | ) | [inline] |
Definition at line 373 of file include/vdr/osd.h.
References SetWidth(), and X().
Referenced by cTrueColorDemo::Action(), Combine(), and Intersected().
void cRect::SetSize | ( | int | Width, |
int | Height | ||
) | [inline] |
Definition at line 365 of file include/vdr/osd.h.
References cSize::Set(), and size.
void cRect::SetSize | ( | int | Width, |
int | Height | ||
) | [inline] |
Definition at line 365 of file osd.h.
References cSize::Set(), and size.
void cRect::SetSize | ( | const cSize & | Size | ) | [inline] |
Definition at line 366 of file include/vdr/osd.h.
References cSize::Set(), and size.
void cRect::SetSize | ( | const cSize & | Size | ) | [inline] |
Definition at line 366 of file osd.h.
References cSize::Set(), and size.
void cRect::SetTop | ( | int | Top | ) | [inline] |
void cRect::SetTop | ( | int | Top | ) | [inline] |
Definition at line 372 of file include/vdr/osd.h.
References Height(), SetHeight(), SetY(), and Y().
Referenced by Combine(), and Intersected().
void cRect::SetWidth | ( | int | Width | ) | [inline] |
Definition at line 369 of file include/vdr/osd.h.
References cSize::SetWidth(), and size.
Referenced by SetLeft(), and SetRight().
void cRect::SetWidth | ( | int | Width | ) | [inline] |
Definition at line 369 of file osd.h.
References cSize::SetWidth(), and size.
void cRect::SetX | ( | int | X | ) | [inline] |
Definition at line 367 of file include/vdr/osd.h.
References point, and cPoint::SetX().
Referenced by SetLeft().
void cRect::SetX | ( | int | X | ) | [inline] |
Definition at line 367 of file osd.h.
References point, and cPoint::SetX().
void cRect::SetY | ( | int | Y | ) | [inline] |
Definition at line 368 of file osd.h.
References point, and cPoint::SetY().
void cRect::SetY | ( | int | Y | ) | [inline] |
Definition at line 368 of file include/vdr/osd.h.
References point, and cPoint::SetY().
Referenced by SetTop().
void cRect::Shift | ( | int | Dx, |
int | Dy | ||
) | [inline] |
Definition at line 375 of file include/vdr/osd.h.
References point, and cPoint::Shift().
Referenced by cPixmap::DrawPixmap(), and Shifted().
void cRect::Shift | ( | int | Dx, |
int | Dy | ||
) | [inline] |
Definition at line 375 of file osd.h.
References point, and cPoint::Shift().
void cRect::Shift | ( | const cPoint & | Dp | ) | [inline] |
Definition at line 376 of file osd.h.
References point, and cPoint::Shift().
void cRect::Shift | ( | const cPoint & | Dp | ) | [inline] |
Definition at line 376 of file include/vdr/osd.h.
References point, and cPoint::Shift().
cRect cRect::Shifted | ( | int | Dx, |
int | Dy | ||
) | const [inline] |
cRect cRect::Shifted | ( | int | Dx, |
int | Dy | ||
) | const [inline] |
Definition at line 377 of file include/vdr/osd.h.
References Shift().
Referenced by cPixmapMemory::Copy(), cPixmap::MarkDrawPortDirty(), cPixmapMemory::Render(), cPixmapMemory::Scroll(), cPixmap::SetDrawPortPoint(), and cPixmap::SetViewPort().
cRect cRect::Shifted | ( | const cPoint & | Dp | ) | const [inline] |
cRect cRect::Shifted | ( | const cPoint & | Dp | ) | const [inline] |
Definition at line 378 of file include/vdr/osd.h.
References Shift().
const cSize& cRect::Size | ( | void | ) | const [inline] |
Definition at line 360 of file include/vdr/osd.h.
References size.
Referenced by cPixmapMemory::DrawImage(), cPixmap::DrawPixmap(), operator==(), and cPixmapMemory::Render().
const cSize& cRect::Size | ( | void | ) | const [inline] |
int cRect::Top | ( | void | ) | const [inline] |
int cRect::Top | ( | void | ) | const [inline] |
Definition at line 356 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(), and cPixmapMemory::Scroll().
int cRect::Width | ( | void | ) | const [inline] |
Definition at line 353 of file include/vdr/osd.h.
References size, and cSize::Width().
Referenced by cTrueColorDemo::Action(), cPixmapMemory::Copy(), cPixmapMemory::DrawBitmap(), cPixmapMemory::DrawImage(), cPixmapMemory::DrawPixel(), cPixmap::DrawPixmap(), cPixmapMemory::DrawRectangle(), cPixmapMemory::DrawSlope(), cFreetypeFont::DrawText(), IsEmpty(), cPixmapMemory::Render(), Right(), cPixmapMemory::Scroll(), SetLeft(), and cPixmap::SetTile().
int cRect::Width | ( | void | ) | const [inline] |
Definition at line 353 of file osd.h.
References size, and cSize::Width().
int cRect::X | ( | void | ) | const [inline] |
Definition at line 351 of file include/vdr/osd.h.
References point, and cPoint::X().
Referenced by cTrueColorDemo::Action(), Left(), Right(), SetLeft(), and SetRight().
int cRect::X | ( | void | ) | const [inline] |
Definition at line 351 of file osd.h.
References point, and cPoint::X().
int cRect::Y | ( | void | ) | const [inline] |
Definition at line 352 of file include/vdr/osd.h.
References point, and cPoint::Y().
Referenced by cTrueColorDemo::Action(), Bottom(), SetBottom(), SetTop(), and Top().
int cRect::Y | ( | void | ) | const [inline] |
Definition at line 352 of file osd.h.
References point, and cPoint::Y().
static const cRect cRect::Null [static] |
Definition at line 343 of file include/vdr/osd.h.
cPoint cRect::point [private] |
Definition at line 340 of file include/vdr/osd.h.
Referenced by Grow(), operator==(), Point(), Set(), SetPoint(), SetX(), SetY(), Shift(), X(), and Y().
cSize cRect::size [private] |
Definition at line 341 of file include/vdr/osd.h.
Referenced by Grow(), Height(), operator==(), Set(), SetHeight(), SetSize(), SetWidth(), Size(), and Width().