OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlignmentSettings.h
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_ALIGNMENTSETTINGS
15 #define OSGUI_ALIGNMENTSETTINGS
16 
17 #include <osg/Object>
18 #include <osg/BoundingBox>
19 #include <osg/Vec4>
20 #include <osgUI/Export>
21 
22 namespace osgUI
23 {
24 
26 {
27 public:
28 
29  enum Alignment
30  {
34 
38 
42 
46 
49  RIGHT_BOTTOM_BASE_LINE
50  };
51 
55 
56  void setAlignment(Alignment alignment) { _alignment = alignment; }
57  Alignment getAlignment() const { return _alignment; }
58 
59 protected:
60 
61  virtual ~AlignmentSettings() {}
62 
64 };
65 
66 }
67 
68 #endif
#define META_Object(library, name)
Definition: Object.h:42
Alignment getAlignment() const
void setAlignment(Alignment alignment)
#define OSGUI_EXPORT
Definition: Widget.h:22