Go to the documentation of this file.
36 template<
typename T =
int>
98 void fill(
const std::string& hookedWidgetId);
99 void centerIn(
const std::string& hookedWidgetId);
117 void setId(
const std::string&
id);
121 void setStyle(
const std::string& styleName);
169 void internalDestroy();
172 void updateChildrenIndexStates();
194 virtual bool onKeyText(
const std::string& keyText);
196 virtual bool onKeyPress(
uchar keyCode,
int keyboardModifiers,
int autoRepeatTicks);
197 virtual bool onKeyUp(
uchar keyCode,
int keyboardModifiers);
273 void initBaseStyle();
314 void setIcon(
const std::string& iconFile);
401 void parseImageStyle(
const OTMLNodePtr& styleNode);
403 void updateImageCache() { m_imageMustRecache =
true; }
404 void configureBorderImage() { m_imageBordered =
true; updateImageCache(); }
407 Rect m_imageCachedScreenCoords;
472 Rect m_textCachedScreenCoords;
478 virtual void onTextChange(
const std::string& text,
const std::string& oldText);
495 void setText(std::string text,
bool dontFireLuaCall =
false);
503 void setFont(
const std::string& fontName);
bool contains(const TPoint< T > &p, bool insideOnly=false) const
Size calculateTextRectSize(const std::string &text)
Simulate render and calculate text size.
void resize(const TSize< T > &size)
TPoint< T > topLeft() const
LuaObject, all script-able classes have it as base.
std::deque< UIWidgetPtr > UIWidgetList