Public Member Functions | |
QText (const Common::U32String &text, uint16 textColor, uint16 outlineColor) | |
void | draw () |
void | update (int time) |
const Common::Rect & | getRect () |
Public Member Functions inherited from Petka::QVisibleObject | |
virtual void | updateZ () |
virtual void | show (bool v) |
virtual void | setPos (Common::Point p, bool center) |
virtual bool | isInPoint (Common::Point p) |
virtual void | onMouseMove (Common::Point p) |
virtual void | onClick (Common::Point p) |
Static Protected Member Functions | |
static void | drawOutline (Graphics::Surface *surface, uint16 color) |
static Common::Rect | calculateBoundingBoxForText (const Common::U32String &text, Graphics::Font &font) |
static void | drawText (Graphics::Surface &s, int y, int maxWidth, const Common::U32String &text, uint color, Graphics::Font &font, Graphics::TextAlign alignment) |
Protected Attributes | |
Common::Rect | _rect |
Additional Inherited Members | |
Public Attributes inherited from Petka::QVisibleObject | |
int32 | _resourceId |
int32 | _z |