agnosticlayer 0.2.0

A cheap, drop-in way to add UI data to your engine — no decisions about which dependency to pull in, no wrestling with how complicated it should be. Built as the tool I wanted for myself, now it's yours.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use wibr::New;

use crate::base_data::*;

#[derive(Debug, Clone, Copy, PartialEq, New, Default)]
pub struct Node<Id: WidgetId> {
    pub id: Id,
    pub transform: Transform,
    pub size: Size,
    pub scale: Scale,
    pub parent: Option<Id>
}