An open API service indexing awesome lists of open source software.

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 2 months ago
JSON representation

Erco's fltk Cheat Page examples ported for Rust Language.

Awesome Lists containing this project

README

        

![](thumbs/fltk-icon.gif)
# 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
```

![](thumbs/fl_right_click_context_menu.png)

* **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
```

![](thumbs/fl_change_menu_item.png)

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

![](thumbs/fl_chart.png)

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

![](thumbs/fl_toggling_menu.png)

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

![](thumbs/fl_file_browser.png)

* **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/)