https://github.com/jcbritobr/erco-fltk-examples
Erco's fltk Cheat Page examples ported for Rust Language.
https://github.com/jcbritobr/erco-fltk-examples
fltk gui rust tutorial
Last synced: about 1 year ago
JSON representation
Erco's fltk Cheat Page examples ported for Rust Language.
- Host: GitHub
- URL: https://github.com/jcbritobr/erco-fltk-examples
- Owner: jcbritobr
- License: mit
- Created: 2021-06-29T14:18:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T05:01:25.000Z (over 4 years ago)
- Last Synced: 2024-04-17T19:26:17.509Z (over 2 years ago)
- Topics: fltk, gui, rust, tutorial
- Language: Rust
- Homepage:
- Size: 1.27 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Erco's fltk Cheat Page examples ported for Rust Language
* **TextDisplay**
```
$ cargo run --bin fl_text_display
```

* **TextDisplay Colors**
```
$ cargo run --bin fl_text_display_colors
```

* **Simple popup menu**
```
$ cargo run --bin fl_right_click_context_menu
```

* **Load Jpeg Image**
```
$ cargo run --bin fl_jpeg_image
```

* **Walk pixels of Jpeg Image**
```
$ cargo run --bin fl_raw_image
...
pixel index:479970, color-> r:175, r:202, b:171
pixel index:479973, color-> r:175, r:202, b:171
pixel index:479976, color-> r:176, r:203, b:172
pixel index:479979, color-> r:176, r:203, b:172
pixel index:479982, color-> r:176, r:203, b:172
pixel index:479985, color-> r:173, r:202, b:172
pixel index:479988, color-> r:172, r:203, b:172
pixel index:479991, color-> r:171, r:201, b:173
pixel index:479994, color-> r:172, r:203, b:172
pixel index:479997, color-> r:172, r:203, b:172
$
```
* **Change Menu Item**
```
$ cargo run --bin fl_change_menu_item
```

* **Chart**
```
$ cargo run --bin fl_chart
```

* **Toggling Menu Item at Runtime**
```
$ cargo run --bin fl_toggling_menu
```

* **File Browser**
```
$ cargo run --bin fl_file_browser
```

* **Browser Column**
```
$ cargo run --bin fl_browser_column
```

# References
[Ercos Fltk Cheat Page](http://seriss.com/people/erco/fltk/)
[Fltk Library](https://www.fltk.org/)