/* * Copyright (C) 2017 nullifiedcat * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 . */ #pragma once #ifdef __cplusplus extern "C" { #endif #include #include struct xoverlay_library { Display *display; Window window; Colormap colormap; GC gc; XGCValues gcvalues; XFontStruct font; int screen; int width; int height; struct { int x; int y; } mouse; char init; char drawing; char mapped; }; extern struct xoverlay_library xoverlay_library; int xoverlay_init(); void xoverlay_destroy(); void xoverlay_show(); void xoverlay_hide(); void xoverlay_draw_begin(); void xoverlay_draw_end(); #ifdef __cplusplus } #endif