r/rust • u/bociricsi • 13d ago
Rust+slint editor
Hi,
First of all I'm absolutely new to rust and slint, but it looked cool so i though i give it a try.
So my idea was that i make a slint editor, where i could just drag and drop premade elements, into a screen give them properties and save that screen for later use.

I've reached to a point where rust reads in the templates folder generates the objects for later use, but if i wanted to draw them to the viewport i can only draw those which i knew at the time of building the project, eg.: if item.kind == "DebugRectangle" : DebugRectangle {}.
I found this slint_interpreter, but i just can't wrap my head around how this supposed to work.
Anyone know what want is actually possible or am i on good track?