TBD
This library provides backend-independent part of StablexUI.
haxelib git stablexui-core https://github.com/StablexUI/Core.git master
Normally you don't need to explicitly include this library in your project, because it will be automatically included by StablexUI backend you choose.
Install StablexUI Core and a backend (e.g. StablexUI Flash), then plug backend library into your project. You can also install a theme (e.g. FlatUI Theme). If you use a theme, you need to instantiate it before initializing StablexUI. Here is an initialization code required to get started:
import sx.Sx;
import sx.flatui.FlatUITheme;
class Main
{
/**
* Entry point to an app
*/
static public function main ()
{
Sx.theme = new FlatUITheme();
Sx.init(run);
}
/**
* Entry point to your own code
*/
static public function run ()
{
//Now you can create some widgets
var button = new Button();
button.text = 'Hello, world!';
//add to `global` GUI root
Sx.root.addChild(button);
}
}