From 38fc226c22b0d31cf4048238fedd5097b9530d38 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 21 Oct 2024 19:23:20 +0800 Subject: [PATCH] title_bar: Export TitleBarElement. (#369) --- crates/ui/src/lib.rs | 2 +- crates/ui/src/title_bar.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui/src/lib.rs b/crates/ui/src/lib.rs index 3086a919..761f3166 100644 --- a/crates/ui/src/lib.rs +++ b/crates/ui/src/lib.rs @@ -53,7 +53,7 @@ pub use focusable::FocusableCycle; pub use root::{ContextModal, Root}; pub use styled::*; pub use time::*; -pub use title_bar::TitleBar; +pub use title_bar::*; pub use colors::*; pub use icon::*; diff --git a/crates/ui/src/title_bar.rs b/crates/ui/src/title_bar.rs index 7d0a97ba..4a66f936 100644 --- a/crates/ui/src/title_bar.rs +++ b/crates/ui/src/title_bar.rs @@ -225,7 +225,8 @@ impl RenderOnce for TitleBar { } } -struct TitleBarElement {} +/// A TitleBar Element that can be move the window. +pub struct TitleBarElement {} impl IntoElement for TitleBarElement { type Element = Self;