#ultralight #bindings #framework #io #low #level #

sys ul-sys

Ultralight 框架(Ultralight,AppCore)的绑定

14个版本 (稳定版)

1.3.1 2021年8月30日
1.3.0 2021年7月23日
1.2.2 2021年1月27日
1.2.1 2020年11月4日
0.1.0-rc22019年3月19日

2391 in 开发工具

Download history 19/week @ 2024-03-29 2/week @ 2024-04-05

83 每月下载量
用于 ul

MIT 许可证

69KB

ul-sys

Ultralight SDK的低级绑定。Ultralight是一种轻量级且快速的选择,可以将GPU加速的HTML UI集成到您的应用中。

let (width, height): (u32, u32) = (1280, 768);

let config = ul::ulCreateConfig();

let app = ul::ulCreateApp(config);
let monitor = ul::ulAppGetMainMonitor(app);
let window = ul::ulCreateWindow(monitor, width, height, false, 0);

ul::ulAppSetWindow(app, window);

let renderer = ul::ulAppGetRenderer(app);
let view = ul::ulCreateView(renderer, width, height, false);
let overlay = ul::ulCreateOverlay(window, width as i32, height as i32, 0, 0);
let view = ul::ulOverlayGetView(overlay);

ul::ulViewLoadURL(view, ulstr("https://apple.com"));

ul::ulAppRun(app);

依赖项

~7MB
~118K SLoC