tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81412 Sutichaykuna

⎇ 076aca1b7e6f8d292ac3a13f1565ac94aaf1f5bd src/layout.rs Rust · 16 siq'ikuna · 256 B Ñawpa willay Pi imata llamkarqan ch'uya

Basic test generation working 076aca1b7 · Emil Sjölander ·

1#[derive(Debug)]
2pub struct Edges {
3    pub left: f32,
4    pub right: f32,
5    pub top: f32,
6    pub bottom: f32,
7}
8
9#[derive(Debug)]
10pub struct Node {
11    pub width: f32,
12    pub height: f32,
13    pub x: f32,
14    pub y: f32,
15    pub children: Vec<Node>,
16}