All Projects → haxeui → haxeui-openfl

haxeui / haxeui-openfl

Licence: MIT License
The OpenFL backend of the HaxeUI framework -

Programming Languages

haxe
709 projects
CSS
56736 projects

Projects that are alternatives of or similar to haxeui-openfl

extension-networking
Library developed for OpenFL to facilitate connections between applications, using TCP sockets, and following the scheme of event-driven programming.
Stars: ✭ 29 (-17.14%)
Mutual labels:  openfl
haxeui-kha
The Kha backend of the HaxeUI framework -
Stars: ✭ 38 (+8.57%)
Mutual labels:  haxeui-backend
smartfox-haxe-client
haxe openfl client for smartfoxserver
Stars: ✭ 18 (-48.57%)
Mutual labels:  openfl
feathersui-openfl
Cross-platform graphical user interface components for creative frontend projects — powered by Haxe and OpenFL
Stars: ✭ 113 (+222.86%)
Mutual labels:  openfl
minimalcomps-openfl
OpenFL port of Minimal Components by Keith Peters
Stars: ✭ 21 (-40%)
Mutual labels:  openfl
Pixel-Sprite-Generator-Editor
A quick project to create a editor for Pixel-Sprite-Generator
Stars: ✭ 19 (-45.71%)
Mutual labels:  openfl
haxeui-hxwidgets
The hxWidgets backend of the HaxeUI framework -
Stars: ✭ 20 (-42.86%)
Mutual labels:  haxeui-backend

build status

haxeui-openfl

haxeui-openfl is the OpenFL backend for HaxeUI.

Installation

  • haxeui-openfl has a dependency to haxeui-core, and so that too must be installed.
  • haxeui-openfl also has a dependency to OpenFL, please refer to the installation instructions on their site.

Eventually all these libs will become haxelibs, however, currently in their alpha form they do not even contain a haxelib.json file (for dependencies, etc) and therefore can only be used by downloading the source and using the haxelib dev command or by directly using the git versions using the haxelib git command (recommended). Eg:

haxelib git haxeui-core https://github.com/haxeui/haxeui-core
haxelib dev haxeui-openfl path/to/expanded/source/archive

Usage

The simplest method to create a new OpenFL application that is HaxeUI ready is to use one of the haxeui-templates. These templates will allow you to start a new project rapidly with HaxeUI support baked in.

If however you already have an existing application, then incorporating HaxeUI into that application is straight forward:

project/application.xml

Assuming haxeui-core and haxeui-openfl have been installed, then adding HaxeUI to your existing application is as simple as adding these two lines to your project.xml or your application.xml:

<haxelib name="haxeui-core" />
<haxelib name="haxeui-openfl" />

Note: Currently you must also include haxeui-core explicitly during the alpha, eventually haxelib.json files will exist to take care of this dependency automatically.

Toolkit initialisation and usage

Initialising the toolkit requires you to add this single line somewhere before you start to actually use HaxeUI in your application:

Toolkit.init();

Once the toolkit is initialised you can add components using the methods specified here.

OpenFL specifics

As well as using the generic Screen.instance.addComponent, it is also possible to add components directly to any other OpenFL sprite (eg: Lib.current.stage.addChild)

Addtional resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].