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

Expose more window API #333

Closed ogoffart closed 8 months ago

ogoffart commented 3 years ago

The slint::Window struct has a fairly limited API so far compared to what winit and other framework offer. We should either duplicate most of their capabilities so it can be used from Rust/CPP/JavaScript/Python/...

Some features of the window that relates to the UI itself can be done on the .60 Window element in a declarative way:

The more imperative UI can be done via API: One would need to expose what is currently the ComponentWindow into a public sixtyfps::Window which has function to do a bunch of things.

This include:

The items::Window need to be renamed WindowItem to avoid duplicated name (just like ImageItem)

ogoffart commented 2 years ago

no-frame was added in https://github.com/sixtyfpsui/sixtyfps/pull/560