MythTV  0.26-pre
Public Member Functions | Public Attributes
MHIText Class Reference

#include <mhi.h>

Inheritance diagram for MHIText:
MHTextDisplay

List of all members.

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

Detailed Description

Definition at line 193 of file mhi.h.


Constructor & Destructor Documentation

Definition at line 920 of file mhi.cpp.

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

Definition at line 197 of file mhi.h.


Member Function Documentation

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

Implements MHTextDisplay.

Definition at line 929 of file mhi.cpp.

void MHIText::Clear ( void  ) [virtual]

Implements MHTextDisplay.

Definition at line 1025 of file mhi.cpp.

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

Implements MHTextDisplay.

Definition at line 1041 of file mhi.cpp.

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

Implements MHTextDisplay.

Definition at line 934 of file mhi.cpp.

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

Implements MHTextDisplay.

Definition at line 940 of file mhi.cpp.

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

Implements MHTextDisplay.

Definition at line 956 of file mhi.cpp.


Member Data Documentation

Definition at line 209 of file mhi.h.

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

Definition at line 210 of file mhi.h.

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

Definition at line 211 of file mhi.h.

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

Definition at line 212 of file mhi.h.

Referenced by MHIText(), and SetFont().

Definition at line 213 of file mhi.h.

Referenced by MHIText(), and SetFont().

Definition at line 214 of file mhi.h.

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

Definition at line 215 of file mhi.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends