/usr/share/sip/PyKDE4/kdeui/netwm.sip is in python-kde4-dev 4:4.13.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | //
// Copyright 2008 Jim Bublitz <jbublitz@nwinternet.com>
// Earlier copyrights 1998 - 2007 Jim Bublitz also apply
// Generated by twine
// This file is part of PyKDE4.
// PyKDE4 is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of
// the License, or (at your option) any later version.
// PyKDE4 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
%ModuleHeaderCode
#include <netwm.h>
%End
class NETRootInfo : NET
{
%TypeHeaderCode
#include <netwm.h>
%End
public:
enum
{
PROTOCOLS,
WINDOW_TYPES,
STATES,
PROTOCOLS2,
ACTIONS,
PROPERTIES_SIZE
};
//force
NETRootInfo (Display* display, Window supportWindow, const char* wmName, SIP_PYLIST properties, int screen = -1, bool doACtivate = 1) [(Display*, Window, const char*, const unsigned long*, int, int = -1, bool = 1)];
%MethodCode
int count = PyList_Size (a3);
unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) {
#if PY_MAJOR_VERSION >= 3
list [i] = (unsigned long)PyLong_AsLong (PyList_GET_ITEM (a3, i));
#else
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a3, i));
#endif
}
Py_BEGIN_ALLOW_THREADS
sipCpp = new sipNETRootInfo (a0, a1, a2, list, count, a4, a5);
Py_END_ALLOW_THREADS
delete list;
%End
NETRootInfo (Display* display, SIP_PYLIST properties, int screen = -1, bool doActivate = 1) [(Display*, const unsigned long*, int, int = -1, bool = 1)];
%MethodCode
int count = PyList_Size (a1);
unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++)
#if PY_MAJOR_VERSION >= 3
list [i] = (unsigned long)PyLong_AsLong(PyList_GET_ITEM (a1, i));
#else
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a1, i));
#endif
Py_BEGIN_ALLOW_THREADS
sipCpp = new sipNETRootInfo (a0, list, count, a2, a3);
Py_END_ALLOW_THREADS
delete list;
%End
//end
NETRootInfo (Display* display, unsigned long properties, int screen = -1, bool doActivate = 1);
NETRootInfo (const NETRootInfo& rootinfo);
Display* x11Display () const;
Window rootWindow () const;
Window supportWindow () const;
const char* wmName () const;
int screenNumber () const;
bool isSupported (NET::Property property) const;
bool isSupported (NET::Property2 property) const;
bool isSupported (NET::WindowType type) const;
bool isSupported (NET::State state) const;
bool isSupported (NET::Action action) const;
//ig const unsigned long* supportedProperties () const;
//ig const unsigned long* passedProperties () const;
//ig const Window* clientList () const;
int clientListCount () const;
//ig const Window* clientListStacking () const;
int clientListStackingCount () const;
NETSize desktopGeometry (int desktop) const;
NETPoint desktopViewport (int desktop) const;
NETRect workArea (int desktop) const;
const char* desktopName (int desktop) const;
//ig const Window* virtualRoots () const;
int virtualRootsCount () const;
NET::Orientation desktopLayoutOrientation () const;
QSize desktopLayoutColumnsRows () const;
NET::DesktopLayoutCorner desktopLayoutCorner () const;
int numberOfDesktops (bool ignore_viewport = 0) const;
int currentDesktop (bool ignore_viewport = 0) const;
Window activeWindow () const;
void activate ();
void setClientList (const Window* windows, unsigned int count);
void setClientListStacking (const Window* windows, unsigned int count);
void setCurrentDesktop (int desktop, bool ignore_viewport = 0);
void setDesktopGeometry (int desktop, const NETSize& geometry);
void setDesktopViewport (int desktop, const NETPoint& viewport);
void setNumberOfDesktops (int numberOfDesktops);
void setDesktopName (int desktop, const char* desktopName);
void setActiveWindow (Window window, NET::RequestSource src, Time timestamp, Window active_window);
void setActiveWindow (Window window);
void setWorkArea (int desktop, const NETRect& workArea);
void setVirtualRoots (const Window* windows, unsigned int count);
void setDesktopLayout (NET::Orientation orientation, int columns, int rows, NET::DesktopLayoutCorner corner);
void setShowingDesktop (bool showing);
bool showingDesktop () const;
void closeWindowRequest (Window window);
void moveResizeRequest (Window window, int x_root, int y_root, NET::Direction direction);
void moveResizeWindowRequest (Window window, int flags, int x, int y, int width, int height);
void restackRequest (Window window, NET::RequestSource source, Window above, int detail, Time timestamp);
void sendPing (Window window, Time timestamp);
void takeActivity (Window window, Time timestamp, long flags);
//ig void event (XEvent* event, unsigned long* properties, int properties_size);
//ig unsigned long event (XEvent* event);
protected:
virtual void addClient (Window window);
virtual void removeClient (Window window);
virtual void changeNumberOfDesktops (int numberOfDesktops);
virtual void changeDesktopGeometry (int desktop, const NETSize& geom);
virtual void changeDesktopViewport (int desktop, const NETPoint& viewport);
virtual void changeCurrentDesktop (int desktop);
virtual void closeWindow (Window window);
virtual void moveResize (Window window, int x_root, int y_root, unsigned long direction);
virtual void gotPing (Window window, Time timestamp);
virtual void changeActiveWindow (Window window, NET::RequestSource src, Time timestamp, Window active_window);
virtual void moveResizeWindow (Window window, int flags, int x, int y, int width, int height);
virtual void restackWindow (Window window, NET::RequestSource source, Window above, int detail, Time timestamp);
virtual void gotTakeActivity (Window window, Time timestamp, long flags);
virtual void changeShowingDesktop (bool showing);
//ig virtual void virtual_hook (int id, void* data);
public:
//ig NETRootInfo (Display* display, Window supportWindow, const char* wmName, const unsigned long properties [], int properties_size, int screen = -1, bool doActivate = 1);
//ig NETRootInfo (Display* display, const unsigned long properties [], int properties_size, int screen = -1, bool doActivate = 1);
~NETRootInfo ();
void setSupported (NET::Property property, bool on = 1);
void setSupported (NET::Property2 property, bool on = 1);
void setSupported (NET::WindowType property, bool on = 1);
void setSupported (NET::State property, bool on = 1);
void setSupported (NET::Action property, bool on = 1);
};
// NETRootInfo
class NETWinInfo : NET
{
%TypeHeaderCode
#include <netwm.h>
%End
public:
enum
{
PROTOCOLS,
PROTOCOLS2,
PROPERTIES_SIZE
};
//force
NETWinInfo (Display* display, Window window, Window rootWindow, SIP_PYLIST properties, NET::Role role = NET::Client) [(Display*, Window, Window, const unsigned long*, int, Role = Client)];
%MethodCode
int count = PyList_Size (a3);
unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) {
#if PY_MAJOR_VERSION >= 3
list [i] = (unsigned long)PyLong_AsLong (PyList_GET_ITEM (a3, i));
#else
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a3, i));
#endif
}
Py_BEGIN_ALLOW_THREADS
sipCpp = new sipNETWinInfo (a0, a1, a2, list, count, a4);
Py_END_ALLOW_THREADS
delete list;
%End
//end
NETWinInfo (Display* display, Window window, Window rootWindow, unsigned long properties, NET::Role role = NET::Client);
NETWinInfo (const NETWinInfo& wininfo);
bool hasNETSupport () const;
//ig const unsigned long* passedProperties () const;
NETRect iconGeometry () const;
unsigned long state () const;
NETExtendedStrut extendedStrut () const;
NETStrut strut () const;
NET::WindowType windowType (unsigned long supported_types) const;
bool hasWindowType () const;
const char* name () const;
const char* visibleName () const;
const char* iconName () const;
const char* visibleIconName () const;
int desktop (bool ignore_viewport = 0) const;
int pid () const;
Bool handledIcons () const;
NET::MappingState mappingState () const;
//ig void setIcon (NETIcon icon, Bool replace = True);
void setIconGeometry (NETRect geometry);
void setExtendedStrut (const NETExtendedStrut& extended_strut);
void setStrut (NETStrut strut);
void setState (unsigned long state, unsigned long mask);
void setWindowType (NET::WindowType type);
void setName (const char* name);
void setVisibleName (const char* visibleName);
void setIconName (const char* name);
void setVisibleIconName (const char* name);
void setDesktop (int desktop, bool ignore_viewport = 0);
void setPid (int pid);
void setHandledIcons (Bool handled);
void setFrameExtents (NETStrut strut);
//ig NETStrut frameExtents () const;
//ig NETIcon icon (int width = -1, int height = -1) const;
//ig const int* iconSizes () const;
void setUserTime (Time time);
Time userTime () const;
void setStartupId (const char* startup_id);
const char* startupId () const;
void setOpacity (unsigned long opacity);
unsigned long opacity () const;
void setAllowedActions (unsigned long actions);
unsigned long allowedActions () const;
Window transientFor () const;
Window groupLeader () const;
const char* windowClassClass () const;
const char* windowClassName () const;
const char* windowRole () const;
const char* clientMachine () const;
void kdeGeometry (NETRect& frame, NETRect& window);
//ig void event (XEvent* event, unsigned long* properties, int properties_size);
//ig unsigned long event (XEvent* event);
//ig const int OnAllDesktops;
protected:
virtual void changeDesktop (int desktop);
virtual void changeState (unsigned long state, unsigned long mask);
//ig virtual void virtual_hook (int id, void* data);
public:
//force
static const int OnAllDesktops;
//end
//ig NETWinInfo (Display* display, Window window, Window rootWindow, const unsigned long properties [], int properties_size, NET::Role role = NET::Role::Client);
~NETWinInfo ();
void setFrameOverlap (NETStrut strut);
NETStrut frameOverlap () const;
const char* activities () const;
void setBlockingCompositing (bool active);
bool isBlockingCompositing () const;
};
// NETWinInfo
//ig class NETWinInfo2;
//force
typedef ulong Time;
//end
|