The "gtk_custom_widgets" is a collection of helper functions and custom controls for Crystal.
- SevenSegmentDisplay
- SlopSevSegDisplay
- EightSegmentDisplay
- DigitalDisplay
- TimerColon
- DigitalClockDisplay
- AnalogClockDisplay
- NixieTube
-
Add the dependency to your
shard.yml
:dependencies: gtk_custom_widgets: github: viachpaliy/gtk_custom_widgets
-
Run
shards install
Note : this shard use "gobject"(https://github.com/jhass/crystal-gobject) and "cairo-gobject"((https://github.com/viachpaliy/cairo-gobject) shards. If you use Ubuntu18.04 based distributives uncomment Rectangle structure in lib/cairo-gobject/src/lib_cairo.cr file (lines 7...12).
require "gtk_custom_widgets/gtk_custom_widgets"
Run sample :
cd gtk_custom_widgets
crystal run samples/sample_name.cr
TODO: Write development instructions here
- Fork it (https://github.com/viachpaliy/gtk_custom_widgets/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- viachpaliy - creator and maintainer