resistance: refactor snap constraints, use in interactive resistance

This commit is contained in:
Andrew J. Hesford 2025-07-04 15:17:35 -04:00 committed by Johan Malm
parent 3aab0c3b91
commit 476fd5f25e
4 changed files with 89 additions and 60 deletions

View file

@ -2,19 +2,21 @@
#ifndef LABWC_SNAP_CONSTRAINTS_H
#define LABWC_SNAP_CONSTRAINTS_H
#include <wlr/util/edges.h>
#include "common/border.h"
#include "view.h"
struct wlr_box;
void snap_constraints_set(struct view *view,
enum view_edge direction, struct wlr_box geom);
enum wlr_edges direction, struct wlr_box geom);
void snap_constraints_invalidate(struct view *view);
void snap_constraints_update(struct view *view);
struct wlr_box snap_constraints_effective(struct view *view,
enum view_edge direction);
enum wlr_edges direction, bool use_pending);
#endif /* LABWC_SNAP_CONSTRAINTS_H */