return label;
}
+CStdString CGUITextBox::GetDescription() const
+{
+ return GetText();
+}
+
void CGUITextBox::UpdateVisibility(const CGUIListItem *item)
{
// we have to update the page control when we become visible
void SetAutoScrolling(const TiXmlNode *node);
void ResetAutoScrolling();
CStdString GetLabel(int info) const;
+ CStdString GetDescription() const;
void Scroll(unsigned int offset);
return m_font->GetTextWidth(utf32);
}
+std::string CGUITextLayout::GetText() const
+{
+ if (m_lastUpdateW)
+ {
+ std::string utf8;
+ g_charsetConverter.wToUTF8(m_lastText, utf8);
+ return utf8;
+ }
+ return m_lastUtf8Text;
+}
+
void CGUITextLayout::DrawText(CGUIFont *font, float x, float y, color_t color, color_t shadowColor, const CStdString &text, uint32_t align)
{
if (!font) return;
static CStdStringW BidiFlip(const CStdStringW &text, bool forceLTRReadingOrder);
void CalcTextExtent();
void UpdateCommon(const CStdStringW &text, float maxWidth, bool forceLTRReadingOrder);
-
+
+ /*! \brief Returns the text, utf8 encoded
+ \return utf8 text
+ */
+ std::string GetText() const;
+
// our text to render
vecColors m_colors;
std::vector<CGUIString> m_lines;
g_windowManager.SendThreadMessage(msg, iParentId);
}
+ String ControlTextBox::getText() throw (UnimplementedException)
+ {
+ if (!pGUIControl) return NULL;
+
+ LOCKGUI;
+ return ((CGUITextBox*) pGUIControl)->GetDescription();
+ }
+
void ControlTextBox::reset() throw(UnimplementedException)
{
// create message
*/
virtual void setText(const String& text) throw(UnimplementedException);
+ // getText() Method
+ /**
+ * getText() -- Returns the text value for this textbox.
+ *
+ * example:
+ * - text = self.text.getText()
+ */
+ virtual String getText() throw(UnimplementedException);
+
// reset() Method
/**
* reset() -- Clear's this textbox.