Ui

Ui

package neko-vm

Available on neko

Core native User Interface support. This API uses native WIN32 API on Windows, Carbon API on OSX, and GTK2 on Linux.

Static methods

static isMainThread ():Bool

Tells if the current thread is the main loop thread or not. The main loop thread is the one in which the first "ui" library primitive has been loaded.

static loop ():Void

Starts the native UI event loop. This method can only be called from the main thread.

static stopLoop ():Void

Stop the native UI event loop. This method can only be called from the main thread.

static sync (f:Void ‑> Void):Void

Queue a method call callb to be executed by the main thread while running the UI event loop. This can be used to perform UI updates in the UI thread using results processed by another thread.

static syncResult<T> (f:Void ‑> T ):T

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/neko/vm/Ui.html

停课不停学活动
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部