violet 0.0.1

Retained mode GUI library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use flax::Entity;

use crate::Frame;

/// Represents a widget in the UI tree which can mount itself into the frame.
///
/// Is inert before mounting
pub trait Widget {
    /// Mount the widget into the world, returning a handle to refer to it
    fn mount(self, frame: &mut Frame) -> Entity;
}