mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
docs: wlr_surface_from_resource cannot return NULL
Surfaces never become inert.
This commit is contained in:
parent
5d24f6e098
commit
83fdfa511d
1 changed files with 5 additions and 0 deletions
|
|
@ -256,6 +256,11 @@ void wlr_surface_send_frame_done(struct wlr_surface *surface,
|
||||||
*/
|
*/
|
||||||
void wlr_surface_get_extends(struct wlr_surface *surface, struct wlr_box *box);
|
void wlr_surface_get_extends(struct wlr_surface *surface, struct wlr_box *box);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the wlr_surface corresponding to a wl_surface resource. This asserts
|
||||||
|
* that the resource is a valid wl_surface resource created by wlroots and
|
||||||
|
* will never return NULL.
|
||||||
|
*/
|
||||||
struct wlr_surface *wlr_surface_from_resource(struct wl_resource *resource);
|
struct wlr_surface *wlr_surface_from_resource(struct wl_resource *resource);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue