Struct ambient_api::prelude::WindowStyle
source · pub struct WindowStyle {
pub body: Arc<CbDebuggable<dyn Fn(Element) -> Element + Sync + Send>>,
pub title_bar: Arc<CbDebuggable<dyn Fn(String, Option<Arc<CbDebuggable<dyn Fn() + Sync + Send>>>) -> Element + Sync + Send>>,
}
Expand description
A chance to style the window
Fields§
§body: Arc<CbDebuggable<dyn Fn(Element) -> Element + Sync + Send>>
Body style
title_bar: Arc<CbDebuggable<dyn Fn(String, Option<Arc<CbDebuggable<dyn Fn() + Sync + Send>>>) -> Element + Sync + Send>>
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
source§impl Default for WindowStyle
impl Default for WindowStyle
source§fn default() -> WindowStyle
fn default() -> WindowStyle
Returns the “default value” for a type. Read more
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.