2022-02-21 03:18:38 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2023-05-13 16:10:33 +03:00
|
|
|
#ifndef LABWC_SCENE_HELPERS_H
|
|
|
|
|
#define LABWC_SCENE_HELPERS_H
|
2022-02-21 03:18:38 +01:00
|
|
|
|
2023-01-30 05:30:24 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2022-04-26 23:56:27 +02:00
|
|
|
struct wlr_scene_node;
|
|
|
|
|
struct wlr_surface;
|
2023-01-30 05:30:24 +01:00
|
|
|
struct wlr_scene_output;
|
2024-06-17 16:36:07 +02:00
|
|
|
struct wlr_output_state;
|
2022-02-21 03:18:38 +01:00
|
|
|
|
2022-05-26 00:39:04 +02:00
|
|
|
struct wlr_surface *lab_wlr_surface_from_node(struct wlr_scene_node *node);
|
2022-04-26 23:56:27 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* lab_get_prev_node - return previous (sibling) node
|
|
|
|
|
* @node: node to find the previous node from
|
|
|
|
|
* Return NULL if previous link is list-head which means node is bottom-most
|
|
|
|
|
*/
|
|
|
|
|
struct wlr_scene_node *lab_wlr_scene_get_prev_node(struct wlr_scene_node *node);
|
2023-05-13 16:10:33 +03:00
|
|
|
|
2023-01-30 05:30:24 +01:00
|
|
|
/* A variant of wlr_scene_output_commit() that respects wlr_output->pending */
|
2024-06-17 16:36:07 +02:00
|
|
|
bool lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output,
|
2025-10-01 20:48:45 +01:00
|
|
|
struct wlr_output_state *state);
|
2023-01-30 05:30:24 +01:00
|
|
|
|
2023-05-13 16:10:33 +03:00
|
|
|
#endif /* LABWC_SCENE_HELPERS_H */
|