diff options
author | rhp <rhp> | 2001-07-26 03:58:24 +0000 |
---|---|---|
committer | rhp <rhp> | 2001-07-26 03:58:24 +0000 |
commit | c18a8137ce063918615d5a74474011b09c349b95 (patch) | |
tree | d9a8dfda2bf0229f288898a3c4cd9691e57e17f2 /src/place.h | |
parent | b6e4c8bc414cf8905e5b2d0f2f84c2155acd10cf (diff) | |
download | metacity-c18a8137ce063918615d5a74474011b09c349b95.tar.gz |
...
Diffstat (limited to 'src/place.h')
-rw-r--r-- | src/place.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/place.h b/src/place.h index 1d3274ba..a628c563 100644 --- a/src/place.h +++ b/src/place.h @@ -32,11 +32,28 @@ void meta_window_place (MetaWindow *window, int *new_x, int *new_y); +/* Returns the position to move the window to in order + * to snap it to the next edge in the given direction, + * while moving. + */ int meta_window_find_next_vertical_edge (MetaWindow *window, gboolean right); int meta_window_find_next_horizontal_edge (MetaWindow *window, gboolean down); +/* Returns the position to move the window to in order + * to snap it to the nearest edge, while moving. + */ +int meta_window_find_nearest_vertical_edge (MetaWindow *window, + int x_pos); + +int meta_window_find_nearest_horizontal_edge (MetaWindow *window, + int y_pos); + +/* FIXME need edge-snap functions for resizing as well, those + * behave somewhat differently. + */ + #endif |