Update README.md
This commit is contained in:
parent
8eca7fba66
commit
eda4a23d9f
1 changed files with 1 additions and 28 deletions
29
README.md
29
README.md
|
@ -5,31 +5,4 @@
|
||||||
|
|
||||||
# ClojureFX
|
# ClojureFX
|
||||||
|
|
||||||
```clojure
|
Bidirectionally synced GitHub mirror for [the ClojureFX repository](https://lyrion.ch/opensource/repositories/clojurefx).
|
||||||
[clojurefx "0.4.0"]
|
|
||||||
```
|
|
||||||
|
|
||||||
A Clojure extension to make working with [JavaFX](http://download.java.net/jdk8/jfxdocs/index.html) 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
|
|
||||||
|
|
||||||
Take a look at the [ClojureFX manual](http://lyrion.ch/share/clojurefx.html).
|
|
||||||
|
|
||||||
* FXML loading and scripting
|
|
||||||
* Automatic FXML controller generation
|
|
||||||
* Declarative EDN GUI structure compilation
|
|
||||||
* Simplified event binding (bind a Clojure function to an event trigger)
|
|
||||||
|
|
||||||
### Declarative UI programming
|
|
||||||
|
|
||||||
```clojure
|
|
||||||
(def superbutton (compile [Button {:text "Close"
|
|
||||||
:action #'close-handler}]))
|
|
||||||
|
|
||||||
(compile [VBox {:id "TopLevelVBox"
|
|
||||||
:children [Label {:text "Hi!"}
|
|
||||||
Label {:text "I'm ClojureFX!"}
|
|
||||||
HBox {:id "HorizontalBox"
|
|
||||||
:children [Button {:text "OK"}
|
|
||||||
superbutton]}]}])
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in a new issue