slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.94k stars 568 forks source link

Refactoring: declare builtins struct in a centralized place. #3056

Closed ogoffart closed 8 months ago

ogoffart commented 1 year ago

Currently, builtin struct used in the .slint language are declared in many place: in the docs, in builtin.slints, in the interpreter, in the rust code. This makes it hard to add or change them. They should be declared in one place, like we do for the enums.

We should use the same thing for builtin structs as what we do with enums:

darknight commented 1 year ago

Hi, I want to give a try :)

ogoffart commented 8 months ago

This was done in #3137