mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
wlr_scene: Inline wlr_scene_node_state
This seems like nothing interesting was done with this. Let's simplify and allow us some flexibility in the future.
This commit is contained in:
parent
ccd0f85c2a
commit
cb2dbc327e
2 changed files with 58 additions and 69 deletions
|
|
@ -46,20 +46,17 @@ enum wlr_scene_node_type {
|
|||
WLR_SCENE_NODE_BUFFER,
|
||||
};
|
||||
|
||||
struct wlr_scene_node_state {
|
||||
struct wl_list link; // wlr_scene_node_state.children
|
||||
|
||||
struct wl_list children; // wlr_scene_node_state.link
|
||||
|
||||
bool enabled;
|
||||
int x, y; // relative to parent
|
||||
};
|
||||
|
||||
/** A node is an object in the scene. */
|
||||
struct wlr_scene_node {
|
||||
enum wlr_scene_node_type type;
|
||||
struct wlr_scene_tree *parent;
|
||||
struct wlr_scene_node_state state;
|
||||
|
||||
struct wl_list link; // wlr_scene_node.children
|
||||
|
||||
struct wl_list children; // wlr_scene_node.link
|
||||
|
||||
bool enabled;
|
||||
int x, y; // relative to parent
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue