fluxbox/src/Netizen.hh

58 lines
1.9 KiB
C++
Raw Normal View History

2002-08-14 21:59:28 +00:00
// Netizen.hh for Fluxbox
// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
2001-12-11 20:47:02 +00:00
// Netizen.hh for Blackbox - An X11 Window Manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2002-02-04 07:02:52 +00:00
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2001-12-11 20:47:02 +00:00
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
2002-02-17 19:00:24 +00:00
#ifndef NETIZEN_HH
#define NETIZEN_HH
2001-12-11 20:47:02 +00:00
#include <X11/Xlib.h>
2002-08-14 21:59:28 +00:00
class BScreen;
2001-12-11 20:47:02 +00:00
class Netizen {
public:
2003-05-10 16:55:11 +00:00
Netizen(const BScreen &scr, Window w);
2001-12-11 20:47:02 +00:00
2003-05-10 16:55:11 +00:00
inline Window window() const { return m_window; }
2001-12-11 20:47:02 +00:00
2002-12-01 13:42:15 +00:00
void sendWorkspaceCount();
void sendCurrentWorkspace();
2001-12-11 20:47:02 +00:00
2002-12-01 13:42:15 +00:00
void sendWindowFocus(Window w);
void sendWindowAdd(Window w, unsigned long wkspc);
2002-12-01 13:42:15 +00:00
void sendWindowDel(Window w);
void sendWindowRaise(Window w);
void sendWindowLower(Window w);
2001-12-11 20:47:02 +00:00
2003-06-24 14:54:45 +00:00
void sendConfigNotify(XEvent &xe);
2002-05-07 15:23:00 +00:00
private:
2003-05-10 16:55:11 +00:00
const BScreen &m_screen;
2002-12-01 13:42:15 +00:00
Display *m_display; ///< display connection
2003-05-10 16:55:11 +00:00
Window m_window;
2002-12-01 13:42:15 +00:00
XEvent event;
2002-05-07 15:23:00 +00:00
2001-12-11 20:47:02 +00:00
};
#endif // _NETIZEN_HH_