14 #ifndef OSGUI_LINEEDIT
15 #define OSGUI_LINEEDIT
17 #include <osgUI/Widget>
18 #include <osgUI/Validator>
19 #include <osgText/Text>
31 void setText(
const std::string& text);
32 const std::string&
getText()
const {
return _text; }
35 virtual void createGraphicsImplementation();
36 virtual void enterImplementation();
37 virtual void leaveImplementation();
43 virtual void textChanged(
const std::string& text);
44 virtual void textChangedImplementation(
const std::string& text);
46 virtual void returnPressed() {
if (!runCallbacks(
"returnPressed")) returnPressedImplementation(); }
47 virtual void returnPressedImplementation();
const Validator * getValidator() const
osg::ref_ptr< osgText::Text > _textDrawable
#define META_Node(library, name)
osg::ref_ptr< Validator > _validator
Validator * getValidator()
void setValidator(Validator *validator)
virtual void returnPressed()
const std::string & getText() const
osg::ref_ptr< osg::Switch > _backgroundSwitch