GithubHelp home page GithubHelp logo

draconic-fx's Introduction

draconic

Clojars Project

A Clojure library to help load and program JavaFX apps using FXML. It tries to recreate a bit of the proper JavaFX API's magic-loady controller functionality without having to do any wonky class creation.

Warning- this library is very alpha. What exists is mostly solid due to there not being much, but the API will be extended pretty heavily in time as more functionality is needed. (Oh, and draconic.bean-conversions is basically unusable, so you probably shouldn't use anything in there.)

Usage

See draconic.fx.ml.clj for an example of how to launch an FXML window. Why is it in a defn instead of here in the readme? To make it easier to run from the REPL.

To make your own apps, you'll need the scene builder from Gluon. To work with JavaFX objects directly, you'll need to get familiar with both Java-from-Clojure interop and the JavaFX API. Though the API is usually pretty straight-forward it can be a bit wonkey and inconsistent, so some multimethods are declared in draconic.fx.assignment to help generic programming.

A word of caution for those of us used to working with immutable data structures- quite a bit of the API is based around adding things to mutable lists, and it can throw you for a loop when you see a method like "getChildren()" when you're trying to figure out how to add nodes to the scene graph. Just thought that I'd warn ya.

License

Copyright © 2016 Blakwurm Studios

Distributed under the Eclipse Public License 1.0.

draconic-fx's People

Contributors

zaphodious avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.