From Jeremy Moles, import of the osgWidget NodeKit, sourced from the original http://osgwidget.googlecode.com/svn/trunk
Notes from Robert Osfield, I've merged osgWidget trunk, and added/changed CMakeLists.txt file to make it suitable for inclusion in the core OSG, and moved imagery/scripts/shaders out into OpenSceneGraph-Data
This commit is contained in:
39
include/osgWidget/StyleInterface
Normal file
39
include/osgWidget/StyleInterface
Normal file
@@ -0,0 +1,39 @@
|
||||
// -*-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 {
|
||||
private:
|
||||
std::string _style;
|
||||
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user