mirror of
https://github.com/swaywm/sway.git
synced 2026-02-20 01:40:41 -05:00
scene_descriptor: Add scene_descriptor_find
This commit is contained in:
parent
776136fcd7
commit
f55221ff40
2 changed files with 35 additions and 0 deletions
|
|
@ -38,4 +38,14 @@ void *scene_descriptor_try_get(struct wlr_scene_node *node,
|
|||
void scene_descriptor_destroy(struct wlr_scene_node *node,
|
||||
enum sway_scene_descriptor_type type);
|
||||
|
||||
/*
|
||||
* Searches the scene node and all its parents for this scene descriptor.
|
||||
*
|
||||
* Note that while searching, SWAY_SCENE_DESC_POPUP types will start tracking
|
||||
* its relative node. With popups, they are part of a seperate layer in the scene
|
||||
* graph, but that's irrelavent to users of this function.
|
||||
*/
|
||||
void *scene_descriptor_find(struct wlr_scene_node *node,
|
||||
enum sway_scene_descriptor_type type);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue