Skip to content

Commit 950b3bb

Browse files
committed
test app: add background image
1 parent 86f188e commit 950b3bb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/app/src/root_widget.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <ruis/widget/proxy/key_proxy.hpp>
44
#include <ruis/widget/group/overlay.hpp>
55
#include <ruis/widget/label/image_mouse_cursor.hpp>
6+
#include <ruis/widget/label/image.hpp>
67

78
#include "window1.hpp"
89
#include "sliders_window.hpp"
@@ -36,6 +37,16 @@ utki::shared_ref<ruis::widget> make_root_widget(utki::shared_ref<ruis::context>
3637
},
3738
},
3839
{
40+
m::image(c,
41+
{
42+
.layout_params{
43+
.dims = {ruis::dim::fill, ruis::dim::fill}
44+
},
45+
.image_params{
46+
.img = c.get().loader().load<ruis::res::image>("img_sample")
47+
}
48+
}
49+
),
3950
m::container(c,
4051
{
4152
.layout_params{

0 commit comments

Comments
 (0)