fltk-accesskit

fltk-accesskit is an fltk accesskit adapter made to work with the fltk gui crate.

Example code: ```rust use fltk::{prelude::*, *}; use fltk_accesskit::{AccessibilityContext, AccessibleApp};

fn main() { let a = app::App::default().withscheme(app::Scheme::Oxy); let mut w = window::Window::default() .withsize(400, 300) .withlabel("Hello fltk-accesskit"); let col = group::Flex::default() .withsize(200, 100) .centerofparent() .column(); let inp = input::Input::default().withid("inp").withlabel("Enter name:"); let mut btn = button::Button::default().withlabel("Greet"); let out = output::Output::default().withid("out"); col.end(); w.end(); w.make_resizable(true); w.show();

btn.set_callback(btn_callback);

let ac = AccessibilityContext::new(
    w,
    vec![Box::new(inp), Box::new(btn), Box::new(out)],
);

a.run_with_accessibility(ac).unwrap();

}

fn btncallback(btn: &mut button::Button) { let inp: input::Input = app::widgetfromid("inp").unwrap(); let mut out: output::Output = app::widgetfromid("out").unwrap(); let name = inp.value(); if name.isempty() { return; } out.setvalue(&format!("Hello {}", name)); } ```

To use fltk-accesskit, add fltk-accesskit to your Cargo.toml: toml [dependencies] fltk = "1.4" fltk-accesskit = "0.1.0"

image