More README formatting
This commit is contained in:
parent
c7ef19a943
commit
67a0dc6e46
2 changed files with 6 additions and 7 deletions
|
|
@ -6,9 +6,7 @@ Alchemy - A Rust GUI Framework
|
||||||
[](https://gitter.im/alchemy-rs/alchemy)
|
[](https://gitter.im/alchemy-rs/alchemy)
|
||||||
[](https://crates.io/crates/alchemy)
|
[](https://crates.io/crates/alchemy)
|
||||||
|
|
||||||
API Documentation: [latest release](https://docs.rs/alchemy) – [trunk branch](https://docs.alchemy.rs)
|
[Homepage](https://alchemy.rs) • [API Documentation](https://docs.rs/alchemy/)
|
||||||
|
|
||||||
[Homepage](https://alchemy.rs)
|
|
||||||
|
|
||||||
Alchemy is a Rust GUI Framework, backed by native widgets on each platform it supports, with an API that's a blend of those found in AppKit, UIKit, and React Native. It aims to provide an API that feels at home in Rust, while striving to provide a visual appearance that's easy to scan and parse. It does not, and will never, require nightly. It's still early stages, but feedback and contributions are welcome.
|
Alchemy is a Rust GUI Framework, backed by native widgets on each platform it supports, with an API that's a blend of those found in AppKit, UIKit, and React Native. It aims to provide an API that feels at home in Rust, while striving to provide a visual appearance that's easy to scan and parse. It does not, and will never, require nightly. It's still early stages, but feedback and contributions are welcome.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,8 @@ fn find_and_link_layout_nodes(parent_node: &mut VirtualNode, child_tree: &mut Vi
|
||||||
/// Recursively constructs a Component tree. This entails adding it to the backing
|
/// Recursively constructs a Component tree. This entails adding it to the backing
|
||||||
/// view tree, firing various lifecycle methods, and ensuring that nodes for layout
|
/// view tree, firing various lifecycle methods, and ensuring that nodes for layout
|
||||||
/// passes are configured.
|
/// passes are configured.
|
||||||
|
///
|
||||||
|
/// In the future, this would ideally return patch-sets for the backing layer or something.
|
||||||
fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) -> Result<VirtualNode, Box<Error>> {
|
fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) -> Result<VirtualNode, Box<Error>> {
|
||||||
let instance = (new_element.create_component_fn)();
|
let instance = (new_element.create_component_fn)();
|
||||||
|
|
||||||
|
|
@ -240,6 +242,8 @@ fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) ->
|
||||||
component.render(&new_element.props)
|
component.render(&new_element.props)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// instance.get_snapshot_before_update()
|
||||||
|
|
||||||
new_element.instance = Some(instance);
|
new_element.instance = Some(instance);
|
||||||
|
|
||||||
let mut children = match rendered {
|
let mut children = match rendered {
|
||||||
|
|
@ -298,9 +302,6 @@ fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) ->
|
||||||
component.component_did_mount(&new_element.props);
|
component.component_did_mount(&new_element.props);
|
||||||
}
|
}
|
||||||
|
|
||||||
// instance.get_snapshot_before_update()
|
|
||||||
//renderer.component_did_mount(&new_element.props);
|
|
||||||
|
|
||||||
Ok(new_element)
|
Ok(new_element)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue