Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deech/fltkhs
Haskell bindings to FLTK GUI toolkit.
https://github.com/deech/fltkhs
c-plus-plus fltk fltk-gui-library fluid gui haskell haskell-bindings widget
Last synced: 2 days ago
JSON representation
Haskell bindings to FLTK GUI toolkit.
- Host: GitHub
- URL: https://github.com/deech/fltkhs
- Owner: deech
- License: mit
- Created: 2013-09-08T21:08:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-04-03T17:49:25.000Z (over 2 years ago)
- Last Synced: 2024-04-26T05:31:41.753Z (6 months ago)
- Topics: c-plus-plus, fltk, fltk-gui-library, fluid, gui, haskell, haskell-bindings, widget
- Language: C++
- Homepage:
- Size: 31.6 MB
- Stars: 191
- Watchers: 17
- Forks: 24
- Open Issues: 44
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Fltkhs - A Haskell Binding to the FLTK GUI Library
=============================================Fltkhs aims to be a complete Haskell binding to the [FLTK GUI library][1]. The [main documentation][3] has more detail on motivation and what this library hopes to achieve.
Quick Install
-------------
### Linux, *BSD and OSX
The fastest and easiest way of installing FLTKHS is to use the bundled FLTK library.```
> brew install autoconf # Only on OSX
> git clone http://github.com/deech/fltkhs-hello-world
> cd fltkhs-hello-world
> stack install --flag fltkhs:bundled
# About 6-8 minutes passes ...
> stack exec fltkhs-hello-world
```And that's it!
On [Windows](http://hackage.haskell.org/package/fltkhs-0.5.1.6/docs/Graphics-UI-FLTK-LowLevel-FLTKHS.html#g:8) it is only slightly more complicated because packages like `autotools` and `tar` are not available by default.
The second fastest way is to compile FLTK from source yourself. For instructions please see the documentation for [Linux](http://hackage.haskell.org/package/fltkhs/docs/Graphics-UI-FLTK-LowLevel-FLTKHS.html#g:10), [OSX](http://hackage.haskell.org/package/fltkhs/docs/Graphics-UI-FLTK-LowLevel-FLTKHS.html#g:11), [Windows](http://hackage.haskell.org/package/fltkhs/docs/Graphics-UI-FLTK-LowLevel-FLTKHS.html#g:12).
### Windows
Please see the [detailed Windows installation instructions](http://hackage.haskell.org/package/fltkhs/docs/Graphics-UI-FLTK-LowLevel-FLTKHS.html#g:8).
Screenshots
-----------
Unfortunately these screenshots seem to only work on the Github page. If you're seeing this from Hackage, please try from [Github](https://github.com/deech/fltkhs#screenshots).[Drawing with FLTKHS](images/arc-windows.png)
[A table of widgets](images/widget-table-windows.png)
[A complex tree](images/tree-complex-windows.png) done completely using Fluid. Notice how tree nodes can be arbitrary widgets.
Demos
-----
A number of demos are also available in the [fltkhs-demos] [4] and the [fltkhs-fluid-demos] [5] packages.[1]: http://www.fltk.org/index.php "FLTK"
[2]: http://www.fltk.org/software.php
[3]: http://hackage.haskell.org/package/fltkhs/docs/Graphics-UI-FLTK-LowLevel-FLTKHS.html
[4]: http://github.com/deech/fltkhs-demos
[5]: http://github.com/deech/fltkhs-fluid-demos