Restructured classes to better fit with style of the rest of the OSG.

This commit is contained in:
Robert Osfield
2008-07-25 19:57:17 +00:00
parent 727925a1c2
commit ff5da51dcb
18 changed files with 2230 additions and 2193 deletions

View File

@@ -8,30 +8,21 @@ namespace osgWidget {
#include <osgWidget/Export>
class OSGWIDGET_EXPORT StyleInterface {
private:
std::string _style;
class OSGWIDGET_EXPORT StyleInterface
{
public:
StyleInterface(): _style("") {}
public:
StyleInterface():
_style("") {
}
StyleInterface(const StyleInterface& si): _style(si._style) {}
StyleInterface(const StyleInterface& si):
_style(si._style) {
}
void setStyle(const std::string& style) { _style = style; }
void setStyle(const std::string& style) {
_style = style;
}
std::string& getStyle() { return _style; }
std::string& getStyle() {
return _style;
}
const std::string& getStyle() const { return _style; }
private:
std::string _style;
const std::string& getStyle() const {
return _style;
}
};
}