Expand description
A library to embed web views in iced applications.
Supports Blitz (Rust-native, modern CSS), litehtml (lightweight, CPU-based), and Servo (full browser: HTML5, CSS3, JS).
Has two separate widgets: Basic, and Advanced.
The basic widget is simple to implement — use abstractions like CloseCurrent and ChangeView.
The advanced widget gives you direct ViewId control for multiple simultaneous views.
§Basic usage
ⓘ
enum Message {
WebView(iced_webview::Action),
Update,
}
struct State {
webview: iced_webview::WebView<iced_webview::Blitz, Message>,
}Then call the usual view/update methods — see
examples for full working code.
Re-exports§
pub use engines::Engine;pub use engines::PageType;pub use engines::PixelFormat;pub use engines::ViewId;
Modules§
- advanced
- Advanced is a more complex interface than basic and assumes the user stores all the view ids themselves. This gives the user more freedom by allowing them to view multiple views at the same time, but removes actions like close current
- basic
- Basic allows users to have simple interfaces like close current and allows users to index views by ints like 0, 1 , or 2
- engines
- Engine Trait and Engine implementations
Structs§
- Image
Info - Image details for passing the view around
- WebView
- The Basic WebView widget that creates and shows webview(s).
Enums§
- Action
- Handles Actions for Basic webview