mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Convert SSD to scene nodes
This commit is contained in:
parent
f2d40a8d69
commit
5862b65f89
23 changed files with 1134 additions and 557 deletions
|
|
@ -4,6 +4,7 @@ labwc_sources += files(
|
|||
'font.c',
|
||||
'grab-file.c',
|
||||
'nodename.c',
|
||||
'scene-helpers.c',
|
||||
'spawn.c',
|
||||
'string-helpers.c',
|
||||
'zfree.c',
|
||||
|
|
|
|||
11
src/common/scene-helpers.c
Normal file
11
src/common/scene-helpers.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include <assert.h>
|
||||
#include <wlr/types/wlr_scene.h>
|
||||
|
||||
struct wlr_scene_rect *
|
||||
lab_wlr_scene_get_rect(struct wlr_scene_node *node)
|
||||
{
|
||||
assert(node->type == WLR_SCENE_NODE_RECT);
|
||||
return (struct wlr_scene_rect *)node;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue