[][src]Struct azul_core::ui_description::UiDescription

pub struct UiDescription {
    pub dom_id: DomId,
    pub html_tree: NodeDataContainer<HtmlCascadeInfo>,
    pub ui_descr_root: NodeId,
    pub styled_nodes: NodeDataContainer<StyledNode>,
    pub dynamic_css_overrides: BTreeMap<NodeId, FastHashMap<DomString, CssProperty>>,
    pub selected_hover_nodes: BTreeMap<NodeId, HoverGroup>,
}

Fields

dom_id: DomId

DOM ID of this arena (so that multiple DOMs / IFrames can be displayed in one window)

html_tree: NodeDataContainer<HtmlCascadeInfo>

Data necessary for matching nodes properly (necessary to resolve CSS paths in callbacks)

ui_descr_root: NodeId

ID of the root node of the arena (usually NodeId(0))

styled_nodes: NodeDataContainer<StyledNode>

This field is created from the Css

dynamic_css_overrides: BTreeMap<NodeId, FastHashMap<DomString, CssProperty>>

The style properties that should be overridden for this frame, cloned from the Css

selected_hover_nodes: BTreeMap<NodeId, HoverGroup>

In order to hit-test :hover and :active selectors, need to insert tags for all rectangles that have a non-:hover path, for example if we have #thing:hover, then all nodes selected by #thing need to get a TagId, otherwise, they can't be hit-tested.

Implementations

impl UiDescription[src]

pub fn new(
    ui_state: &mut UiState,
    style: &Css,
    focused_node: &Option<(DomId, NodeId)>,
    hovered_nodes: &BTreeMap<NodeId, HitTestItem>,
    is_mouse_down: bool
) -> Self
[src]

Applies the styles to the nodes calculated from the layout_screen function and calculates the final display list that is submitted to the renderer.

Trait Implementations

impl Debug for UiDescription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.