ul-sys

Crates.ioul-sys
lib.rsul-sys
version1.3.1
sourcesrc
created_at2019-03-17 01:00:47.366378
updated_at2021-08-30 21:40:59.599073
descriptionBindings to Ultralight Framework (Ultralight, AppCore)
homepage
repositoryhttps://github.com/psychonautwiki/rust-ul-sys
max_upload_size
id121468
size302,878
Kenan Sulayman (19h)

documentation

https://docs.rs/ul-sys/latest/ul_sys/

README

ul-sys

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

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);
Commit count: 30

cargo fmt