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