mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
SnapToRegion: Add implementation
This commit is contained in:
parent
45e0a4f48c
commit
51727cf8f7
3 changed files with 69 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <cairo.h>
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct wlr_scene_tree;
|
||||
|
|
|
|||
30
include/regions.h
Normal file
30
include/regions.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __LABWC_REGIONS_H
|
||||
#define __LABWC_REGIONS_H
|
||||
|
||||
//FIXME: ignore that there could be more than a single seat
|
||||
|
||||
struct seat;
|
||||
struct view;
|
||||
struct server;
|
||||
struct output;
|
||||
struct wl_list;
|
||||
struct wlr_box;
|
||||
|
||||
/* Double use: rcxml.c for config and output.c for usage */
|
||||
struct region {
|
||||
struct wl_list link; /* struct rcxml.regions, struct output.regions */
|
||||
char *name;
|
||||
struct wlr_box geo;
|
||||
struct wlr_box percentage;
|
||||
struct {
|
||||
int x;
|
||||
int y;
|
||||
} center;
|
||||
};
|
||||
|
||||
void regions_init(struct server *server, struct seat *seat);
|
||||
void regions_update(struct output *output);
|
||||
void regions_destroy(struct wl_list *regions);
|
||||
|
||||
#endif /* __LABWC_REGIONS_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue