Struct finestra::WindowConfiguration
source · pub struct WindowConfiguration { /* private fields */ }
Expand description
Use this to configure the look and feel of the Window.
Implementations§
source§impl WindowConfiguration
impl WindowConfiguration
sourcepub fn with_title(self, title: impl Into<StateOrRaw<String>>) -> Self
pub fn with_title(self, title: impl Into<StateOrRaw<String>>) -> Self
Set the title of the window. You can also use a State
to update it automatically, when you change it in your AppState.
sourcepub fn with_theme(self, theme: impl Into<StateOrRaw<Theme>>) -> Self
pub fn with_theme(self, theme: impl Into<StateOrRaw<Theme>>) -> Self
Use the specified theme for the window.
A menu bar is a bar containing Menus. Use this function to set
the menu, and react to the user invoking items using
AppDelegate::did_invoke_menu_action()
.
Use this function to add a new menu, and react to the user invoking
items using
AppDelegate::did_invoke_menu_action()
.
Trait Implementations§
source§impl Default for WindowConfiguration
impl Default for WindowConfiguration
source§fn default() -> WindowConfiguration
fn default() -> WindowConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WindowConfiguration
impl Send for WindowConfiguration
impl Sync for WindowConfiguration
impl Unpin for WindowConfiguration
impl UnwindSafe for WindowConfiguration
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