tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 998HTML 936Markdown 12TOML 83048 Definiciones

⎇ 494b1b4fdc7337e4c08960ac95bce1c366e02aeb src/layout.rs Rust · 16 líneas · 237 B Historia Quién tocó qué crudo

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}