Added basic frame rendering for TabWidget

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14446 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-09-12 14:16:08 +00:00
parent e3a3ae6de6
commit e97059df78
2 changed files with 189 additions and 27 deletions

View File

@@ -87,11 +87,14 @@ protected:
void _activateWidgets();
osg::Node* _createTabFrame(const osg::BoundingBox& extents, osgUI::FrameSettings* fs, const osg::Vec4& color);
osg::Node* _createTabHeader(const osg::BoundingBox& extents, osgUI::FrameSettings* fs, const osg::Vec4& color);
Tabs _tabs;
unsigned int _currentIndex;
osg::ref_ptr<osg::Switch> _unselectedHeaderSwitch;
osg::ref_ptr<osg::Switch> _selectedHeaderSwitch;
osg::ref_ptr<osg::Switch> _inactiveHeaderSwitch;
osg::ref_ptr<osg::Switch> _activeHeaderSwitch;
osg::ref_ptr<osg::Switch> _tabWidgetSwitch;
};