aboutsummaryrefslogtreecommitdiff
path: root/util/fbcompose/Enumerations.hh
diff options
context:
space:
mode:
authorGediminas Liktaras <gliktaras@gmail.com>2011-12-08 13:34:09 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2011-12-10 16:13:19 (GMT)
commitcd339169d1961eb508ea89cee2609ec6d0fc0c15 (patch)
tree01acd158a03fb17a72e067ff0b36701da75e49dc /util/fbcompose/Enumerations.hh
parent85ac5c4b2c6a526992f483a6e91867dc2f82a19e (diff)
downloadfluxbox_paul-cd339169d1961eb508ea89cee2609ec6d0fc0c15.zip
fluxbox_paul-cd339169d1961eb508ea89cee2609ec6d0fc0c15.tar.bz2
fbcompose - A compositing addon for fluxbox window manager.
fbcompose(1) is an optional compositing addon for fluxbox window manager. It augments fluxbox with a number of graphical features. Most notably, fbcompose allows fluxbox to properly display applications that require compositing (docky, for example), adds support for true window transparency (as opposed to fluxbox's pseudo transparency) and provides a plugin framework to extend the compositor's functionality. As this is still a beta version of the compositor, the bugs are likely.
Diffstat (limited to 'util/fbcompose/Enumerations.hh')
-rw-r--r--util/fbcompose/Enumerations.hh77
1 files changed, 77 insertions, 0 deletions
diff --git a/util/fbcompose/Enumerations.hh b/util/fbcompose/Enumerations.hh
new file mode 100644
index 0000000..348a68e
--- /dev/null
+++ b/util/fbcompose/Enumerations.hh
@@ -0,0 +1,77 @@
1/** Enumerations.hh file for the fluxbox compositor. */
2
3// Copyright (c) 2011 Gediminas Liktaras (gliktaras at gmail dot com)
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21// THE SOFTWARE.
22
23
24#ifndef FBCOMPOSITOR_ENUMERATIONS_HH
25#define FBCOMPOSITOR_ENUMERATIONS_HH
26
27#include <ostream>
28
29
30namespace FbCompositor {
31
32 //--- ENUMERATIONS ---------------------------------------------------------
33
34 /** Monitor heads mode enumeration. */
35 enum HeadMode { Heads_One, Heads_Xinerama };
36
37 /** Plugin types. */
38 enum PluginType { Plugin_OpenGL, Plugin_XRender };
39
40 /** Rendering mode enumeration. */
41 enum RenderingMode { RM_OpenGL, RM_XRender, RM_ServerAuto };
42
43 /** Window type enumeration. */
44 enum WindowType { WinType_Desktop, WinType_Dialog, WinType_Dock, WinType_Menu,
45 WinType_Normal, WinType_Splash, WinType_Toolbar, WinType_Utility };
46
47
48 //--- OSTREAM OUTPUT OPERATORS ---------------------------------------------
49
50 // << operator for WindowType.
51 std::ostream &operator<<(std::ostream &os, WindowType win_type);
52 inline std::ostream &operator<<(std::ostream &os, WindowType win_type) {
53 if (win_type == WinType_Desktop) {
54 os << "Desktop";
55 } else if (win_type == WinType_Dialog) {
56 os << "Dialog";
57 } else if (win_type == WinType_Dock) {
58 os << "Dock";
59 } else if (win_type == WinType_Menu) {
60 os << "Menu";
61 } else if (win_type == WinType_Normal) {
62 os << "Normal";
63 } else if (win_type == WinType_Splash) {
64 os << "Splash";
65 } else if (win_type == WinType_Toolbar) {
66 os << "Toolbar";
67 } else if (win_type == WinType_Utility) {
68 os << "Utility";
69 } else {
70 os << "Unknown";
71 }
72 return os;
73 }
74
75}
76
77#endif // FBCOMPOSITOR_ENUMERATIONS_HH