MHIText Class Reference

#include <mhi.h>

Inheritance diagram for MHIText:

MHTextDisplay

List of all members.


Detailed Description

Definition at line 188 of file mhi.h.


Public Member Functions

 MHIText (MHIContext *parent)
virtual ~MHIText ()
virtual void Draw (int x, int y)
virtual void Clear (void)
virtual void AddText (int x, int y, const QString &, MHRgba colour)
virtual void SetSize (int width, int height)
virtual void SetFont (int size, bool isBold, bool isItalic)
virtual QRect GetBounds (const QString &str, int &strLen, int maxSize=-1)

Public Attributes

MHIContextm_parent
QImage m_image
int m_fontsize
bool m_fontItalic
bool m_fontBold
int m_width
int m_height

Constructor & Destructor Documentation

MHIText::MHIText ( MHIContext parent  ) 

Definition at line 849 of file mhi.cpp.

virtual MHIText::~MHIText (  )  [inline, virtual]

Definition at line 192 of file mhi.h.


Member Function Documentation

void MHIText::Draw ( int  x,
int  y 
) [virtual]

Implements MHTextDisplay.

Definition at line 856 of file mhi.cpp.

void MHIText::Clear ( void   )  [virtual]

Implements MHTextDisplay.

Definition at line 952 of file mhi.cpp.

void MHIText::AddText ( int  x,
int  y,
const QString &  str,
MHRgba  colour 
) [virtual]

Implements MHTextDisplay.

Definition at line 970 of file mhi.cpp.

void MHIText::SetSize ( int  width,
int  height 
) [virtual]

Implements MHTextDisplay.

Definition at line 861 of file mhi.cpp.

void MHIText::SetFont ( int  size,
bool  isBold,
bool  isItalic 
) [virtual]

Implements MHTextDisplay.

Definition at line 867 of file mhi.cpp.

QRect MHIText::GetBounds ( const QString &  str,
int &  strLen,
int  maxSize = -1 
) [virtual]

Implements MHTextDisplay.

Definition at line 883 of file mhi.cpp.


Member Data Documentation

Definition at line 204 of file mhi.h.

Referenced by AddText(), Draw(), and GetBounds().

Definition at line 205 of file mhi.h.

Referenced by AddText(), Clear(), and Draw().

Definition at line 206 of file mhi.h.

Referenced by AddText(), GetBounds(), MHIText(), and SetFont().

Definition at line 207 of file mhi.h.

Referenced by MHIText(), and SetFont().

Definition at line 208 of file mhi.h.

Referenced by MHIText(), and SetFont().

Definition at line 209 of file mhi.h.

Referenced by AddText(), Clear(), Draw(), and SetSize().

Definition at line 210 of file mhi.h.

Referenced by AddText(), Clear(), Draw(), and SetSize().


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

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