mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
18 lines
549 B
C
18 lines
549 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_RESISTANCE_H
|
|
#define LABWC_RESISTANCE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <wlr/util/box.h>
|
|
|
|
struct view;
|
|
|
|
/**
|
|
* 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);
|
|
void resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo);
|
|
|
|
#endif /* LABWC_RESISTANCE_H */
|