pub struct CupertinoWindowChrome {
pub id: String,
pub title: String,
pub subtitle: String,
pub rect: Rect,
pub titlebar_height_px: f32,
pub toolbar_items: Vec<CupertinoToolbarItem>,
pub sidebar_visible: bool,
pub focused: bool,
pub vibrancy: f32,
}Fields§
§id: String§title: String§subtitle: String§rect: Rect§titlebar_height_px: f32§toolbar_items: Vec<CupertinoToolbarItem>§focused: bool§vibrancy: f32Implementations§
Source§impl CupertinoWindowChrome
impl CupertinoWindowChrome
pub fn new(id: impl Into<String>, title: impl Into<String>) -> Self
pub fn with_subtitle(self, subtitle: impl Into<String>) -> Self
pub fn with_rect(self, rect: Rect) -> Self
pub fn with_titlebar_height_px(self, titlebar_height_px: f32) -> Self
pub fn focused(self, focused: bool) -> Self
pub fn with_vibrancy(self, vibrancy: f32) -> Self
pub fn push_toolbar_item(&mut self, item: CupertinoToolbarItem)
pub fn titlebar_rect(&self) -> Rect
pub fn content_rect(&self) -> Rect
pub fn traffic_lights(&self) -> [CupertinoTrafficLight; 3]
pub fn toolbar_layout(&self) -> Vec<CupertinoToolbarItem>
pub fn hit_toolbar_item(&self, point: Vec2) -> Option<CupertinoToolbarItem>
pub fn glow_surfaces(&self) -> Vec<WidgetGlowSurface>
pub fn shader_skin(&self) -> WidgetShaderSkin
Trait Implementations§
Source§impl Clone for CupertinoWindowChrome
impl Clone for CupertinoWindowChrome
Source§fn clone(&self) -> CupertinoWindowChrome
fn clone(&self) -> CupertinoWindowChrome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CupertinoWindowChrome
impl Debug for CupertinoWindowChrome
Source§impl<'de> Deserialize<'de> for CupertinoWindowChrome
impl<'de> Deserialize<'de> for CupertinoWindowChrome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CupertinoWindowChrome
impl PartialEq for CupertinoWindowChrome
Source§fn eq(&self, other: &CupertinoWindowChrome) -> bool
fn eq(&self, other: &CupertinoWindowChrome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CupertinoWindowChrome
impl Serialize for CupertinoWindowChrome
impl StructuralPartialEq for CupertinoWindowChrome
Auto Trait Implementations§
impl Freeze for CupertinoWindowChrome
impl RefUnwindSafe for CupertinoWindowChrome
impl Send for CupertinoWindowChrome
impl Sync for CupertinoWindowChrome
impl Unpin for CupertinoWindowChrome
impl UnsafeUnpin for CupertinoWindowChrome
impl UnwindSafe for CupertinoWindowChrome
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