You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! I'm attempting to create a component with a model backed by Rust. My Rust code must reference an exported struct from a companion Slint file, but I'm having issues getting it to work. My structure looks like this:
src/
main.rs # instantiates App
side_menu.rs # needs to ref an exported Node struct from side_menu.slint
ui/
app.slint
side_menu.slint # exports a Node struct
My build.rs mentions only app.slint. Within main.rs, I create an App, which itself has SideMenu component. Where is Node above exported? I can't seem to reference it in side_menu.rs.
I'm basically attempting to create a SideMenu component modeled after this post.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all! I'm attempting to create a component with a model backed by Rust. My Rust code must reference an exported struct from a companion Slint file, but I'm having issues getting it to work. My structure looks like this:
My
build.rs
mentions onlyapp.slint
. Withinmain.rs
, I create an App, which itself hasSideMenu
component. Where isNode
above exported? I can't seem to reference it inside_menu.rs
.I'm basically attempting to create a
SideMenu
component modeled after this post.Beta Was this translation helpful? Give feedback.
All reactions