jcs ratpoison hax
1/* Copyright (C) 2000, 2001, 2002, 2003, 2004 Shawn Betts <sabetts@vcn.bc.ca>
2 *
3 * This file is part of ratpoison.
4 *
5 * ratpoison 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, or (at your option)
8 * any later version.
9 *
10 * ratpoison 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.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307 USA
19 */
20
21#ifndef SCREEN_H
22#define SCREEN_H
23
24int screen_bottom (rp_screen *s);
25int screen_top (rp_screen *s);
26int screen_right (rp_screen *s);
27int screen_left (rp_screen *s);
28int screen_height (rp_screen *s);
29int screen_width (rp_screen *s);
30
31struct list_head *screen_copy_frameset (rp_screen *s);
32void screen_restore_frameset (rp_screen *s, struct list_head *head);
33void screen_free_nums (rp_screen *s);
34void frameset_free (struct list_head *head);
35rp_frame *screen_get_frame (rp_screen *s, int frame_num);
36rp_frame *screen_find_frame_by_frame (rp_screen *s, rp_frame *f);
37
38rp_screen *find_screen (Window w);
39rp_screen *find_screen_by_attr (XWindowAttributes w);
40
41void init_screens (void);
42void activate_screen (rp_screen *s);
43void deactivate_screen (rp_screen *s);
44
45int is_rp_window (Window w);
46int is_a_root_window (unsigned int w);
47
48char *screen_dump (rp_screen *screen);
49
50void screen_update (rp_screen *s, int left, int top, int width, int height);
51
52int screen_count (void);
53
54rp_screen *screen_next(void);
55rp_screen *screen_prev(void);
56
57rp_screen *screen_number (int number);
58
59void screen_sort(void);
60
61rp_screen *screen_add(int rr_output);
62void screen_del(rp_screen *s);
63void screen_free (rp_screen *s);
64void screen_free_final(void);
65
66#endif