1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
//! # webview_app
//!
//! Integration of a web view in an application window like Electron,
//! but using rust as programming language. On Windows WebView2 will be used as
//! web view, on Linux it is WebKitGTK.
//!
//! A simple example to create and run a simple web view app displaying crates homepage:
//! ```
//! use webview_app::{application::Application, webview::WebView};
//!
//! fn on_activate(app: &Application)->WebView {
//! WebView::builder(app)
//! .title("Rust Web View 🦞")
//! .url("https://crates.io/crates")
//! .default_contextmenu_disabled()
//! .build();
//! }
//!
//! fn main() {
//! Application::new("de.uriegel.hello")
//! .on_activate(on_activate)
//! .run();
//! }
//! ```
//! A tutorial for using webview_app:
//!
//! <https://uriegel.github.io/webview-app/doc/tutorial/>
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "windows")]
mod windows;
pub mod application;
pub mod webview;
pub mod request;
mod bounds;
mod params;
mod content_type;
mod javascript;
mod html;
// TODO Result as return instead of unwraps
// TODO Dark backgroundcolor
// TODO DragDrop
// TODO Doc with examples and panics and global descriptions, module descriptions and links to tutorial
// TODO Keywords like http webview, gtk, webview2 webkit, electron like
// TODO Dependency Gtk4, Webkit, Adwaita for doc