#style #css #layout #ui #gui-framework #cross-platform-gui

alchemy-lifecycle

A crate containing traits used in Alchemy, the Rust cross-platform GUI framework

1 unstable release

0.1.0 Jun 6, 2019

#32 in #gui-framework

25 downloads per month
Used in 2 crates

MPL-2.0+

235KB
4.5K SLoC

Alchemy-Lifecycle

This crate holds traits used in Alchemy, such as AppDelegate, WindowDelegate, and Component. It also holds the RSX node/tag system, since it's standalone and Component ends up requiring it anyway.

Questions, Comments?

Open an issue, or hit me up on Twitter.


lib.rs:

Lifecycle aspects for Alchemy.

What's a lifecycle? Well, it includes things like delegates (App+Window), where they act as hooks for the system to inform you of events. It includes things like Components, which instruct your views how to exist.

It also includes the RSX enum, which is what render() methods generally return. It's common enough to multiple crates, and is intricately linked to the Component lifecycle, so it'll live here.

This crate also includes the diffing and patching system for the widget tree - it needs to live with the Component lifecycle to enable state updating.

Dependencies

~0.9–1.7MB
~38K SLoC