Chemical Data Processing Library C++ API - Version 1.2.0
Alignment.hpp
Go to the documentation of this file.
1 /*
2  * Alignment.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_VIS_ALIGNMENT_HPP
30 #define CDPL_VIS_ALIGNMENT_HPP
31 
32 
33 namespace CDPL
34 {
35 
36  namespace Vis
37  {
38 
46  namespace Alignment
47  {
48 
52  constexpr unsigned int NONE = 0;
53 
57  constexpr unsigned int LEFT = 0x1;
58 
62  constexpr unsigned int RIGHT = 0x2;
63 
67  constexpr unsigned int H_CENTER = LEFT | RIGHT;
68 
72  constexpr unsigned int H_ALIGNMENT_MASK = H_CENTER;
73 
77  constexpr unsigned int TOP = 0x4;
78 
82  constexpr unsigned int BOTTOM = 0x8;
83 
87  constexpr unsigned int V_CENTER = TOP | BOTTOM;
88 
92  constexpr unsigned int V_ALIGNMENT_MASK = V_CENTER;
93 
97  constexpr unsigned int CENTER = H_CENTER | V_CENTER;
98  } // namespace Alignment
99  } // namespace Vis
100 } // namespace CDPL
101 
102 #endif // CDPL_VIS_ALIGNMENT_HPP
constexpr unsigned int RIGHT
Specifies an alignment to the right.
Definition: Alignment.hpp:62
constexpr unsigned int V_CENTER
Specifies that an object has to be centered vertically.
Definition: Alignment.hpp:87
constexpr unsigned int H_CENTER
Specifies that an object has to be centered horizontally.
Definition: Alignment.hpp:67
constexpr unsigned int V_ALIGNMENT_MASK
A bitmask for all vertical alignment flags.
Definition: Alignment.hpp:92
constexpr unsigned int TOP
Specifies an alignment to the top.
Definition: Alignment.hpp:77
constexpr unsigned int BOTTOM
Specifies an alignment to the bottom.
Definition: Alignment.hpp:82
constexpr unsigned int H_ALIGNMENT_MASK
A bitmask for all horizontal alignment flags.
Definition: Alignment.hpp:72
constexpr unsigned int CENTER
Specifies that an object has to be centered horizontally and vertically.
Definition: Alignment.hpp:97
constexpr unsigned int NONE
Specifies that an object has no special alignment.
Definition: Alignment.hpp:52
constexpr unsigned int LEFT
Specifies an alignment to the left.
Definition: Alignment.hpp:57
The namespace of the Chemical Data Processing Library.