aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-02 23:06:44 +0100
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-18 10:39:38 +1000
commitb3ee9af0c837bcb48eb30021eaa42c882426e66a (patch)
tree8f2635471aaee001a51e11e922ddb01952ed0f55 /include
parentdb4b4935b38b778398170d083a693f82831f1936 (diff)
downloadsway-b3ee9af0c837bcb48eb30021eaa42c882426e66a.tar.xz
Add view_get_geometry
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/view.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index c2225bcb..1ded601c 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -38,6 +38,7 @@ struct sway_view_impl {
const char *(*get_string_prop)(struct sway_view *view,
enum sway_view_prop prop);
uint32_t (*get_int_prop)(struct sway_view *view, enum sway_view_prop prop);
+ void (*get_geometry)(struct sway_view *view, struct wlr_box *box);
uint32_t (*configure)(struct sway_view *view, double lx, double ly,
int width, int height);
void (*set_activated)(struct sway_view *view, bool activated);
@@ -285,10 +286,6 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface);
void view_unmap(struct sway_view *view);
-void view_update_position(struct sway_view *view, double lx, double ly);
-
-void view_update_size(struct sway_view *view, int width, int height);
-
void view_child_init(struct sway_view_child *child,
const struct sway_view_child_impl *impl, struct sway_view *view,
struct wlr_surface *surface);