jcs ratpoison hax
at jcs 60 lines 2.3 kB view raw
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 22#ifndef SPLIT_H 23#define SPLIT_H 24 25rp_window *set_frames_window (rp_frame *frame, rp_window *win); 26void cleanup_frame (rp_frame *frame); 27void maximize_all_windows_in_frame (rp_frame *frame); 28void h_split_frame (rp_frame *frame, int pixels); 29void v_split_frame (rp_frame *frame, int pixels); 30void remove_all_splits (void); 31void resize_shrink_to_window (rp_frame *frame); 32void resize_frame_horizontally (rp_frame *frame, int diff); 33void resize_frame_vertically (rp_frame *frame, int diff); 34void remove_frame (rp_frame *frame); 35rp_window *find_window_for_frame (rp_frame *frame); 36rp_frame *find_windows_frame (rp_window *win); 37int num_frames (rp_screen *s); 38rp_frame *find_frame_next (rp_frame *frame); 39rp_frame *find_frame_prev (rp_frame *frame); 40rp_window *current_window (void); 41void init_frame_lists (void); 42void init_frame_list (rp_screen *screen); 43void set_active_frame (rp_frame *frame, int force_indicator); 44void exchange_with_frame (rp_frame *cur, rp_frame *frame); 45void blank_frame (rp_frame *frame); 46void show_frame_indicator (int force); 47void hide_frame_indicator (void); 48 49void show_frame_message (char *msg); 50 51rp_frame *find_frame_right (rp_frame *frame); 52rp_frame *find_frame_left (rp_frame *frame); 53rp_frame *find_frame_down (rp_frame *frame); 54rp_frame *find_frame_up (rp_frame *frame); 55rp_frame *find_last_frame (void); 56rp_frame * find_frame_number (int num); 57 58rp_frame *current_frame (void); 59 60#endif