summaryrefslogtreecommitdiff
path: root/src/split.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-02-10 13:43:23 +0000
committersabetts <sabetts>2003-02-10 13:43:23 +0000
commit8a2994e78d00efda379242387d955a42afc10330 (patch)
tree42ff26d9f6761a0f16f44d9558eb5d61aa82c55d /src/split.h
parent3aec26ec206dad19fa859f020c384c5dab339ce2 (diff)
downloadratpoison-8a2994e78d00efda379242387d955a42afc10330.zip
* src/split.h (num_frames): new prototype
(resize_shrink_to_window): likewise (resize_frame_vertically): likewise (resize_frame_horizontally): likewise * src/split.c (num_frames): no longer a static function (resize_shrink_to_window): new function (resize_frame_vertically): likewise (resize_frame_horizontally): likewise * src/main.c (init_defaults): init frame_resize_unit. * src/data.h (struct rp_defaults): new member frame_resize_unit. * src/conf.h (RESIZE_VGROW_KEY): new define (RESIZE_VGROW_MODIFIER): likewise (RESIZE_VSHRINK_KEY): likewise (RESIZE_VSHRINK_MODIFIER): likewise (RESIZE_HGROW_KEY): likewise (RESIZE_HGROW_MODIFIER): likewise (RESIZE_HSHRINK_KEY): likewise (RESIZE_HSHRINK_MODIFIER): likewise (RESIZE_SHRINK_TO_WINDOW_KEY): likewise (RESIZE_SHRINK_TO_WINDOW_MODIFIER): likewise (RESIZE_END_KEY): likewise (RESIZE_END_MODIFIER): likewise * src/actions.h (cmd_shrink): new prototype (cmd_resize): likewise (cmd_defresizeunit): likewise * src/actions.c (user_commands): add commands cmd_resize and cmd_shrink, and cmd_defresizeunit. (cmd_shrink): new function (cmd_resize): likewise (cmd_defresizeunit): likewise
Diffstat (limited to 'src/split.h')
-rw-r--r--src/split.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/split.h b/src/split.h
index 7879329..fe2d853 100644
--- a/src/split.h
+++ b/src/split.h
@@ -22,11 +22,15 @@
#ifndef SPLIT_H
#define SPLIT_H
+int num_frames (screen_info *s);
rp_window *set_frames_window (rp_window_frame *frame, rp_window *win);
void maximize_all_windows_in_frame (rp_window_frame *frame);
void h_split_frame (rp_window_frame *frame, int pixels);
void v_split_frame (rp_window_frame *frame, int pixels);
void remove_all_splits ();
+void resize_shrink_to_window (rp_window_frame *frame);
+void resize_frame_horizontally (rp_window_frame *frame, int steps);
+void resize_frame_vertically (rp_window_frame *frame, int steps);
void remove_frame (rp_window_frame *frame);
rp_window *find_window_for_frame (rp_window_frame *frame);
rp_window_frame *find_windows_frame (rp_window *win);