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

sys ul-sys

Bindings to Ultralight Framework (Ultralight, AppCore)

14 releases (stable)

1.3.1 Aug 30, 2021
1.3.0 Jul 23, 2021
1.2.2 Jan 27, 2021
1.2.1 Nov 4, 2020
0.1.0-rc2 Mar 19, 2019

#2253 in Development tools

21 downloads per month
Used in ul

MIT license

69KB

ul-sys

Low level bindings to Ultralight SDK. Ultralight is a light and fast option to integrate GPU-accelerated HTML UI in your app.

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);

Dependencies

~6.5MB
~115K SLoC