aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenInfo.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-13 14:01:48 (GMT)
committerfluxgen <fluxgen>2003-05-13 14:01:48 (GMT)
commitaa66c5276827bc1c0c30bed4613baf5f9c82d153 (patch)
treefe9879c1ee56590ca0b29c019e28c9c89a1c6c1d /src/ScreenInfo.hh
parent45e689d4a2c866d10d99b0920e0a7408b5a9aaab (diff)
downloadfluxbox_pavel-aa66c5276827bc1c0c30bed4613baf5f9c82d153.zip
fluxbox_pavel-aa66c5276827bc1c0c30bed4613baf5f9c82d153.tar.bz2
obsolete
Diffstat (limited to 'src/ScreenInfo.hh')
-rw-r--r--src/ScreenInfo.hh76
1 files changed, 0 insertions, 76 deletions
diff --git a/src/ScreenInfo.hh b/src/ScreenInfo.hh
deleted file mode 100644
index 4cdd070..0000000
--- a/src/ScreenInfo.hh
+++ /dev/null
@@ -1,76 +0,0 @@
1// ScreenInfo.hh for fluxbox
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen<at>users.sourceforge.net)
3//
4// from BaseDisplay.hh in Blackbox 0.61.1
5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net)
6//
7// Permission is hereby granted, free of charge, to any person obtaining a
8// copy of this software and associated documentation files (the "Software"),
9// to deal in the Software without restriction, including without limitation
10// the rights to use, copy, modify, merge, publish, distribute, sublicense,
11// and/or sell copies of the Software, and to permit persons to whom the
12// Software is furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE.
24
25// $Id: ScreenInfo.hh,v 1.2 2003/05/10 23:01:00 fluxgen Exp $
26
27#ifndef SCREENINFO_HH
28#define SCREENINFO_HH
29
30#include <X11/Xlib.h>
31
32#ifdef HAVE_CONFIG_H
33#include "config.h"
34#endif // HAVE_CONFIG_H
35
36#ifdef XINERAMA
37extern "C" {
38#include <X11/extensions/Xinerama.h>
39}
40#endif // XINERAMA
41
42/// holds information about a screen
43class ScreenInfo {
44public:
45 explicit ScreenInfo(int screen_num);
46 ~ScreenInfo();
47
48 inline int getScreenNumber() const { return screen_number; }
49
50#ifdef XINERAMA
51 inline bool hasXinerama() const { return m_hasXinerama; }
52 inline int getNumHeads() const { return xineramaNumHeads; }
53 unsigned int getHead(int x, int y) const;
54 unsigned int getCurrHead() const;
55 unsigned int getHeadWidth(unsigned int head) const;
56 unsigned int getHeadHeight(unsigned int head) const;
57 int getHeadX(unsigned int head) const;
58 int getHeadY(unsigned int head) const;
59#endif // XINERAMA
60
61private:
62 Visual *visual;
63 Window root_window;
64 Colormap m_colormap;
65
66 int depth, screen_number;
67 unsigned int width, height;
68#ifdef XINERAMA
69 bool m_hasXinerama;
70 int xineramaMajor, xineramaMinor, xineramaNumHeads, xineramaLastHead;
71 XineramaScreenInfo *xineramaInfos;
72#endif // XINERAMA
73
74};
75
76#endif // SCREENINFO_HH