-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de2fa76
commit 3018597
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use fltk::{app, prelude::*, group, input, window}; | ||
use fltk_webview::*; | ||
|
||
fn main() { | ||
let app = app::App::default(); | ||
let mut win = window::Window::default() | ||
.with_size(800, 600) | ||
.with_label("Webview"); | ||
let mut col = group::Flex::default_fill().column(); | ||
col.set_margin(5); | ||
let inp = input::Input::default(); | ||
col.fixed(&inp, 30); | ||
let mut wv_win = window::Window::default(); | ||
col.end(); | ||
win.end(); | ||
win.make_resizable(true); | ||
win.show(); | ||
|
||
let wv = Webview::create(false, &mut wv_win); | ||
wv.navigate("https://google.com"); | ||
|
||
app.run().unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters