alchemy-lifecycle 0.1.0

A crate containing traits used in Alchemy, the Rust cross-platform GUI framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Internal struct used for tracking component instances and their 
//! associated metadata (layout, appearance, etc).

use alchemy_styles::{Appearance, StylesList};
use alchemy_styles::stretch::node::{Node as LayoutNode};

use crate::traits::Component;

pub(crate) struct Instance {
    pub(crate) tag: &'static str,
    pub(crate) style_keys: StylesList,
    pub(crate) component: Box<Component + 'static>,
    pub(crate) appearance: Appearance,
    pub(crate) layout: Option<LayoutNode>
}