FrameSettings
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2014 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGUI_FRAMESETTINGS
#define OSGUI_FRAMESETTINGS
#include <osg/Object>
#include <osg/BoundingBox>
#include <osg/Vec4>
#include <osgUI/Export>
namespace osgUI
{
class OSGUI_EXPORT FrameSettings : public osg::Object
{
public:
FrameSettings();
FrameSettings(const FrameSettings& frameSettings, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Object(osgUI, FrameSettings);
enum Shape
{
NO_FRAME,
BOX,
PANEL
};
void setShape(Shape shape) { _shape = shape; }
Shape getShape() const { return _shape; }
enum Shadow
{
PLAIN,
SUNKEN,
RAISED
};
void setShadow(Shadow shadow) { _shadow = shadow; }
Shadow getShadow() const { return _shadow; }
void setLineWidth(float width) { _lineWidth = width; }
float getLineWidth() const { return _lineWidth; }
protected:
virtual ~FrameSettings() {}
Shape _shape;
Shadow _shadow;
float _lineWidth;
};
}
#endif
BoundingBox
Object
Vec4
osgUI::FrameSettings::~FrameSettings
virtual ~FrameSettings()
Definition FrameSettings:56
osgUI::FrameSettings::getShape
Shape getShape() const
Definition FrameSettings:39
osgUI::FrameSettings::setShadow
void setShadow(Shadow shadow)
Definition FrameSettings:48
osgUI::FrameSettings::_lineWidth
float _lineWidth
Definition FrameSettings:60
osgUI::FrameSettings::setShape
void setShape(Shape shape)
Definition FrameSettings:38
osgUI::FrameSettings::FrameSettings
FrameSettings()
osgUI::FrameSettings::Shadow
Shadow
Definition FrameSettings:42
osgUI::FrameSettings::RAISED
@ RAISED
Definition FrameSettings:45
osgUI::FrameSettings::PLAIN
@ PLAIN
Definition FrameSettings:43
osgUI::FrameSettings::SUNKEN
@ SUNKEN
Definition FrameSettings:44
osgUI::FrameSettings::Shape
Shape
Definition FrameSettings:32
osgUI::FrameSettings::BOX
@ BOX
Definition FrameSettings:34
osgUI::FrameSettings::PANEL
@ PANEL
Definition FrameSettings:35
osgUI::FrameSettings::NO_FRAME
@ NO_FRAME
Definition FrameSettings:33
osgUI::FrameSettings::getShadow
Shadow getShadow() const
Definition FrameSettings:49
osgUI::FrameSettings::_shadow
Shadow _shadow
Definition FrameSettings:59
osgUI::FrameSettings::FrameSettings
FrameSettings(const FrameSettings &frameSettings, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osgUI::FrameSettings::META_Object
META_Object(osgUI, FrameSettings)
osgUI::FrameSettings::_shape
Shape _shape
Definition FrameSettings:58
osgUI::FrameSettings::getLineWidth
float getLineWidth() const
Definition FrameSettings:52
osgUI::FrameSettings::setLineWidth
void setLineWidth(float width)
Definition FrameSettings:51
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Object
Definition Object:61
osgUI
Definition AlignmentSettings:23
Export
OSGUI_EXPORT
#define OSGUI_EXPORT
Definition osgUI/Export:40