OpenSceneGraph/include/osgWidget/StyleInterface

31 lines
653 B
C++

// -*-c++-*- osgWidget - Code by: Jeremy Moles (cubicool) 2007-2008
// $Id: StyleInterface 63 2008-06-30 19:18:37Z cubicool $
#ifndef OSGWIDGET_STYLE_INTERFACE
#define OSGWIDGET_STYLE_INTERFACE
namespace osgWidget {
#include <osgWidget/Export>
class OSGWIDGET_EXPORT StyleInterface
{
public:
StyleInterface(): _style("") {}
StyleInterface(const StyleInterface& si): _style(si._style) {}
void setStyle(const std::string& style) { _style = style; }
std::string& getStyle() { return _style; }
const std::string& getStyle() const { return _style; }
private:
std::string _style;
};
}
#endif