8 个版本 (破坏性更新)

0.7.0 2023年2月11日
0.6.1 2023年2月10日
0.5.0 2022年5月17日
0.4.0 2022年5月11日
0.1.0 2022年5月2日

#456GUI

每月31次下载

MPL-2.0 许可证

92KB
1.5K SLoC

"boing" in monospaced lime-green text.

crates.io docs MPL 2.0 licensed

libui-ng-sys 的安全包装。

背景

libui 是一个 C 库,为主要的操作系统(例如,窗口、小部件)提供了对本地 GUI 技术的中立接口。 libui-nglibui 的“下一代”,独立开发和维护。 libui-ng-syslibui-ng 提供了 Rust 绑定,而 boinglibui-ng-sys 上的一个安全且相当无偏见的层。

设计与限制

请参阅 DESIGN.mdLIMITATIONS.md

用法

boing crate 从 crates.io 添加到您的 Cargo.toml

[dependencies]
boing = "0.7"

要开始使用,请参阅 boing 的 API 文档,网址为 docs.rs

Cargo 功能

功能 默认? 描述
image 启用与 image crate 的集成。
raw-window-handle 启用与 raw-window-handle crate 的集成。

项目进度

由于处于 0.x.x 版本范围,boing 是不稳定软件。请参阅 PROGRESS.md 了解实现所有 libui-ng 功能的进展。有关阻止 1.0.0 的问题的列表,请参阅问题 #2。

致谢

感谢 CryosX 贡献 macOS 截图。

另请参阅 libui-ng-sys 致谢

Windows 截图

A screenshot of the example application "libui Control Gallery" with Windows 11 widgets, focused on a tab labeled "Basic Controls". A screenshot of the example application "libui Control Gallery" with Windows 11 widgets, focused on a tab labeled "Numbers and Lists". A screenshot of the example application "libui Control Gallery" with Windows 11 widgets, focused on a tab labeled "Data Choosers".

Linux 截图

A screenshot of the example application "libui Control Gallery" with Gtk3 widgets, focused on a tab labeled "Basic Controls". A screenshot of the example application "libui Control Gallery" with Gtk3 widgets, focused on a tab labeled "Numbers and Lists". A screenshot of the example application "libui Control Gallery" with Gtk3 widgets, focused on a tab labeled "Data Choosers".

macOS 截图

A screenshot of the example application "libui Control Gallery" with macOS widgets, focused on a tab labeled "Basic Controls". A screenshot of the example application "libui Control Gallery" with macOS widgets, focused on a tab labeled "Numbers and Lists".

依赖关系

~147MB
~2.5M SLoC