afrish 0.1.1

A Rust binding for the Tk graphics toolkit, made for building the Afrim IME.
Documentation
  • Coverage
  • 78.74%
    574 out of 729 items documented1 out of 534 items with examples
  • Size
  • Source code size: 201.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 31.8 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • fodydev/afrish
    0 0 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pythonbrad

afrish

A Rust binding for the Tk graphics toolkit, designed specifically for the development of the Afrim IME.

Overview

afrish opens and communicates with Tk's wish program as a separate process. The library provides:

  • low-level functions to directly communicate with wish, suitable for writing additional extensions
  • high-level API to write GUI applications with minimal knowledge of Tk.

Example

A simple hello-world example:

use afrish::*;

fn main() {
  let root = afrish::start_wish().unwrap();

  let hello = afrish::make_label(&root);
  hello.text("Hello from Rust/Tk");

  hello.grid().layout();

  afrish::mainloop();
}

Credits

This project is a clone of rstk.