MythTV  master
Public Member Functions | Public Attributes | List of all members
MHIText Class Reference

#include <mhi.h>

Inheritance diagram for MHIText:
Inheritance graph
[legend]
Collaboration diagram for MHIText:
Collaboration graph
[legend]

Public Member Functions

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

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 234 of file mhi.h.

Constructor & Destructor Documentation

◆ MHIText()

MHIText::MHIText ( MHIContext parent)
explicit

Definition at line 1245 of file mhi.cpp.

◆ ~MHIText()

virtual MHIText::~MHIText ( )
virtualdefault

Member Function Documentation

◆ Draw()

void MHIText::Draw ( int  x,
int  y 
)
overridevirtual

Implements MHTextDisplay.

Definition at line 1254 of file mhi.cpp.

◆ Clear()

void MHIText::Clear ( void  )
overridevirtual

Implements MHTextDisplay.

Definition at line 1370 of file mhi.cpp.

◆ AddText()

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

Implements MHTextDisplay.

Definition at line 1386 of file mhi.cpp.

◆ SetSize()

void MHIText::SetSize ( int  width,
int  height 
)
overridevirtual

Implements MHTextDisplay.

Definition at line 1259 of file mhi.cpp.

◆ SetFont()

void MHIText::SetFont ( int  size,
bool  isBold,
bool  isItalic 
)
overridevirtual

Implements MHTextDisplay.

Definition at line 1265 of file mhi.cpp.

◆ GetBounds()

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

Implements MHTextDisplay.

Definition at line 1293 of file mhi.cpp.

Member Data Documentation

◆ m_parent

MHIContext* MHIText::m_parent

Definition at line 250 of file mhi.h.

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

◆ m_image

QImage MHIText::m_image

Definition at line 251 of file mhi.h.

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

◆ m_fontsize

int MHIText::m_fontsize

Definition at line 252 of file mhi.h.

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

◆ m_fontItalic

bool MHIText::m_fontItalic

Definition at line 253 of file mhi.h.

Referenced by MHIText(), and SetFont().

◆ m_fontBold

bool MHIText::m_fontBold

Definition at line 254 of file mhi.h.

Referenced by MHIText(), and SetFont().

◆ m_width

int MHIText::m_width

Definition at line 255 of file mhi.h.

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

◆ m_height

int MHIText::m_height

Definition at line 256 of file mhi.h.

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


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