title_bar: Export TitleBarElement. (#369)

This commit is contained in:
Jason Lee 2024-10-21 19:23:20 +08:00
parent 2aaf424df9
commit 38fc226c22
2 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ pub use focusable::FocusableCycle;
pub use root::{ContextModal, Root}; pub use root::{ContextModal, Root};
pub use styled::*; pub use styled::*;
pub use time::*; pub use time::*;
pub use title_bar::TitleBar; pub use title_bar::*;
pub use colors::*; pub use colors::*;
pub use icon::*; pub use icon::*;

View file

@ -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 { impl IntoElement for TitleBarElement {
type Element = Self; type Element = Self;