kdecore Library API Documentation

netwm_p.h

00001 /*
00002 
00003   Copyright (c) 2000 Troll Tech AS
00004   Copyright (c) 2003 Lubos Lunak <l.lunak@kde.org>
00005 
00006   Permission is hereby granted, free of charge, to any person obtaining a
00007   copy of this software and associated documentation files (the "Software"),
00008   to deal in the Software without restriction, including without limitation
00009   the rights to use, copy, modify, merge, publish, distribute, sublicense,
00010   and/or sell copies of the Software, and to permit persons to whom the
00011   Software is furnished to do so, subject to the following conditions:
00012 
00013   The above copyright notice and this permission notice shall be included in
00014   all copies or substantial portions of the Software.
00015 
00016   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00019   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00020   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00021   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00022   DEALINGS IN THE SOFTWARE.
00023 
00024 */
00025 
00026 
00027 #ifndef   __net_wm_p_h
00028 #define   __net_wm_p_h
00029 
00039 template <class Z> class NETRArray {
00040 public:
00045     NETRArray();
00046 
00051     ~NETRArray();
00052 
00058     Z &operator[](int);
00059 
00064     int size() const { return sz; }
00065     
00069     void reset();
00070 
00071 private:
00072     int sz;
00073     int capacity;
00074     Z *d;
00075 };
00076 
00077 
00083 struct NETRootInfoPrivate {
00084     // information about the X server
00085     Display *display;
00086     NETSize rootSize;
00087     Window root;
00088     Window supportwindow;
00089     const char *name;
00090     int screen;
00091 
00092     // data that changes (either by the window manager or by a client)
00093     // and requires updates
00094     NETRArray<NETPoint> viewport;
00095     NETRArray<NETRect> workarea;
00096     NETSize geometry;
00097     Window active;
00098     Window *clients, *stacking, *virtual_roots, *kde_system_tray_windows;
00099     NETRArray<const char *> desktop_names;
00100     int number_of_desktops;
00101     int current_desktop;
00102 
00103     unsigned long clients_count, stacking_count, virtual_roots_count,
00104     kde_system_tray_windows_count;
00105 
00106     unsigned long properties[ 5 ];
00107     unsigned long client_properties[ 5 ]; // properties the client is interested in
00108 
00109     int ref;
00110 };
00111 
00112 
00118 struct NETWinInfoPrivate {
00119     Display *display;
00120     Window window, root;
00121     NET::MappingState mapping_state;
00122     Bool mapping_state_dirty;
00123 
00124     NETRArray<NETIcon> icons;
00125     int icon_count;
00126 
00127     NETRect icon_geom, win_geom;
00128     unsigned long state;
00129     NETStrut strut, frame_strut;
00130     NETRArray<NET::WindowType> types;
00131     char *name, *visible_name, *icon_name, *visible_icon_name;
00132     int desktop;
00133     int pid;
00134     int handled_icons;
00135     Window kde_system_tray_win_for;
00136     Time user_time;
00137     char* startup_id;
00138     Window transient_for, window_group;
00139     unsigned long allowed_actions;
00140 
00141     unsigned long properties[ 2 ];
00142     bool has_net_support;
00143 
00144     int ref;
00145 };
00146 
00147 
00148 #endif // __net_wm_p_h
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Aug 4 05:23:05 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2003