I used Rust syntax where there is no Slint equivalent for coherency, actual trait based typing may be asking a bit much.
In theory, the only component without parent should be Window and those that inherit Window. Every other component should default the parent to the main window until they have been built. I understand that inferring the properties of the parent without knowing its type is not possible, but everything has position and size, so those should be accessible at least and everything else can error.
Product Impact
Parent accessibility is fundamental.
Object binding is a must-have.
Feature Description
Allow to access the parent attribute in components. Alternatively allow properties to have a
component
type to bind to another component.I would like to do one of two things with the above code:
OR
I used Rust syntax where there is no Slint equivalent for coherency, actual trait based typing may be asking a bit much.
In theory, the only
component
withoutparent
should beWindow
and those that inheritWindow
. Every other component should default the parent to the main window until they have been built. I understand that inferring the properties of the parent without knowing its type is not possible, but everything has position and size, so those should be accessible at least and everything else can error.Product Impact
Parent accessibility is fundamental. Object binding is a must-have.