16 #ifndef OSGWIDGET_LABEL
17 #define OSGWIDGET_LABEL
19 #include <osgText/Text>
20 #include <osgWidget/Widget>
21 #include <osgWidget/Window>
31 Label (
const std::string& =
"",
const std::string& =
"");
34 virtual void parented (
Window*);
35 virtual void unparented (
Window*);
36 virtual void positioned ();
38 void setLabel (
const std::string&);
40 void setFont (
const std::string&);
41 void setFontSize (
unsigned int);
42 void setFontColor (
const Color&);
47 std::string
getLabel()
const {
return _text->getText().createUTF8EncodedString(); }
60 virtual void _calculateSize(
const XYCoord&);
#define META_Object(library, name)