edges, resistance, snap: unified resistance and snapping engine

This commit is contained in:
Andrew J. Hesford 2024-01-23 13:44:40 -05:00
parent 1b0f1a4c4e
commit e7e6d29237
8 changed files with 748 additions and 469 deletions

View file

@ -7,11 +7,13 @@
struct wlr_box;
struct border snap_get_max_distance(struct view *view);
void snap_move_to_edge(struct view *view,
enum view_edge direction, bool snap_to_windows, int *dx, int *dy);
void snap_vector_to_next_edge(struct view *view, enum view_edge direction, int *dx, int *dy);
int snap_distance_to_next_edge(struct view *view, enum view_edge direction);
void snap_grow_to_next_edge(struct view *view, enum view_edge direction, struct wlr_box *geo);
void snap_shrink_to_next_edge(struct view *view, enum view_edge direction, struct wlr_box *geo);
void snap_grow_to_next_edge(struct view *view,
enum view_edge direction, struct wlr_box *geo);
void snap_shrink_to_next_edge(struct view *view,
enum view_edge direction, struct wlr_box *geo);
#endif /* LABWC_SNAP_H */