A tiling window manager
at master 59 lines 1.8 kB view raw
1/* 2 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Shawn Betts <sabetts@vcn.bc.ca> 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the Free 6 * Software Foundation; either version 2 of the License, or (at your option) 7 * any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * You should have received a copy of the GNU General Public License along with 15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple 16 * Place, Suite 330, Boston, MA 02111-1307 USA. 17 */ 18 19#ifndef SCREEN_H 20#define SCREEN_H 21 22int screen_bottom(rp_screen *s); 23int screen_top(rp_screen *s); 24int screen_right(rp_screen *s); 25int screen_left(rp_screen *s); 26int screen_height(rp_screen *s); 27int screen_width(rp_screen *s); 28 29rp_screen *find_screen(Window w); 30rp_screen *find_screen_by_attr(XWindowAttributes w); 31 32void init_screens(void); 33void activate_screen(rp_screen *s); 34void deactivate_screen(rp_screen *s); 35 36int is_rp_window(Window w); 37int is_a_root_window(unsigned int w); 38 39char *screen_dump(rp_screen *screen); 40 41void screen_update(rp_screen *s, int left, int top, int width, int height); 42void screen_update_frames(rp_screen *s); 43void screen_update_workarea(rp_screen *s); 44 45int screen_count(void); 46rp_screen *screen_primary(void); 47rp_screen *screen_next(void); 48rp_screen *screen_prev(void); 49 50rp_screen *screen_number(int number); 51 52void screen_sort(void); 53 54rp_screen *screen_add(int rr_output); 55void screen_del(rp_screen *s); 56void screen_free(rp_screen *s); 57void screen_free_final(void); 58 59#endif