https://github.com/frewsxcv/rust-sysbar
Rust library for interacting with the system's taskbar / tray / statusbar
https://github.com/frewsxcv/rust-sysbar
rust statusbar sysbar taskbar
Last synced: 6 months ago
JSON representation
Rust library for interacting with the system's taskbar / tray / statusbar
- Host: GitHub
- URL: https://github.com/frewsxcv/rust-sysbar
- Owner: frewsxcv
- License: apache-2.0
- Created: 2017-08-05T15:15:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-23T03:58:00.000Z (over 4 years ago)
- Last Synced: 2024-04-20T10:47:11.815Z (almost 2 years ago)
- Topics: rust, statusbar, sysbar, taskbar
- Language: Rust
- Size: 52.7 KB
- Stars: 66
- Watchers: 6
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# rust-sysbar
Library for interacting with the system's taskbar / tray / statusbar. It aims to be cross-platform, but currently only supports macOS. If have some extra time and are interested in implementing this for other platforms, contributions would be greatly appreciated! This project is a fork of [rs-barfly](https://github.com/jmquigs/rs-barfly).
## Example
```rust
let mut bar = sysbar::Sysbar::new("Foo");
bar.add_item(
"Say 'bar'",
Box::new(move || {
println!("bar");
}),
);
bar.add_quit_item("Quit");
bar.display();
```

## See also
* [systray-rs](https://github.com/qdot/systray-rs)
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.