SASC
DVBSoftCAM

tArea Struct Reference

#include <osd.h>

List of all members.

Public Member Functions

int Width (void) const
int Height (void) const
bool Intersects (const tArea &Area) const

Public Attributes

int x1
int y1
int x2
int y2
int bpp

Detailed Description

Definition at line 236 of file osd.h.


Member Function Documentation

int tArea::Height ( void  ) const [inline]

Definition at line 240 of file osd.h.

References y1, and y2.

{ return y2 - y1 + 1; }
bool tArea::Intersects ( const tArea &  Area) const [inline]

Definition at line 241 of file osd.h.

References x1, x2, y1, and y2.

{ return !(x2 < Area.x1 || x1 > Area.x2 || y2 < Area.y1 || y1 > Area.y2); }
int tArea::Width ( void  ) const [inline]

Definition at line 239 of file osd.h.

References x1, and x2.

{ return x2 - x1 + 1; }

Member Data Documentation

Definition at line 238 of file osd.h.

int tArea::x1

Definition at line 237 of file osd.h.

Referenced by Intersects(), and Width().

int tArea::x2

Definition at line 237 of file osd.h.

Referenced by Intersects(), and Width().

int tArea::y1

Definition at line 237 of file osd.h.

Referenced by Height(), and Intersects().

int tArea::y2

Definition at line 237 of file osd.h.

Referenced by Height(), and Intersects().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines