1 /* Skippy - Seduces Kids Into Perversion
3 * Copyright (C) 2004 Hyriand <hyriand@thegraveyard.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef SKIPPY_CLIENT_H
21 #define SKIPPY_CLIENT_H
23 struct _SkippyWindow {
26 unsigned int width, height;
27 XRenderPictFormat *format;
30 typedef struct _SkippyWindow SkippyWindow;
34 struct _MainWin *mainwin;
40 Picture origin, destination;
47 /* XserverRegion repair; */
49 /* These are virtual positions set by the layout routine */
52 typedef struct _ClientWin ClientWin;
54 int clientwin_validate_func(dlist *, void *);
55 int clientwin_sort_func(dlist *, dlist *, void *);
56 ClientWin *clientwin_create(struct _MainWin *, Window);
57 void clientwin_destroy(ClientWin *, Bool parentDestroyed);
58 void clientwin_move(ClientWin *, float, int, int);
59 void clientwin_map(ClientWin *);
60 void clientwin_unmap(ClientWin *);
61 int clientwin_handle(ClientWin *, XEvent *);
62 int clientwin_cmp_func(dlist *, void*);
63 void clientwin_update(ClientWin *cw);
64 int clientwin_check_group_leader_func(dlist *l, void *data);
65 void clientwin_render(ClientWin *);
66 void clientwin_schedule_repair(ClientWin *cw, XRectangle *area);
67 void clientwin_repair(ClientWin *cw);
68 int client_msg(Display *disp, Window win, char *msg, /* {{{ */
69 unsigned long data0, unsigned long data1,
70 unsigned long data2, unsigned long data3,
72 int clientwin_backhome();
74 #endif /* SKIPPY_CLIENT_H */