diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-10 12:24:56 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-10 12:24:56 -0400 |
commit | 0a6f54384ceca7f639bcaa3dc27c2c407e3e5843 (patch) | |
tree | ab59377961c4e2941945c4a799c6fe0d2284e571 /include/wlr | |
parent | 821cf92498733b43494e2eda21e3342f6f3579e2 (diff) |
wl-shell: documentation
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_wl_shell.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_wl_shell.h b/include/wlr/types/wlr_wl_shell.h index 6f6d0182..4e814817 100644 --- a/include/wlr/types/wlr_wl_shell.h +++ b/include/wlr/types/wlr_wl_shell.h @@ -52,7 +52,7 @@ struct wlr_wl_shell_surface { struct wl_resource *resource; struct wlr_surface *surface; bool configured; - struct wl_list link; + struct wl_list link; // wlr_wl_shell::surfaces uint32_t ping_serial; struct wl_event_source *ping_timer; @@ -119,10 +119,25 @@ struct wlr_wl_shell_surface_set_maximized_event { struct wlr_output *output; }; +/** + * Create a wl_shell for this display. + */ struct wlr_wl_shell *wlr_wl_shell_create(struct wl_display *display); + +/** + * Destroy this surface. + */ void wlr_wl_shell_destroy(struct wlr_wl_shell *wlr_wl_shell); +/** + * Send a ping to the surface. If the surface does not respond with a pong + * within a reasonable amount of time, the ping timeout event will be emitted. + */ void wlr_wl_shell_surface_ping(struct wlr_wl_shell_surface *surface); + +/** + * Request that the surface configure itself to be the given size. + */ void wlr_wl_shell_surface_configure(struct wlr_wl_shell_surface *surface, enum wl_shell_surface_resize edges, int32_t width, int32_t height); |