#widgets #gui-framework #kivy

suzy

GUI framework based on observer pattern

5 unstable releases

0.2.0 Mar 13, 2021
0.1.0 Nov 10, 2020
0.0.3 Oct 13, 2020
0.0.2 Sep 20, 2020
0.0.1 Aug 30, 2020

#463 in GUI

MPL-2.0 license

3MB
11K SLoC

crates.io docs.rs Build Status MPL-2.0 License

Suzy is a GUI framework in Rust based on the observer pattern. Inspired heavily by the kivy framework for Python.

Project Goals:

  • Explicit layout by default - the first-class layout support is to write declaritive code which describes the relationship between GUI elements.
  • Productivity - The automatic observer patern enables rapid prototyping.
  • Multitouch by default - mouse and touchscreen input is unified, unless explicitly distinguished by the application.

Secondary Project Goals

  • BYO - Although the declaritive, observer pattern style is prescribed, very little else is: non-optional dependencies are minimized in favor of "glue" that allows applications to choose their own set of utilities for tasks such as image loading, windowing, etc.
  • Embeddebility - You should be able to use Suzy as a library within e.g. a game engine, as long as the graphics interface is compatible.
  • Performance - GUIs made using Suzy are light-weight. It is uncommon that GUI code is a bottleneck for real-world applications.

Dependencies

~0.1–2.6MB
~57K SLoC