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

0001 /*****************************************************************************
0002  *   Copyright 2013 - 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_X11BASE_H_
0023 #define _QTC_UTILS_X11BASE_H_
0024 
0025 #include <xcb/xcb.h>
0026 #include "utils.h"
0027 
0028 extern xcb_atom_t qtc_x11_qtc_menubar_size;
0029 extern xcb_atom_t qtc_x11_qtc_statusbar;
0030 extern xcb_atom_t qtc_x11_qtc_titlebar_size;
0031 extern xcb_atom_t qtc_x11_qtc_active_window;
0032 extern xcb_atom_t qtc_x11_qtc_toggle_menubar;
0033 extern xcb_atom_t qtc_x11_qtc_toggle_statusbar;
0034 extern xcb_atom_t qtc_x11_qtc_opacity;
0035 extern xcb_atom_t qtc_x11_qtc_bgnd;
0036 
0037 bool qtcX11Enabled();
0038 void qtcX11InitXcb(xcb_connection_t *conn, int screen_no);
0039 void qtcX11InitXlib(void *disp);
0040 xcb_connection_t *qtcX11GetConn();
0041 void *qtcX11GetDisp();
0042 int qtcX11DefaultScreenNo();
0043 xcb_screen_t *qtcX11DefaultScreen();
0044 xcb_screen_t *qtcX11GetScreen(int scrn_no=-1);
0045 xcb_window_t qtcX11RootWindow(int scrn_no=-1);
0046 
0047 #endif