dziltener@lyrion.ch
c10b14359b
FXValue, FXId, FXParent, FXGraphic and FXContainer provide functionality to get and set values, ids, children, graphics and content. Declarative structures can be created and compiled into JavaFX scenegraphs, similar to Hiccup.
21 lines
576 B
Markdown
21 lines
576 B
Markdown
# ClojureFX
|
|
|
|
A Clojure wrapper to make working with [JavaFX](http://download.java.net/jdk8/jfxdocs/index.html) simpler and more idiomatic.
|
|
|
|
## Features
|
|
|
|
This is in a very early state, so there isn't much yet, except one thing.
|
|
|
|
### Declarative UI programming
|
|
|
|
```clojure
|
|
(compile [:VBox {:id "TopLevelVBox"
|
|
:children [:Label {:text "Hi!"}
|
|
:Label {:text "I'm ClojureFX!"}
|
|
:HBox {:id "HorizontalBox"
|
|
:children [:Button {:text "Alright."}]}]}])
|
|
```
|
|
|
|
## TODO
|
|
|
|
Everything.
|