Expand description
Traits that are used in Alchemy. Alchemy implements a React-based Component lifecycle, coupled with a delegate pattern inspired by those found in AppKit/UIKit.
Traits§
- AppDelegate
- Each platform tends to have their own startup routine, their own runloop, and so on.
Alchemy recognizes this and provides an
AppDelegatethat receives events at a system level and allows the user to operate within the established framework per-system. - Component
- The
Componentlifecycle, mostly inspired from React, with a few extra methods for views that need to have a backing native layer. A good breakdown of the React Component lifecycle can be found in this tweet. - Props
- Window
Delegate - Each platform has their own
WindowAPI, which Alchemy attempts to pair down to one consistent API. This also acts as the bootstrapping point for arendertree.
Type Aliases§
- Platform
Specific Node Type - A per-platform wrapped Pointer type, used for attaching views/widgets.