aboutsummaryrefslogtreecommitdiff
path: root/src/ClientHandler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandler.hh')
-rw-r--r--src/ClientHandler.hh66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/ClientHandler.hh b/src/ClientHandler.hh
new file mode 100644
index 0000000..1ec128d
--- /dev/null
+++ b/src/ClientHandler.hh
@@ -0,0 +1,66 @@
1// ClientHandler.hh for FbPager
2// Copyright (c) 2004 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3//
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE.
21
22#ifndef CLIENTHANDLER_HH
23#define CLIENTHANDLER_HH
24
25#include <X11/Xlib.h>
26namespace FbTk {
27class FbWindow;
28}
29
30namespace FbPager {
31
32class WindowHint;
33class Pager;
34
35class ClientHandler {
36public:
37 enum Orientation {
38 HORIZONTAL,
39 VERTICAL
40 };
41 enum Corner {
42 TOPLEFT,
43 TOPRIGHT,
44 BOTTOMRIGHT,
45 BOTTOMLEFT
46 };
47 ClientHandler() { }
48 virtual ~ClientHandler() { }
49 virtual void setFocus(FbTk::FbWindow &win) = 0;
50 virtual void moveResize(FbTk::FbWindow &win) = 0;
51 virtual void sendToWorkspace(FbTk::FbWindow &win, int workspace) = 0;
52 virtual void closeWindow(FbTk::FbWindow &win) = 0;
53 virtual bool clientMessage(Pager &pager, XClientMessageEvent &event) = 0;
54 virtual void changeWorkspace(int screen_num, int workspace) = 0;
55 virtual void setHints(FbTk::FbWindow &win, WindowHint &hint) = 0;
56 virtual void getHints(const FbTk::FbWindow &win, WindowHint &hint) const = 0;
57 virtual int numberOfWorkspaces(int screen_num) const = 0;
58 virtual void setDesktopLayout(FbTk::FbWindow &root,
59 Orientation orientation,
60 Corner starting_corner,
61 unsigned int columns, unsigned int rows) = 0;
62};
63
64} // end namespace FbPager
65
66#endif // CLIENTHANDLER_HH