A tiling window manager
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 SPLIT_H
20#define SPLIT_H
21
22rp_window *set_frames_window(rp_frame *frame, rp_window *win);
23void cleanup_frame(rp_frame *frame);
24void maximize_all_windows_in_frame(rp_frame *frame);
25void maximize_frame(rp_frame *frame);
26void h_split_frame(rp_frame *frame, int pixels);
27void v_split_frame(rp_frame *frame, int pixels);
28void remove_all_splits(void);
29void resize_shrink_to_window(rp_frame *frame);
30void resize_frame_horizontally(rp_frame *frame, int diff);
31void resize_frame_vertically(rp_frame *frame, int diff);
32void remove_frame(rp_frame *frame);
33rp_window *find_window_for_frame(rp_frame *frame);
34rp_frame *find_windows_frame(rp_window *win);
35int num_frames(rp_vscreen *v);
36rp_frame *find_frame_next(rp_frame *frame);
37rp_frame *find_frame_prev(rp_frame *frame);
38rp_window *current_window(void);
39void init_frame_list(rp_vscreen *vscreen);
40void set_active_frame(rp_frame *frame, int force_indicator);
41void exchange_with_frame(rp_frame *cur, rp_frame *frame);
42void blank_frame(rp_frame *frame);
43void show_frame_indicator(int force);
44void hide_frame_indicator(void);
45
46void show_frame_message(char *msg);
47
48rp_frame *find_frame_right(rp_frame *frame);
49rp_frame *find_frame_left(rp_frame *frame);
50rp_frame *find_frame_down(rp_frame *frame);
51rp_frame *find_frame_up(rp_frame *frame);
52rp_frame *find_last_frame(rp_vscreen *v);
53rp_frame *find_frame_number(rp_vscreen *v, int num);
54
55rp_frame *current_frame(rp_vscreen *v);
56
57#endif