File indexing completed on 2024-04-28 05:46:51

0001 /*****************************************************************************
0002  *   Copyright 2014 - 2015 Yichao Yu <yyc1992@gmail.com>                     *
0003  *                                                                           *
0004  *   This program is free software; you can redistribute it and/or modify    *
0005  *   it under the terms of the GNU Lesser General Public License as          *
0006  *   published by the Free Software Foundation; either version 2.1 of the    *
0007  *   License, or (at your option) version 3, or any later version accepted   *
0008  *   by the membership of KDE e.V. (or its successor approved by the         *
0009  *   membership of KDE e.V.), which shall act as a proxy defined in          *
0010  *   Section 6 of version 3 of the license.                                  *
0011  *                                                                           *
0012  *   This program is distributed in the hope that it will be useful,         *
0013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
0014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       *
0015  *   Lesser General Public License for more details.                         *
0016  *                                                                           *
0017  *   You should have received a copy of the GNU Lesser General Public        *
0018  *   License along with this library. If not,                                *
0019  *   see <http://www.gnu.org/licenses/>.                                     *
0020  *****************************************************************************/
0021 
0022 #ifndef _QTC_UTILS_X11WRAP_H_
0023 #define _QTC_UTILS_X11WRAP_H_
0024 
0025 #include "x11base.h"
0026 
0027 void qtcX11Flush();
0028 void qtcX11FlushXlib();
0029 uint32_t qtcX11GenerateId();
0030 void qtcX11ChangeProperty(uint8_t mode, xcb_window_t win, xcb_atom_t prop,
0031                           xcb_atom_t type, uint8_t format, uint32_t len,
0032                           const void *data);
0033 xcb_query_tree_reply_t *qtcX11QueryTree(xcb_window_t win);
0034 void qtcX11ReparentWindow(xcb_window_t win, xcb_window_t parent,
0035                           int16_t x, int16_t y);
0036 void qtcX11SendEvent(uint8_t propagate, xcb_window_t destination,
0037                      uint32_t event_mask, const void *event);
0038 xcb_get_property_reply_t *qtcX11GetProperty(uint8_t del, xcb_window_t win,
0039                                             xcb_atom_t prop, xcb_atom_t type,
0040                                             uint32_t offset, uint32_t len);
0041 void *qtcX11GetPropertyValue(const xcb_get_property_reply_t *reply);
0042 int qtcX11GetPropertyValueLength(const xcb_get_property_reply_t *reply);
0043 
0044 #endif