mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
edges, resistance, snap: unified resistance and snapping engine
This commit is contained in:
parent
1b0f1a4c4e
commit
e7e6d29237
8 changed files with 748 additions and 469 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue