Home · All Namespaces · All Classes |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of mhome. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #ifndef X11WRAPPER_H_ 00021 #define X11WRAPPER_H_ 00022 00023 #include <X11/Xlib.h> 00024 #include <X11/Xutil.h> 00025 #include <X11/Xatom.h> 00026 #include <X11/extensions/Xcomposite.h> 00027 #include <X11/extensions/Xdamage.h> 00028 00029 class X11Wrapper 00030 { 00031 public: 00032 static Atom XInternAtom(Display *display, const char *atom_name, Bool only_if_exists); 00033 static int XSelectInput(Display *display, Window w, long event_mask); 00034 static Status XGetWindowAttributes(Display *display, Window w, XWindowAttributes *window_attributes_return); 00035 static int XGetWindowProperty(Display *display, Window w, Atom property, long long_offset, long long_length, Bool del, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return); 00036 static int XFree(void *data); 00037 static Status XGetWMName(Display *display, Window w, XTextProperty *text_prop_return); 00038 static Status XGetTextProperty(Display *display, Window w, XTextProperty *text_prop_return, Atom property); 00039 static XWMHints *XGetWMHints(Display *display, Window w); 00040 static int XFreePixmap(Display *display, Pixmap pixmap); 00041 static Pixmap XCompositeNameWindowPixmap(Display *dpy, Window window); 00042 static Damage XDamageCreate(Display *dpy, Drawable drawable, int level); 00043 static void XDamageDestroy(Display *dpy, Damage damage); 00044 static int XSync(Display *display, Bool discard); 00045 static XErrorHandler XSetErrorHandler(XErrorHandler handler); 00046 static int XChangeProperty(Display *display, Window w, Atom property, Atom type, int format, int mode, unsigned char *data, int nelements); 00047 static Status XSendEvent(Display *display, Window w, Bool propagate, long event_mask, XEvent *event_send); 00048 static void XDamageSubtract(Display *dpy, Damage damage, XserverRegion repair, XserverRegion parts); 00049 static Status XGetTransientForHint(Display *display, Window w, Window *prop_window_return); 00050 }; 00051 00052 #endif /* X11WRAPPER_H_ */
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |