2024-04-02 15:58:50 -04:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
#ifndef LABWC_SNAP_CONSTRAINTS_H
|
|
|
|
|
#define LABWC_SNAP_CONSTRAINTS_H
|
|
|
|
|
|
2025-08-26 20:27:34 -04:00
|
|
|
#include "common/edge.h"
|
2024-04-02 15:58:50 -04:00
|
|
|
|
2025-08-26 20:27:34 -04:00
|
|
|
struct view;
|
2024-04-02 15:58:50 -04:00
|
|
|
struct wlr_box;
|
|
|
|
|
|
2025-08-26 20:27:34 -04:00
|
|
|
void snap_constraints_set(struct view *view, enum lab_edge direction,
|
|
|
|
|
struct wlr_box geom);
|
2024-04-02 15:58:50 -04:00
|
|
|
|
|
|
|
|
void snap_constraints_invalidate(struct view *view);
|
|
|
|
|
|
|
|
|
|
void snap_constraints_update(struct view *view);
|
|
|
|
|
|
|
|
|
|
struct wlr_box snap_constraints_effective(struct view *view,
|
2025-08-26 20:27:34 -04:00
|
|
|
enum lab_edge direction, bool use_pending);
|
2024-04-02 15:58:50 -04:00
|
|
|
|
|
|
|
|
#endif /* LABWC_SNAP_CONSTRAINTS_H */
|