libyui-ncurses
NCtypes.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: NCtypes.h
20 
21  Author: Michael Andres <ma@suse.de>
22 
23 /-*/
24 
25 #ifndef NCtypes_h
26 #define NCtypes_h
27 
28 #include <iosfwd>
29 
31 namespace NC
32 {
34  enum ADJUST
35  {
36  CENTER = 0x00,
37  TOP = 0x01,
38  BOTTOM = 0x02,
39  LEFT = 0x10,
40  RIGHT = 0x20,
41  TOPLEFT = TOP | LEFT,
42  TOPRIGHT = TOP | RIGHT,
43  BOTTOMLEFT = BOTTOM | LEFT,
44  BOTTOMRIGHT = BOTTOM | RIGHT,
45  };
46 
47  enum WState
48  {
49  WSdumb,
50  WSnormal,
51  WSactive,
52  WSdisabled
53  };
54 
55 };
56 
57 extern std::ostream & operator<<( std::ostream & str, NC::ADJUST obj );
58 extern std::ostream & operator<<( std::ostream & str, NC::WState obj );
59 
60 
61 #endif // NCtypes_h
A sad little namespace.
Definition: NCtypes.h:31
ADJUST
Alignment aka justification: top/bottom, left/right, center.
Definition: NCtypes.h:34