[][src]Module alchemy_lifecycle::traits

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 AppDelegate that receives events at a system level and allows the user to operate within the established framework per-system.

Component

The Component lifecycle, 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
WindowDelegate

Each platform has their own Window API, which Alchemy attempts to pair down to one consistent API. This also acts as the bootstrapping point for a render tree.

Type Definitions

PlatformSpecificNodeType

A per-platform wrapped Pointer type, used for attaching views/widgets.