summaryrefslogtreecommitdiffstats
path: root/tdecore/netwm_p.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
commite16866e072f94410321d70daedbcb855ea878cac (patch)
treeee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdecore/netwm_p.h
parenta58c20c1a7593631a1b50213c805507ebc16adaf (diff)
downloadtdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz
tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdecore/netwm_p.h')
-rw-r--r--tdecore/netwm_p.h155
1 files changed, 155 insertions, 0 deletions
diff --git a/tdecore/netwm_p.h b/tdecore/netwm_p.h
new file mode 100644
index 000000000..a2395c4ac
--- /dev/null
+++ b/tdecore/netwm_p.h
@@ -0,0 +1,155 @@
+/*
+
+ Copyright (c) 2000 Troll Tech AS
+ Copyright (c) 2003 Lubos Lunak <l.lunak@kde.org>
+
+ 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,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ 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.
+
+*/
+
+
+#ifndef __net_wm_p_h
+#define __net_wm_p_h
+
+/**
+ Resizable array class.
+
+ This resizable array is used to simplify the implementation. The existence of
+ this class is to keep the implementation from depending on a separate
+ framework/library.
+ @internal
+**/
+
+template <class Z> class NETRArray {
+public:
+ /**
+ Constructs an empty (size == 0) array.
+ **/
+
+ NETRArray();
+
+ /**
+ Resizable array destructor.
+ **/
+
+ ~NETRArray();
+
+ /**
+ The [] operator does the work. If the index is larger than the current
+ size of the array, it is resized.
+ **/
+
+ Z &operator[](int);
+
+ /**
+ Returns the size of the array.
+ **/
+
+ int size() const { return sz; }
+
+ /**
+ Resets the array (size == 0).
+ **/
+ void reset();
+
+private:
+ int sz;
+ int capacity;
+ Z *d;
+};
+
+
+/**
+ Private data for the NETRootInfo class.
+ @internal
+**/
+
+struct NETRootInfoPrivate {
+ // information about the X server
+ Display *display;
+ NETSize rootSize;
+ Window root;
+ Window supportwindow;
+ const char *name;
+ int screen;
+
+ // data that changes (either by the window manager or by a client)
+ // and requires updates
+ NETRArray<NETPoint> viewport;
+ NETRArray<NETRect> workarea;
+ NETSize geometry;
+ Window active;
+ Window *clients, *stacking, *virtual_roots, *kde_system_tray_windows;
+ NETRArray<const char *> desktop_names;
+ int number_of_desktops;
+ int current_desktop;
+
+ unsigned long clients_count, stacking_count, virtual_roots_count,
+ kde_system_tray_windows_count;
+ bool showing_desktop;
+ NET::Orientation desktop_layout_orientation;
+ NET::DesktopLayoutCorner desktop_layout_corner;
+ int desktop_layout_columns, desktop_layout_rows;
+
+ unsigned long properties[ 5 ];
+ unsigned long client_properties[ 5 ]; // properties the client is interested in
+
+ int ref;
+};
+
+
+/**
+ Private data for the NETWinInfo class.
+ @internal
+**/
+
+struct NETWinInfoPrivate {
+ Display *display;
+ Window window, root;
+ NET::MappingState mapping_state;
+ Bool mapping_state_dirty;
+
+ NETRArray<NETIcon> icons;
+ int icon_count;
+
+ NETRect icon_geom, win_geom;
+ unsigned long state;
+ NETExtendedStrut extended_strut;
+ NETStrut strut;
+ NETStrut frame_strut; // strut?
+ NETRArray<NET::WindowType> types;
+ char *name, *visible_name, *icon_name, *visible_icon_name;
+ int desktop;
+ int pid;
+ int handled_icons;
+ Window kde_system_tray_win_for;
+ Time user_time;
+ char* startup_id;
+ Window transient_for, window_group;
+ unsigned long allowed_actions;
+ char* class_class, *class_name, *role, *client_machine;
+
+ unsigned long properties[ 2 ];
+ bool has_net_support;
+
+ int ref;
+};
+
+
+#endif // __net_wm_p_h