docs.rs failed to build fltk-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
fltk-1.4.29
fltk-rs
Rust bindings for the FLTK GUI library. Still very barebones, undocumented, untested and not at all production ready!
The FLTK gui library is a crossplatform lightweight C++ library which can be linked to statically (LGPL) to produce small and fast binaries.
To build, just run:
$ cargo build
Dependencies
CMake and Ninja need to be installed and in your PATH for a crossplatform build. After that on Windows and Mac OS X, normally no external dependencies are needed. For Linux, X11 development headers need to be installed. For Debian-based distrobution, that means running:
$ sudo apt-get install libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev
Examples
To run the examples:
$ cargo run --example editor
$ cargo run --example calculator
$ cargo run --example gallery
$ cargo run --example button
$ cargo run --example hello
Currently implemented widgets
Most common widgets are implemented:
- Button
- RadioButton
- ToggleButton
- RoundButton
- CheckButton
- LightButton
- RepeatButton
- Native FileDialog
- Frame (Fl_Box)
- Window
- DoubleWindow
- Group
- Pack
- Tabs
- Scroll
- Tile
- TextDisplay (needs more work)
- TextEditor (needs more work)
- Input, IntInput, FloatInput, MultilineInput
- Output, MultilineOutput
- MenuBar
- MenuItem
- Choice (dropdown list)
- Slider, ValueSlider
- Dial
- Counter
- Scrollbar
- Roller
- Images
The implementation isn't complete no less. Customized event handling is not implemented.
Todo
- Support customized event handling
- Complete widget set
- Better documentation
- Better testing
Contributions
Contributions are very welcome!