/** * Create an NativeUI Label object with given values. * @param text Text to set. * @param fontColor Text font color. * @param width Label's width in pixels or size constant. * @param height Label's height in pixels or size constant. * @return The created label object. Its ownership is passed to the caller. */ NativeUI::Label* createLabel( const MAUtil::String& text, const int fontColor, const int width, const int height) { NativeUI::Label* label = new NativeUI::Label(); label->setTextHorizontalAlignment(MAW_ALIGNMENT_LEFT); label->setText(text); label->setWidth(width); label->setHeight(height); label->setFontColor(fontColor); label->setMaxNumberOfLines(LABEL_MAX_LINES); return label; }