more flexible skins

This commit is contained in:
Eduardo Bart
2011-04-11 17:06:03 -03:00
parent da2993d1f9
commit c3f0ca2b4f
24 changed files with 224 additions and 102 deletions

View File

@@ -46,11 +46,14 @@ public:
void setCursorPos(uint pos);
uint getCursorPos() { return m_cursorPos; }
void onLayoutRectChange(const Rect& rect);
private:
void appendCharacter(char c);
void removeCharacter(bool right);
void recalculate();
Rect m_textRect;
uint m_cursorPos;
int m_startRenderPos;
std::string m_text;