No description
Find a file
2015-01-18 04:26:18 +00:00
src/clojurefx Implemented action handling in Buttons and Menus 2015-01-18 04:26:18 +00:00
test Implemented action handling in Buttons and Menus 2015-01-18 04:26:18 +00:00
.hgignore
.projectile
build.boot Implemented action handling in Buttons and Menus 2015-01-18 04:26:18 +00:00
LICENSE
README.md README.md edited online with Bitbucket 2015-01-17 06:16:06 +00:00

License Clojars Gratipay Flattr this

ClojureFX

[clojurefx "0.0.21-SNAPSHOT"]

Note: This is a complete rewrite, no code has been taken over from the old version on GitHub, and I'm taking a radically different approach.

A Clojure extension to make working with JavaFX simpler and more idiomatic. It allows you to naturally work with stock JavaFX components through use of extended protocols. Should a feature be missing you can easily extend ClojureFX in your own codebase or just fall back to standard JavaFX methods.

Features

This is in a very early state, so there isn't much yet. Take a look at the ClojureFX wiki.

  • Declarative EDN GUI structure compilation
  • FXML loading and scripting
  • Turn a scene graph into a flat id-node-map and/or get nodes by id out of a scene graph

Declarative UI programming

(compile [VBox {:id "TopLevelVBox"
                :children [Label {:text "Hi!"}
                           Label {:text "I'm ClojureFX!"}
                           HBox {:id "HorizontalBox"
                                 :children [Button {:text "Alright."}]}]}])