Struct WindowFrameProps
pub struct WindowFrameProps {
pub key: String,
pub name: Option<String>,
pub focused: bool,
pub lists_actions: bool,
pub controls: Option<Box<dyn Widget>>,
pub tabs: Option<Box<dyn Widget>>,
pub body: Option<Box<dyn Widget>>,
}Expand description
A window standing on a desktop: the window surface with its edge and shadow, holding the window’s content and its controls, clipped to its radius.
Fields§
§key: StringThe window’s key where it stands: what finds the frame by id, as the row it arrived in pans to show it.
name: Option<String>The window’s name: what assistive technology reads, and the title of the frame’s own bar when the content has no header row to hold the controls.
focused: boolWhether it is the window in front, the one the keyboard goes to.
lists_actions: boolThe shell lists this window’s actions where the person reaches them (the desktop bar’s window menu): its header’s actions that do not fit give way with no door of their own. Without it what does not fit goes behind the header’s door.
controls: Option<Box<dyn Widget>>The frame’s controls (close, and what else the shell offers on the window), at the trailing end of the window’s bar.
tabs: Option<Box<dyn Widget>>The places the window shows, as its tabs: the bar is theirs while there are any, and the content is the tab in front. Empty for a window of one place, whose bar is the place’s own header or the frame’s.
body: Option<Box<dyn Widget>>The window’s content, filling the window.
Trait Implementations§
§impl Component for WindowFrameProps
impl Component for WindowFrameProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<WindowFrameProps, Error>
fn from_source(source: &mut dyn Source) -> Result<WindowFrameProps, Error>
source gives. Read more§impl Default for WindowFrameProps
impl Default for WindowFrameProps
§fn default() -> WindowFrameProps
fn default() -> WindowFrameProps
Auto Trait Implementations§
impl Freeze for WindowFrameProps
impl !RefUnwindSafe for WindowFrameProps
impl !Send for WindowFrameProps
impl !Sync for WindowFrameProps
impl Unpin for WindowFrameProps
impl UnsafeUnpin for WindowFrameProps
impl !UnwindSafe for WindowFrameProps
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more