pub struct AppShell { /* private fields */ }Expand description
A whole application window, generated from its model.
Implementations§
Source§impl AppShell
impl AppShell
Sourcepub fn new<S: ObjectSpace + 'static>(
application: Application,
space: impl Fn() -> S + 'static,
) -> Self
pub fn new<S: ObjectSpace + 'static>( application: Application, space: impl Fn() -> S + 'static, ) -> Self
A window over this application. space makes the unit of work of each view.
Sourcepub fn with_options<S: ObjectSpace + 'static>(
application: Application,
space: impl Fn() -> S + 'static,
words: Words,
editors: EditorRegistry,
) -> Self
pub fn with_options<S: ObjectSpace + 'static>( application: Application, space: impl Fn() -> S + 'static, words: Words, editors: EditorRegistry, ) -> Self
Like new, with the words of its screens and controls of its own.
Sourcepub fn template(self, template: impl FrameTemplate + 'static) -> Self
pub fn template(self, template: impl FrameTemplate + 'static) -> Self
Arranges the window with this.
Keeps people on the theme the application started with, for one that has a look of its own.
Sourcepub fn on_file(self, handler: impl Fn(String, Vec<u8>) + 'static) -> Self
pub fn on_file(self, handler: impl Fn(String, Vec<u8>) + 'static) -> Self
Hands exported files over to this, with their name and bytes, instead of asking the person where to save them.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppShell
impl !Send for AppShell
impl !Sync for AppShell
impl !UnwindSafe for AppShell
impl Freeze for AppShell
impl Unpin for AppShell
impl UnsafeUnpin for AppShell
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<V> ViewExt for Vwhere
V: View,
impl<V> ViewExt for Vwhere
V: View,
Source§fn padding(self, padding: impl Into<Insets>) -> Styled<Self>
fn padding(self, padding: impl Into<Insets>) -> Styled<Self>
Adds padding inside the box, in logical pixels.
Source§fn background(self, fill: impl Into<Fill>) -> Styled<Self>
fn background(self, fill: impl Into<Fill>) -> Styled<Self>
Paints a background behind the content.
Source§fn frame(self, width: Option<f32>, height: Option<f32>) -> Styled<Self>
fn frame(self, width: Option<f32>, height: Option<f32>) -> Styled<Self>
Fixes the width and/or height in logical pixels;
None keeps the content size.