{"id":13504003,"url":"https://github.com/fltk-rs/fltk-rs","last_synced_at":"2026-01-15T22:20:39.709Z","repository":{"id":37710552,"uuid":"217347233","full_name":"fltk-rs/fltk-rs","owner":"fltk-rs","description":"Rust bindings for the FLTK GUI library.","archived":false,"fork":false,"pushed_at":"2025-12-04T20:43:30.000Z","size":11770,"stargazers_count":1790,"open_issues_count":7,"forks_count":116,"subscribers_count":26,"default_branch":"master","last_synced_at":"2026-01-13T04:09:22.323Z","etag":null,"topics":["bindings","fltk","graphics","gui","widgets"],"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":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-24T16:44:19.000Z","updated_at":"2026-01-12T15:10:30.000Z","dependencies_parsed_at":"2023-12-14T19:44:58.743Z","dependency_job_id":"efccbec0-3ecc-43f0-8e30-e45f9441a0e5","html_url":"https://github.com/fltk-rs/fltk-rs","commit_stats":{"total_commits":2887,"total_committers":46,"mean_commits":62.76086956521739,"dds":"0.045375822653273334","last_synced_commit":"433ddc1720c6527bdbf95967d60a07ae7c0debb4"},"previous_names":["moalyousef/fltk-rs"],"tags_count":306,"template":false,"template_full_name":null,"purl":"pkg:github/fltk-rs/fltk-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fltk-rs","download_url":"https://codeload.github.com/fltk-rs/fltk-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fltk-rs%2Ffltk-rs/sbom","scorecard":{"id":404524,"data":{"date":"2025-08-11","repo":{"name":"github.com/fltk-rs/fltk-rs","commit":"e834b9b5cb6c67c1af7c42a373ad0b54864f5f92"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":6,"reason":"5 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check.yml:1","Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:96: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/fltk-rs/fltk-rs/rust.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T20:52:51.900Z","repository_id":37710552,"created_at":"2025-08-18T20:52:51.900Z","updated_at":"2025-08-18T20:52:51.900Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:13:38.078Z","status":"ssl_error","status_checked_at":"2026-01-15T22:12:11.737Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bindings","fltk","graphics","gui","widgets"],"created_at":"2024-07-31T23:00:52.191Z","updated_at":"2026-01-15T22:20:39.690Z","avatar_url":"https://github.com/fltk-rs.png","language":"Rust","funding_links":[],"categories":["Rust","Libraries","库 Libraries"],"sub_categories":["GUI","GUI GUI"],"readme":"# fltk-rs\n\n[![Documentation](https://docs.rs/fltk/badge.svg)](https://docs.rs/fltk)\n[![Crates.io](https://img.shields.io/crates/v/fltk.svg)](https://crates.io/crates/fltk)\n[![License](https://img.shields.io/crates/l/fltk.svg)](https://github.com/fltk-rs/fltk-rs/blob/master/LICENSE)\n[![Build](https://github.com/fltk-rs/fltk-rs/workflows/Build/badge.svg?branch=master)](https://github.com/fltk-rs/fltk-rs/actions)\n\n\nRust bindings for the FLTK 1.4 Graphical User Interface library. \n\nThe fltk crate is a cross-platform lightweight gui library which can be statically linked to produce small, self-contained and fast gui applications.\n\nResources:\n- [Book](https://fltk-rs.github.io/fltk-book/)\n- [本書的中文翻譯](https://flatig.vip/fltk-book-zh)\n- [Documentation](https://docs.rs/fltk)\n- [Videos](https://github.com/fltk-rs/fltk-rs#tutorials)\n- [Discussions](https://github.com/fltk-rs/fltk-rs/discussions)\n- [Examples](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples)\n- [Demos](https://github.com/fltk-rs/demos)\n- [7guis-fltk-rs](https://github.com/tdryer/7guis-fltk-rs)\n- [FLTK-RS-Examples](https://github.com/wyhinton/FLTK-RS-Examples)\n- Erco's FLTK cheat [page](http://seriss.com/people/erco/fltk/), which is an excellent FLTK C++ reference. \n\nWhy choose FLTK?\n- Lightweight. Small binary, around 1mb after stripping. [Small memory footprint](https://szibele.com/memory-footprint-of-gui-toolkits/).\n- Speed. Fast to install, fast to build, fast at startup and fast at runtime. \n- Single executable. No DLLs to deploy.\n- Supports old architectures. \n- FLTK's permissive license which allows static linking for closed-source applications.\n- Themeability (5 supported schemes: Base, GTK, Plastic, Gleam and Oxy), and additional theming using [fltk-theme](https://crates.io/crates/fltk-theme).\n- Provides around 80 customizable widgets. \n- Has inbuilt image support.\n\nHere is a [list](https://en.wikipedia.org/wiki/FLTK#Use) of software using FLTK. For software using fltk-rs, check [here](https://github.com/fltk-rs/fltk-rs/issues/418).\n\n- [Link](https://github.com/fltk/fltk) to the official FLTK repository.\n- [Link](https://www.fltk.org/doc-1.4/index.html) to the official documentation.\n\n## Usage\n\nJust add the following to your project's Cargo.toml file:\n\n```toml\n[dependencies]\nfltk = \"^1.5\"\n```\nTo use the latest changes in the repo:\n```toml\n[dependencies]\nfltk = { version = \"^1.5\", git = \"https://github.com/fltk-rs/fltk-rs\" }\n```\nOr if you have other depenendencies which depend on fltk-rs:\n```toml\n[dependencies]\nfltk = \"^1.5\"\n\n[patch.crates-io]\nfltk = { git = \"https://github.com/fltk-rs/fltk-rs\" }\n```\n\nTo use the bundled libs (available for x64 windows (msvc \u0026 gnu (msys2-mingw)), x64 \u0026 aarch64 linux \u0026 macos):\n```toml\n[dependencies]\nfltk = { version = \"^1.5\", features = [\"fltk-bundled\"] }\n```\n\nThe library is automatically built and statically linked to your binary.\n\nAn example hello world application:\n\n```rust,no_run\nuse fltk::{app, prelude::*, window::Window};\n\nfn main() {\n    let app = app::App::default();\n    let mut wind = Window::new(100, 100, 400, 300, \"Hello from rust\");\n    wind.end();\n    wind.show();\n    app.run().unwrap();\n}\n```\n\nAnother example showing the basic callback functionality:\n```rust,no_run\nuse fltk::{app, button::Button, frame::Frame, prelude::*, window::Window};\n\nfn main() {\n    let app = app::App::default();\n    let mut wind = Window::new(100, 100, 400, 300, \"Hello from rust\");\n    let mut frame = Frame::new(0, 0, 400, 200, \"\");\n    let mut but = Button::new(160, 210, 80, 40, \"Click me!\");\n    wind.end();\n    wind.show();\n    but.set_callback(move |_| frame.set_label(\"Hello World!\")); // the closure capture is mutable borrow to our button\n    app.run().unwrap();\n}\n```\nPlease check the [examples](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples) directory for more examples.\nYou will notice that all widgets are instantiated with a new() method, taking the x and y coordinates, the width and height of the widget, as well as a label which can be left blank if needed. Another way to initialize a widget is using the builder pattern: (The following buttons are equivalent)\n\n```rust,no_run\nuse fltk::{button::Button, prelude::*};\nlet but1 = Button::new(10, 10, 80, 40, \"Button 1\");\n\nlet but2 = Button::default()\n    .with_pos(10, 10)\n    .with_size(80, 40)\n    .with_label(\"Button 2\");\n```\n\nAn example of a counter showing use of the builder pattern:\n```rust,no_run\nuse fltk::{app, button::Button, frame::Frame, prelude::*, window::Window};\nfn main() {\n    let app = app::App::default();\n    let mut wind = Window::default()\n        .with_size(160, 200)\n        .center_screen()\n        .with_label(\"Counter\");\n    let mut frame = Frame::default()\n        .with_size(100, 40)\n        .center_of(\u0026wind)\n        .with_label(\"0\");\n    let mut but_inc = Button::default()\n        .size_of(\u0026frame)\n        .above_of(\u0026frame, 0)\n        .with_label(\"+\");\n    let mut but_dec = Button::default()\n        .size_of(\u0026frame)\n        .below_of(\u0026frame, 0)\n        .with_label(\"-\");\n    wind.make_resizable(true);\n    wind.end();\n    wind.show();\n    /* Event handling */\n    app.run().unwrap();\n}\n```\n\nAlternatively, you can use Flex (for flexbox layouts), Pack or [Grid](https://github.com/fltk-rs/fltk-grid):\n```rust,no_run\nuse fltk::{app, button::Button, frame::Frame, group::Flex, prelude::*, window::Window};\nfn main() {\n    let app = app::App::default();\n    let mut wind = Window::default().with_size(160, 200).with_label(\"Counter\");\n    let mut flex = Flex::default().with_size(120, 140).center_of_parent().column();\n    let mut but_inc = Button::default().with_label(\"+\");\n    let mut frame = Frame::default().with_label(\"0\");\n    let mut but_dec = Button::default().with_label(\"-\");\n    flex.end();\n    wind.end();\n    wind.show();\n    app.run().unwrap();\n}\n```\n\nAnother example:\n```rust,no_run\nuse fltk::{app, button::Button, frame::Frame, group::Flex, prelude::*, window::Window};\n\nfn main() {\n    let app = app::App::default();\n    let mut wind = Window::default().with_size(400, 300);\n    let mut col = Flex::default_fill().column();\n    col.set_margins(120, 80, 120, 80);\n    let mut frame = Frame::default();\n    let mut but = Button::default().with_label(\"Click me!\");\n    col.fixed(\u0026but, 40);\n    col.end();\n    wind.end();\n    wind.show();\n\n    but.set_callback(move |_| frame.set_label(\"Hello world\"));\n\n    app.run().unwrap();\n}\n```\n\n### Events\nEvents can be handled using the `set_callback` method (as above) or the available `fltk::app::set_callback()` free function, which will handle the default trigger of each widget(like clicks for buttons):\n```rust,ignore\n    /* previous hello world code */\n    but.set_callback(move |_| frame.set_label(\"Hello World!\"));\n    another_but.set_callback(|this_button| this_button.set_label(\"Works\"));\n    app.run().unwrap();\n```\nAnother way is to use message passing:\n```rust,ignore\n    /* previous counter code */\n    let (s, r) = app::channel::\u003cMessage\u003e();\n\n    but_inc.emit(s, Message::Increment);\n    but_dec.emit(s, Message::Decrement);\n    \n    while app.wait() {\n        let label: i32 = frame.label().parse().unwrap();\n        if let Some(msg) = r.recv() {\n            match msg {\n                Message::Increment =\u003e frame.set_label(\u0026(label + 1).to_string()),\n                Message::Decrement =\u003e frame.set_label(\u0026(label - 1).to_string()),\n            }\n        }\n    }\n```\nFor the remainder of the code, check the full example [here](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/counter2.rs).\n\nFor custom event handling, the handle() method can be used:\n```rust,ignore\n    some_widget.handle(move |widget, ev: Event| {\n        match ev {\n            Event::Push =\u003e {\n                println!(\"Pushed!\");\n                true\n            },\n            /* other events to be handled */\n            _ =\u003e false,\n        }\n    });\n```\nHandled or ignored events using the handle method should return true, unhandled events should return false. More examples are available in the fltk/examples directory.\n\nFor an alternative event handling mechanism using an immediate-mode approach, check the [fltk-evented crate](https://crates.io/crates/fltk-evented).\n\n### Theming\n\nFLTK offers 5 application schemes:\n- Base\n- Gtk\n- Gleam\n- Plastic\n- Oxy\n\n(Additional theming can be found in the [fltk-theme](https://crates.io/crates/fltk-theme) crate)\n\nThese can be set using the `App::with_scheme()` method.\n```rust,ignore\nlet app = app::App::default().with_scheme(app::Scheme::Gleam);\n```\nThemes of individual widgets can be optionally modified using the provided methods in the `WidgetExt` trait, such as `set_color()`, `set_label_font()`, `set_frame()` etc:\n```rust,ignore\n    some_button.set_color(Color::Light1); // You can use one of the provided colors in the fltk enums\n    some_button.set_color(Color::from_rgb(255, 0, 0)); // Or you can specify a color by rgb or hex/u32 value\n    some_button.set_color(Color::from_u32(0xffebee));\n    some_button.set_frame(FrameType::RoundUpBox);\n    some_button.set_font(Font::TimesItalic);\n```\nFor default application colors, fltk-rs provides `app::background()`, `app::background2()` and `app::foreground()`. You can also specify the default application selection/inactive colors, font, label size, frame type, scrollbar size, menu line-spacing. Additionally the [fltk-theme](https://crates.io/crates/fltk-theme) crate offers some other predefined color maps (dark theme, tan etc) and widget themes which can be loaded into your application.\n\n## Build Dependencies\n\nRust (version \u003e 1.63), CMake (version \u003e 3.15), Git and a C++17 compiler need to be installed and in your PATH for a cross-platform build from source. [Ninja](https://github.com/ninja-build/ninja) is recommended, but not required. This crate also offers a bundled form of fltk on selected x86_64 and aarch64 platforms (Windows (msvc and gnu), MacOS, Linux), this can be enabled using the fltk-bundled feature flag as mentioned in the usage section (this requires curl and tar to download and unpack the bundled libraries).\n\n- Windows: \n    - MSVC: Windows SDK\n    - Gnu: No dependencies\n- MacOS: MacOS SDK (installed as part of xcode or the xcode command line tools).\n- Linux/BSD: X11 (and wayland for `use-wayland` feature flag) and OpenGL development headers need to be installed for development. The libraries themselves are normally available on linux/bsd distros with a graphical user interface.\n\nFor Debian-based GUI distributions, that means running:\n```bash\nsudo apt-get install libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev libgl1-mesa-dev libglu1-mesa-dev\n```\nFor RHEL-based GUI distributions, that means running:\n```bash\nsudo yum groupinstall \"X Software Development\" \u0026\u0026 sudo yum install pango-devel libXinerama-devel libstdc++-static\n```\nFor Arch-based GUI distributions, that means running:\n```bash\nsudo pacman -S libx11 libxext libxft libxinerama libxcursor libxrender libxfixes pango cairo libgl mesa --needed\n```\nFor Alpine linux:\n```bash\napk add pango-dev fontconfig-dev libxinerama-dev libxfixes-dev libxcursor-dev mesa-gl\n```\nFor NixOS (Linux distribution) this `nix-shell` environment can be used:\n```bash\nnix-shell --packages rustc cmake git gcc xorg.libXext xorg.libXft xorg.libXinerama xorg.libXcursor xorg.libXrender xorg.libXfixes libcerf pango cairo libGL mesa pkg-config\n```\nFor Freebsd:\n```bash\npkg install -y cairo pango fontconfig freetype2 libX11 libXext libXfixes mesa-libs\n# building might require setting `CPATH=/usr/local/include` and `LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib\n```\n\n## Runtime Dependencies\n- Windows: None\n- MacOS: None\n- Linux: You need X11 libraries, as well as pango and cairo for drawing (and OpenGL if you want to enable the enable-glwindow feature):\n```bash\napt-get install -qq --no-install-recommends libx11-6 libxinerama1 libxft2 libxext6 libxcursor1 libxrender1 libxfixes3 libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libpangoxft-1.0-0 libglib2.0-0 libfontconfig1 libglu1-mesa libgl1\n```\nNote that if you installed the build dependencies, it will also install the runtime dependencies automatically as well.\n\nAlso note that most graphical desktop environments already have these libs already installed. This list can be useful if you want to test your already built package in CI/docker (where there is no graphical user interface).\n\n## Features\n\nThe following are the features offered by the crate:\n- use-ninja: Uses the ninja build system if available for a faster build, especially on Windows.\n- no-pango: Build without pango support on Linux/BSD, if rtl/cjk font support is not needed.\n- fltk-bundled: Support for bundled versions of cfltk and fltk on selected platforms (requires curl and tar)\n- enable-glwindow: Support for drawing using OpenGL functions.\n- system-libpng: Uses the system libpng\n- system-libjpeg: Uses the system libjpeg\n- system-zlib: Uses the system zlib\n- use-wayland: Uses FLTK's wayland hybrid backend (runs on wayland when present, and on X11 when not present). Requires libwayland-dev, wayland-protocols, libdbus-1-dev, libxkbcommon-dev, libgtk-3-dev (optional, for the GTK-style titlebar), in addition to the X11 development packages. Sample [CI](https://github.com/MoAlyousef/test_wayland/blob/main/.github/workflows/rust.yml).\n- fltk-config: Uses an already installed FLTK's fltk-config to build this crate against. This still requires FLTK 1.4. Useful for reducing build times, testing against a locally built FLTK and doesn't need to invoke neither git nor cmake. \n\n## FAQ\n\nplease check the [FAQ](FAQ.md) page for frequently asked questions, encountered issues, guides on deployment, and contribution.\n\n## Building\n\nTo build, just run:\n```bash\ngit clone https://github.com/fltk-rs/fltk-rs --recurse-submodules\ncd fltk-rs\ncargo build\n```\n\n## Currently implemented types:\n\n### Image types:\n- SharedImage\n- BmpImage\n- JpegImage\n- GifImage\n- AnimGifImage\n- PngImage\n- SvgImage\n- Pixmap\n- RgbImage\n- XpmImage\n- XbmImage\n- PnmImage\n- TiledImage\n\n### Widgets:\n- Buttons\n    - Button\n    - RadioButton\n    - ToggleButton\n    - RoundButton\n    - CheckButton\n    - LightButton\n    - RepeatButton\n    - RadioLightButton\n    - RadioRoundButton\n    - ReturnButton\n    - ShortcutButton\n- Dialogs\n    - Native FileDialog\n    - FileChooser\n    - HelpDialog\n    - Message dialog\n    - Alert dialog\n    - Password dialog\n    - Choice dialog\n    - Input dialog\n    - ColorChooser dialog\n- Frame (Fl_Box)\n- Windows\n    - Window\n    - SingleWindow (single buffered)\n    - DoubleWindow (double buffered)\n    - MenuWindow\n    - OverlayWindow\n    - GlWindow (requires the \"enable-glwindow\" flag)\n    - Experimental GlWidgetWindow (requires the \"enable-glwindow\" flag)\n- Groups\n    - Group\n    - Pack (Horizontal and Vertical)\n    - Tabs\n    - Scroll\n    - Tile\n    - Wizard\n    - ColorChooser\n    - Flex (Column and Row)\n    - Grid (\u003chttps://github.com/fltk-rs/fltk-grid\u003e)\n- Text display widgets\n    - TextDisplay\n    - TextEditor\n    - SimpleTerminal\n- Input widgets\n    - Input\n    - IntInput\n    - FloatInput\n    - MultilineInput\n    - SecretInput\n    - FileInput\n- Output widgets\n    - Output\n    - MultilineOutput\n- Menu widgets\n    - MenuBar\n    - MenuItem\n    - Choice (dropdown list)\n    - SysMenuBar (MacOS menu bar which appears at the top of the screen)\n    - MenuButton\n- Valuator widgets\n    - Slider\n    - NiceSlider\n    - ValueSlider\n    - Dial\n    - LineDial\n    - Counter\n    - Scrollbar\n    - Roller\n    - Adjuster\n    - ValueInput\n    - ValueOutput\n    - FillSlider\n    - FillDial\n    - HorSlider (Horizontal slider)\n    - HorFillSlider\n    - HorNiceSlider\n    - HorValueSlider\n- Browsing widgets\n    - Browser\n    - SelectBrowser\n    - HoldBrowser\n    - MultiBrowser\n    - FileBrowser\n    - CheckBrowser\n- Miscelaneous widgets\n    - Spinner\n    - Clock (Round and Square)\n    - Chart (several chart types are available)\n    - Progress (progress bar)\n    - Tooltip\n    - InputChoice\n    - HelpView\n- Table widgets\n    - Table\n    - TableRow\n    - SmartTable (via the [fltk-table crate](https://crates.io/crates/fltk-table))\n- Trees\n    - Tree\n    - TreeItem\n\n### Drawing primitives\n(In the draw module)\n### Surface types:\n- Printer.\n- ImageSurface.\n- SvgFileSurface.\n\n### GUI designer\n\nfltk-rs supports FLUID, the RAD wysiwyg designer for FLTK. \nCheckout the [fl2rust crate](https://github.com/fltk-rs/fl2rust) and [fl2rust template](https://github.com/fltk-rs/fl2rust-template).\n\n- [FLTK Rust: Latest FLUID, fl2rust and fltk-rs](https://www.youtube.com/watch?v=33NdaW08fP8)\n\n## Examples\n\nTo run the [examples](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples): \n```bash\ncargo run --example editor\ncargo run --example calculator\ncargo run --example calculator2\ncargo run --example counter\ncargo run --example hello_svg\ncargo run --example hello_button\ncargo run --example fb\ncargo run --example pong\ncargo run --example custom_widgets\ncargo run --example custom_dial\n...\n```\n\nUsing custom theming and also FLTK provided default schemes like Gtk:\n\n- [hello_svg](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/hello_svg.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/hello.jpg)\n\n- [calculator2](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/calculator2.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/calc2.jpg)\n\n- [counter3](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/counter3.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/flutter_like.jpg)\n\n- [custom_dial](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/custom_dial.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/dial.jpg)\n\n- [calculator](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/calculator.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/calc.jpg)\n\n- [tabs](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/tabs.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/tabs.jpg)\n\n- [counter](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/counter.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/counter.jpg)\n\n- [editor](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/editor.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/editor.jpg)\n\n- [table](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/table.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/table.jpg)\n\n- [charts](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/charts.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/charts.jpg)\n\n- [pong](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/pong.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/pong.gif)\n\n- [frames](https://github.com/fltk-rs/fltk-rs/tree/master/fltk/examples/frames.rs)\n\n- ![alt_test](https://github.com/fltk-rs/fltk-rs/raw/master/screenshots/frames.jpg)\n\nDifferent frame types which can be used with many different widgets such as Frame, Button widgets, In/Output widgets...etc.\n\nMore interesting examples can be found in the fltk-rs-demos [repo](https://github.com/fltk-rs/demos).\nAlso a nice implementation of the 7guis tasks can be found [here](https://github.com/tdryer/7guis-fltk-rs).\nVarious advanced examples can also be found [here](https://github.com/wyhinton/FLTK-RS-Examples).\n\n\n### Themes\n\nAdditional themes can be found in the [fltk-theme crate](https://github.com/fltk-rs/fltk-theme).\n\n- ![screenshots/aero.jpg](https://github.com/fltk-rs/fltk-theme/blob/dfd1e97b62c94d7af9d615cab0ab809226957a3f/screenshots/aero.jpg)\n\n- ![screenshots/black.jpg](https://github.com/fltk-rs/fltk-theme/blob/dfd1e97b62c94d7af9d615cab0ab809226957a3f/screenshots/black.jpg)\n\nAnd more...\n\n### Extra widgets\n\nThis crate exposes FLTK's set of widgets, which are all customizable. Additional custom widgets can be found in the [fltk-extras crate](https://github.com/fltk-rs/fltk-extras).\n\n![image](https://user-images.githubusercontent.com/37966791/212541355-91062d78-5c5d-4b7a-aa6d-e1be49cff340.png)\n\n![image](https://user-images.githubusercontent.com/37966791/212541425-f594a7bc-d7bc-49e5-90f3-03f52d437cce.png)\n\n![ss](https://github.com/fltk-rs/fltk-extras/assets/37966791/a03e1912-7658-48be-a354-2b588b417fd8)\n\n![image](https://user-images.githubusercontent.com/37966791/212541392-2cd4fb08-4152-484a-86da-64b2bc476a0e.png)\n\n## Tutorials\n\n- [Basics](https://www.youtube.com/watch?v=ygP4egJtmzw)\n- [New basics](https://youtu.be/S1NSsHZs6hI) (Uses fltk post 1.0)\n- [User input](https://youtu.be/rIq2O4vg9fQ)\n- [Client-side web todo app](https://youtu.be/tdfFXi4-Yrw)\n- [Create a media player using the vlc crate](https://youtu.be/enxqU3bhCEs)\n- [Custom dialogs](https://youtu.be/tXeXHoKG6-I)\n- [Add drag and drop to the editor example](https://www.youtube.com/watch?v=qp5hnRvSxAg)\n- [Drawing things with fltk](https://www.youtube.com/watch?v=r9MOpvfBPWs)\n- [Working with images](https://www.youtube.com/watch?v=Rn2sjfAX4WI)\n- [Audio player with custom widgets](https://www.youtube.com/watch?v=okdFx6tv7ds)\n- [Use FLUID (RAD tool) with Rust](https://www.youtube.com/watch?v=k_P0wG3-dNk)\n- [multiple windows and embedding windows](https://www.youtube.com/watch?v=qEPYx1Lw7fY)\n- [FLTK Rust tutorial: Improve FLTK's toggle button appearance!](https://www.youtube.com/watch?v=WCTbPKHXR-o)\n- [FLTK Rust: Customizing your app and widgets](https://www.youtube.com/watch?v=uCZl0PuMVGo)\n- [FLTK Rust: fltk-table, a boilerplate-less table creating crate](https://www.youtube.com/watch?v=pVJ8Yq1kDGs)\n- [FLTK Rust: intro into the fltk-evented crate](https://www.youtube.com/watch?v=rAVHBl3W9W8)\n- [FLTK Rust: Latest FLUID, fl2rust and fltk-rs](https://www.youtube.com/watch?v=33NdaW08fP8)\n\nMore videos in the playlist [here](https://www.youtube.com/playlist?list=PLHqrrowPLkDu9U-uk60sGM-YWLOJFfLoE).\nSome of the demo projects can be found [here](https://github.com/fltk-rs/demos).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffltk-rs%2Ffltk-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffltk-rs%2Ffltk-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffltk-rs%2Ffltk-rs/lists"}