2021-11-13 21:56:53 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2023-05-13 16:10:33 +03:00
|
|
|
#ifndef LABWC_RESISTANCE_H
|
|
|
|
|
#define LABWC_RESISTANCE_H
|
2021-10-24 21:31:05 -04:00
|
|
|
#include "labwc.h"
|
|
|
|
|
|
2024-08-07 09:17:25 +09:00
|
|
|
/**
|
|
|
|
|
* resistance_unsnap_apply() - Apply resistance when dragging a
|
|
|
|
|
* maximized/tiled window. Returns true when the view needs to be un-tiled.
|
|
|
|
|
*/
|
|
|
|
|
bool resistance_unsnap_apply(struct view *view, int *x, int *y);
|
|
|
|
|
void resistance_move_apply(struct view *view, int *x, int *y);
|
2021-10-24 21:31:05 -04:00
|
|
|
void resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo);
|
|
|
|
|
|
2023-05-13 16:10:33 +03:00
|
|
|
#endif /* LABWC_RESISTANCE_H */
|