tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81414 Definitions

⎇ 6c707d48697aaa97938eef87927c99f14f54e9fa src/layout.rs Rust · 16 lines · 256 B History Who touched what raw

Basic test generation working 18777ef66 · 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}