Back to index

unity  6.0.0
X11_mock.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2012 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU General Public License version 3, as published
00006  * by the  Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranties of
00010  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * version 3 along with this program.  If not, see
00015  * <http://www.gnu.org/licenses/>
00016  *
00017  * Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com>
00018  *
00019  */
00020 
00021 #ifndef X11_MOCK_H
00022 #define X11_MOCK_H
00023 
00024 #include <X11/Xlib.h>
00025 
00026 Cursor XCreateFontCursorMock(Display *display, unsigned int shape);
00027 
00028 int XFreeCursorMock(Display *display, Cursor cursor);
00029 
00030 int XSyncMock(Display *display, Bool discard);
00031 
00032 int XWarpPointerMock(Display *display, Window src_w, Window dest_w,
00033                      int src_x, int src_y,
00034                      unsigned int src_width, unsigned int src_height,
00035                      int dest_x, int dest_y);
00036 
00037 #endif // X11_MOCK_H