Address review comments

This commit is contained in:
emersion 2018-04-02 10:57:45 -04:00
parent 1d68f9ecca
commit 61fabede14
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 125 additions and 122 deletions

View file

@ -69,10 +69,8 @@ enum sway_view_prop {
struct sway_view_impl {
const char *(*get_prop)(struct sway_view *view,
enum sway_view_prop prop);
void (*set_size)(struct sway_view *view,
int width, int height);
void (*set_position)(struct sway_view *view,
double ox, double oy);
void (*configure)(struct sway_view *view, double ox, double oy, int width,
int height);
void (*set_activated)(struct sway_view *view, bool activated);
void (*close)(struct sway_view *view);
};
@ -114,14 +112,19 @@ const char *view_get_class(struct sway_view *view);
const char *view_get_instance(struct sway_view *view);
void view_set_size(struct sway_view *view, int width, int height);
void view_set_position(struct sway_view *view, double ox, double oy);
void view_configure(struct sway_view *view, double ox, double oy, int width,
int height);
void view_set_activated(struct sway_view *view, bool activated);
void view_close(struct sway_view *view);
void view_damage_whole(struct sway_view *view);
void view_damage_from(struct sway_view *view);
// view implementation
void view_map(struct sway_view *view, struct wlr_surface *wlr_surface);
void view_map_unmanaged(struct sway_view *view,
@ -129,8 +132,8 @@ void view_map_unmanaged(struct sway_view *view,
void view_unmap(struct sway_view *view);
void view_damage_whole(struct sway_view *view);
void view_update_position(struct sway_view *view, double ox, double oy);
void view_damage_from(struct sway_view *view);
void view_update_size(struct sway_view *view, int width, int height);
#endif