-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclientwin.h
60 lines (51 loc) · 1.8 KB
/
clientwin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* Skippy - Seduces Kids Into Perversion
*
* Copyright (C) 2004 Hyriand <[email protected]>
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef SKIPPY_CLIENT_H
#define SKIPPY_CLIENT_H
struct _SkippyWindow {
Window window;
int x, y;
unsigned int width, height;
};
typedef struct _SkippyWindow SkippyWindow;
struct _MainWin;
struct _ClientWin{
struct _MainWin *mainwin;
SkippyWindow client;
SkippyWindow mini;
Imlib_Image bg_image;
Pixmap bg_pixmap;
int focused;
/* These are virtual positions set by the layout routine */
int x, y;
};
typedef struct _ClientWin ClientWin;
int clientwin_validate_func(dlist *, void *);
int clientwin_sort_func(dlist *, dlist *, void *);
ClientWin *clientwin_create(struct _MainWin *, Window);
void clientwin_destroy(ClientWin *);
void clientwin_move(ClientWin *, float, int, int);
void clientwin_map(ClientWin *, int);
void clientwin_unmap(ClientWin *);
int clientwin_handle(ClientWin *, XEvent *);
int clientwin_cmp_func(dlist *, void*);
void clientwin_update(ClientWin *cw);
int clientwin_check_group_leader_func(dlist *l, void *data);
void clientwin_render(ClientWin *);
#endif /* SKIPPY_CLIENT_H */