1 /* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 15 * 16 * Copyright (C) 2006-2016 XNeur Team 17 * 18 */ 19 20 #ifndef _WINDOW_H_ 21 #define _WINDOW_H_ 22 23 #include <X11/Xutil.h> 24 25 #include "xneur.h" 26 27 struct _window 28 { 29 struct _xneur_handle *handle; 30 31 struct _keymap *keymap; 32 33 Display *display; 34 Window window; 35 36 Atom internal_atom; 37 38 int _NET_SUPPORTED; 39 40 int (*create) (struct _window *p); 41 void (*destroy) (struct _window *p); 42 void (*move_window) (struct _window *p, int x, int y); 43 int (*init_keymap) (struct _window *p); 44 void (*uninit_keymap) (struct _window *p); 45 void (*uninit) (struct _window *p); 46 }; 47 48 struct _window* window_init(struct _xneur_handle *handle); 49 50 #endif /* _WINDOW_H_ */ 51