#include <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 | |
| MHIContext * | m_parent |
| QImage | m_image |
| int | m_fontsize |
| bool | m_fontItalic |
| bool | m_fontBold |
| int | m_width |
| int | m_height |
Definition at line 193 of file mhi.h.
| MHIText::MHIText | ( | MHIContext * | parent | ) |
| void MHIText::Draw | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Implements MHTextDisplay.
| void MHIText::Clear | ( | void | ) | [virtual] |
Implements MHTextDisplay.
| void MHIText::AddText | ( | int | x, | |
| int | y, | |||
| const QString & | str, | |||
| MHRgba | colour | |||
| ) | [virtual] |
Implements MHTextDisplay.
| void MHIText::SetSize | ( | int | width, | |
| int | height | |||
| ) | [virtual] |
Implements MHTextDisplay.
Implements MHTextDisplay.
| QRect MHIText::GetBounds | ( | const QString & | str, | |
| int & | strLen, | |||
| int | maxSize = -1 | |||
| ) | [virtual] |
Implements MHTextDisplay.
Definition at line 209 of file mhi.h.
Referenced by AddText(), Draw(), and GetBounds().
| QImage MHIText::m_image |
| int MHIText::m_width |
1.6.3