gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81414 Definitions

⎇ bd78e4a192d77d56ec577a1e5a707be4f4cf08f7 src/layout.rs Rust · 16 lines · 237 B History Who touched what raw

initial commit. Something works bd78e4a19 · 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}