add command completion to console

This commit is contained in:
Eduardo Bart
2011-11-01 16:32:48 -02:00
parent 59017205b0
commit d2e8e1d774
15 changed files with 96 additions and 20 deletions

View File

@@ -50,6 +50,7 @@ public:
std::string getText() const { return m_text; }
std::string getDisplayedText();
int getTextPos(Point pos);
int getCursorPos() const { return m_cursorPos; }
protected:
virtual void onStyleApply(const OTMLNodePtr& styleNode);

View File

@@ -105,7 +105,7 @@ void UIWidget::render()
// debug draw box
//g_graphics.bindColor(Fw::green);
//g_graphics.drawBoundingRect(child->getRect());
//g_fonts.getDefaultFont()->renderText(child->getId(), child->getPosition() + Point(2, 0), Color::red);
//g_fonts.getDefaultFont()->renderText(child->getId(), child->getPosition() + Point(2, 0), Fw::red);
g_graphics.setOpacity(oldOpacity);
}