tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1085HTML 1017Markdown 12TOML 83230 Definiciones

Add DEFAULT constant to LayoutOutput

d099aaf21adefee3abe5c617d162eb13d31d3a59 · por Nico Burns · (hace 2 años) · padre f60ac6d66 · ver el árbol en este commit

Delta semántico · 1

src/tree/layout.rs

1 archivos · +3 −0

diff --git a/src/tree/layout.rs b/src/tree/layout.rs
index b490a1d29..90f070430 100644
--- a/src/tree/layout.rs
+++ b/src/tree/layout.rs
@@ -183,6 +183,9 @@ impl LayoutOutput {
         margins_can_collapse_through: false,
     };
 
+    /// A blank layout output
+    pub const DEFAULT: Self = Self::HIDDEN;
+
     /// Constructor to create a `LayoutOutput` from just the size and baselines
     pub fn from_sizes_and_baselines(
         size: Size<f32>,