{"id":19411153,"url":"https://github.com/fltk-rs/fltk-webview","last_synced_at":"2025-04-04T22:03:34.612Z","repository":{"id":42023570,"uuid":"366785608","full_name":"fltk-rs/fltk-webview","owner":"fltk-rs","description":"webview functionality for embedded fltk windows","archived":false,"fork":false,"pushed_at":"2024-11-06T06:42:51.000Z","size":8811,"stargazers_count":49,"open_issues_count":3,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T21:02:26.855Z","etag":null,"topics":["fltk","gui","webview"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fltk-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-12T16:45:41.000Z","updated_at":"2025-02-23T09:02:08.000Z","dependencies_parsed_at":"2024-01-05T23:29:33.797Z","dependency_job_id":"6aadad8e-9c1c-4fec-909e-fe5ad80fa54e","html_url":"https://github.com/fltk-rs/fltk-webview","commit_stats":{"total_commits":149,"total_committers":4,"mean_commits":37.25,"dds":"0.13422818791946312","last_synced_commit":"a8bff086cd897b6c40ac179293192885ca9524d2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-webview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-webview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-webview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-webview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fltk-rs","download_url":"https://codeload.github.com/fltk-rs/fltk-webview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256104,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fltk","gui","webview"],"created_at":"2024-11-10T12:19:16.065Z","updated_at":"2025-04-04T22:03:34.588Z","avatar_url":"https://github.com/fltk-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fltk-webview\n\nThis provides webview functionality for embedded fltk windows.\n\n## Usage\nAdd fltk-webview to your fltk application's Cargo.toml file:\n```toml\n[dependencies]\nfltk = \"1\"\nfltk-webview = \"0.4\"\n```\n\nThen you can embed a webview using fltk_webview::Webview::create:\n```rust\nuse fltk::{app, prelude::*, window};\nuse fltk_webview::*;\n\nfn main() {\n    let app = app::App::default();\n    let mut win = window::Window::default()\n        .with_size(800, 600)\n        .with_label(\"Webview\");\n    let mut wv_win = window::Window::default()\n        .with_size(790, 590)\n        .center_of_parent();\n    win.end();\n    win.make_resizable(true);\n    win.show();\n\n    let mut wv = Webview::create(false, \u0026mut wv_win);\n    wv.navigate(\"https://google.com\");\n    \n    app.run().unwrap();\n}\n```\n\n## Dependencies\n- fltk-rs's dependencies, which can be found [here](https://github.com/fltk-rs/fltk-rs#dependencies).\n- On Windows: No other dependencies.\n- On MacOS: No other dependencies.\n- On X11/wayland platforms, webkit2gtk:\n    - Debian-based distros: `sudo apt-get install libwebkit2gtk-4.1-dev`.\n    - RHEL-based distros: `sudo dnf install webkit2gtk3-devel`.\n\n## Known Issues\nThe situation on linux is quite bad. It depends on whether you're running X11 or wayland. On wayland, this will use xwayland. On X11, I can't get embedding to work on Gnome's mutter window manager, which keeps fighting for ownership of the webview window, causing flickering or a blank screen!D=x11 environment variable for webkit2gtk to work properly.\n\n![alt_test](screenshots/ex.jpg)\n\n![alt_test](screenshots/markup.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffltk-rs%2Ffltk-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffltk-rs%2Ffltk-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffltk-rs%2Ffltk-webview/lists"}