OSDTypeImage Class Reference

#include <osdtypes.h>

Inheritance diagram for OSDTypeImage:

OSDType OSDTypeEditSlider OSDTypeFillSlider OSDTypePositionImage OSDTypePosSlider

List of all members.


Detailed Description

Definition at line 299 of file osdtypes.h.


Public Member Functions

 OSDTypeImage (const QString &name, const QString &filename, QPoint displaypos, float wmult, float hmult, int scalew=-1, int scaleh=-1)
 OSDTypeImage (const OSDTypeImage &other)
 OSDTypeImage (const QString &name)
 OSDTypeImage (void)
virtual ~OSDTypeImage ()
void SetName (const QString &name)
void Reinit (float wmult, float hmult)
void Load (const QString &filename, float wmult, float hmult, int scalew=-1, int scaleh=-1, bool usecache=true)
void Load (const QImage &img)
void SetStaticSize (int scalew, int scaleh)
void SetPosition (QPoint pos, float wmult, float hmult)
QPoint DisplayPos () const
QRect ImageSize () const
int width () const
int height () const
virtual void Draw (OSDSurface *surface, int fade, int maxfade, int xoff, int yoff)
void SetDontRoundPosition (bool round)

Protected Attributes

QRect m_imagesize
QPoint m_displaypos
QPoint m_unbiasedpos
QString m_filename
bool m_isvalid
unsigned char * m_yuv
unsigned char * m_ybuffer
unsigned char * m_ubuffer
unsigned char * m_vbuffer
unsigned char * m_alpha
int m_scalew
int m_scaleh
int m_drawwidth
bool m_onlyusefirst
bool m_dontround
OSDImageCacheValuem_cacheitem

Static Protected Attributes

static OSDImageCache c_cache
 Shared OSD image cache.

Constructor & Destructor Documentation

OSDTypeImage::OSDTypeImage ( const QString &  name,
const QString &  filename,
QPoint  displaypos,
float  wmult,
float  hmult,
int  scalew = -1,
int  scaleh = -1 
)

Definition at line 1321 of file osdtypes.cpp.

OSDTypeImage::OSDTypeImage ( const OSDTypeImage other  ) 

Definition at line 1344 of file osdtypes.cpp.

OSDTypeImage::OSDTypeImage ( const QString &  name  ) 

Definition at line 1379 of file osdtypes.cpp.

OSDTypeImage::OSDTypeImage ( void   ) 

Definition at line 1399 of file osdtypes.cpp.

OSDTypeImage::~OSDTypeImage (  )  [virtual]

Definition at line 1420 of file osdtypes.cpp.


Member Function Documentation

void OSDTypeImage::SetName ( const QString &  name  ) 

Definition at line 1440 of file osdtypes.cpp.

void OSDTypeImage::Reinit ( float  wmult,
float  hmult 
) [virtual]

void OSDTypeImage::Load ( const QString &  filename,
float  wmult,
float  hmult,
int  scalew = -1,
int  scaleh = -1,
bool  usecache = true 
)

void OSDTypeImage::Load ( const QImage &  img  ) 

Definition at line 1577 of file osdtypes.cpp.

void OSDTypeImage::SetStaticSize ( int  scalew,
int  scaleh 
) [inline]

Definition at line 317 of file osdtypes.h.

Referenced by OSD::parsePositionImage().

void OSDTypeImage::SetPosition ( QPoint  pos,
float  wmult,
float  hmult 
)

QPoint OSDTypeImage::DisplayPos (  )  const [inline]

Definition at line 321 of file osdtypes.h.

QRect OSDTypeImage::ImageSize (  )  const [inline]

Definition at line 322 of file osdtypes.h.

Referenced by OSDListBtnTypeItem::OSDListBtnTypeItem(), and OSD::ShowEditArrow().

int OSDTypeImage::width ( void   )  const [inline]

int OSDTypeImage::height ( void   )  const [inline]

Definition at line 324 of file osdtypes.h.

Referenced by OSDTypeEditSlider::Draw(), and OSDListBtnType::Init().

void OSDTypeImage::Draw ( OSDSurface surface,
int  fade,
int  maxfade,
int  xoff,
int  yoff 
) [virtual]

void OSDTypeImage::SetDontRoundPosition ( bool  round  )  [inline]

Definition at line 329 of file osdtypes.h.

Referenced by NuppelVideoPlayer::DisplayDVDButton().


Member Data Documentation

QRect OSDTypeImage::m_imagesize [protected]

QPoint OSDTypeImage::m_displaypos [protected]

QPoint OSDTypeImage::m_unbiasedpos [protected]

Definition at line 334 of file osdtypes.h.

Referenced by OSDTypeImage(), Reinit(), and SetPosition().

QString OSDTypeImage::m_filename [protected]

Definition at line 336 of file osdtypes.h.

Referenced by Load(), OSDTypeImage(), and Reinit().

unsigned char* OSDTypeImage::m_yuv [protected]

unsigned char* OSDTypeImage::m_ybuffer [protected]

unsigned char* OSDTypeImage::m_ubuffer [protected]

unsigned char* OSDTypeImage::m_vbuffer [protected]

unsigned char* OSDTypeImage::m_alpha [protected]

int OSDTypeImage::m_scalew [protected]

int OSDTypeImage::m_scaleh [protected]

int OSDTypeImage::m_drawwidth [protected]

Definition at line 350 of file osdtypes.h.

Referenced by Draw(), OSDTypeFillSlider::OSDTypeFillSlider(), and OSDTypeImage().

Definition at line 351 of file osdtypes.h.

Referenced by Draw(), OSDTypeImage(), and SetDontRoundPosition().

OSDImageCache OSDTypeImage::c_cache [static, protected]

Shared OSD image cache.

Definition at line 353 of file osdtypes.h.

Referenced by Load().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:09 2010 for MythTV by  doxygen 1.5.5