gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 494HTML 247C 19TOML 61264 Definiciones

⎇ 5326030f02d8d78a927f89b07d06d62c42337b37 src/layout.rs Rust · 16 líneas · 256 B Historia Quién tocó qué crudo

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}