Struct webview_app::application::Application
source · pub struct Application {
pub app: Application,
}
Expand description
The Application represents a Windows or Linux Gtk Application running the WebView window
Fields§
§app: Application
Implementations§
source§impl Application
impl Application
sourcepub fn new(appid: &str) -> Self
pub fn new(appid: &str) -> Self
Creates an application
param appid: It is a reverse domain name, like “de.uriegel.webapp”
On Linux, this is the GTK Application ID.
It is also used as path part to a directory to share window settings
- Windows:
$LOCALAPPDATA$/<appid>
- Linux:
~/.config/<appid>
sourcepub fn on_activate(
&self,
val: impl Fn(&Application) -> WebView + 'static,
) -> &Self
pub fn on_activate( &self, val: impl Fn(&Application) -> WebView + 'static, ) -> &Self
when the application is started, this method is being called to give you the opportunity to create the WebView. The callback expects a WebView build with the WebViewBuilder.
Trait Implementations§
source§impl Clone for Application
impl Clone for Application
source§fn clone(&self) -> Application
fn clone(&self) -> Application
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !Freeze for Application
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)