pub struct WindowDef {Show 17 fields
pub id: String,
pub title: LocalizedText,
pub initial: WindowInitial,
pub presentation: Presentation,
pub role: WindowRole,
pub width: Option<f64>,
pub height: Option<f64>,
pub min_width: Option<f64>,
pub min_height: Option<f64>,
pub content: Node,
pub sessions: Vec<String>,
pub close: Option<CloseCheck>,
pub chrome: WindowChrome,
pub immersive: Option<Expr>,
pub idle_after: Option<f64>,
pub idle_enabled: Option<Expr>,
pub landscape: Option<Expr>,
}Fields§
§id: String§title: LocalizedText§initial: WindowInitial§presentation: Presentation§role: WindowRole§width: Option<f64>§height: Option<f64>§min_width: Option<f64>§min_height: Option<f64>§content: Node§sessions: Vec<String>Session state types instantiated for each instance of this window.
close: Option<CloseCheck>Declared close check, run whenever closing is requested.
chrome: WindowChromeWhether content extends under a transparent title bar.
immersive: Option<Expr>While true, the window hides its title bar and toolbar (and on touch platforms the status bar), and the pointer once it rests.
idle_after: Option<f64>Seconds without input after which window.idle turns true.
idle_enabled: Option<Expr>Pause the idle timer while interacting with persistent controls.
landscape: Option<Expr>On a phone, the window stands in landscape while this is true and in portrait otherwise; elsewhere it follows the device.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WindowDef
impl<'de> Deserialize<'de> for WindowDef
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
impl StructuralPartialEq for WindowDef
Auto Trait Implementations§
impl Freeze for WindowDef
impl RefUnwindSafe for WindowDef
impl Send for WindowDef
impl Sync for WindowDef
impl Unpin for WindowDef
impl UnsafeUnpin for WindowDef
impl UnwindSafe for WindowDef
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