mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
compositor: document surface events
This commit is contained in:
parent
234d31f138
commit
1a7981f7c9
@ -187,28 +187,47 @@ struct wlr_surface {
|
|||||||
struct wl_resource *role_resource;
|
struct wl_resource *role_resource;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
/**
|
||||||
|
* Signals that the client has sent a wl_surface.commit request.
|
||||||
|
*
|
||||||
|
* The state to be committed can be accessed in wlr_surface.pending.
|
||||||
|
*
|
||||||
|
* The commit may not be applied immediately, in which case it's marked
|
||||||
|
* as "cached" and put into a queue. See wlr_surface_lock_pending().
|
||||||
|
*/
|
||||||
struct wl_signal client_commit;
|
struct wl_signal client_commit;
|
||||||
|
/**
|
||||||
|
* Signals that a commit has been applied.
|
||||||
|
*
|
||||||
|
* The new state can be accessed in wlr_surface.current.
|
||||||
|
*/
|
||||||
struct wl_signal commit;
|
struct wl_signal commit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `map` event signals that the surface has a non-null buffer
|
* Signals that the surface has a non-null buffer committed and is
|
||||||
* committed and is ready to be displayed.
|
* ready to be displayed.
|
||||||
*/
|
*/
|
||||||
struct wl_signal map;
|
struct wl_signal map;
|
||||||
/**
|
/**
|
||||||
* The `unmap` event signals that the surface shouldn't be displayed
|
* Signals that the surface shouldn't be displayed anymore. This can
|
||||||
* anymore. This can happen when a null buffer is committed,
|
* happen when a null buffer is committed, the associated role object
|
||||||
* the associated role object is destroyed, or when the role-specific
|
* is destroyed, or when the role-specific conditions for the surface
|
||||||
* conditions for the surface to be mapped no longer apply.
|
* to be mapped no longer apply.
|
||||||
*/
|
*/
|
||||||
struct wl_signal unmap;
|
struct wl_signal unmap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Signals that a new child sub-surface has been added.
|
||||||
|
*
|
||||||
* Note: unlike other new_* signals, new_subsurface is emitted when
|
* Note: unlike other new_* signals, new_subsurface is emitted when
|
||||||
* the subsurface is added to the parent surface's current state,
|
* the subsurface is added to the parent surface's current state,
|
||||||
* not when the object is created.
|
* not when the object is created.
|
||||||
*/
|
*/
|
||||||
struct wl_signal new_subsurface; // struct wlr_subsurface
|
struct wl_signal new_subsurface; // struct wlr_subsurface
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Signals that the surface is being destroyed.
|
||||||
|
*/
|
||||||
struct wl_signal destroy;
|
struct wl_signal destroy;
|
||||||
} events;
|
} events;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user