Struct ambient_ui::window::WindowStyle
source · pub struct WindowStyle {
pub body: Cb<dyn Fn(Element) -> Element + Send + Sync>,
pub title_bar: Cb<dyn Fn(String, Option<Cb<dyn Fn() + Send + Sync>>) -> Element + Send + Sync>,
}
Expand description
A chance to style the window
Fields§
§body: Cb<dyn Fn(Element) -> Element + Send + Sync>
Body style
title_bar: Cb<dyn Fn(String, Option<Cb<dyn Fn() + Send + Sync>>) -> Element + Send + Sync>
Title bar style
Trait Implementations§
source§impl Clone for WindowStyle
impl Clone for WindowStyle
source§fn clone(&self) -> WindowStyle
fn clone(&self) -> WindowStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowStyle
impl Debug for WindowStyle
Auto Trait Implementations§
impl !RefUnwindSafe for WindowStyle
impl Send for WindowStyle
impl Sync for WindowStyle
impl Unpin for WindowStyle
impl !UnwindSafe for WindowStyle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.