xengui 0.2.0

wgpu based, modern and high-performance GUI library.
Documentation
1
2
3
4
5
6
7
8
9
10
// SPDX-License-Identifier: Apache-2.0
use crate::PaintContext;

pub trait VNode {
    fn as_any_mut(&mut self) -> &mut dyn std::any::Any;
    fn key(&self) -> &str;
    fn is_dirty(&self) -> bool;
    fn set_dirty(&mut self, dirty: bool);
    fn paint(&self, ctx: &mut PaintContext);
}