【文件属性】:
文件名称:libui_win:Windows版LibUI
文件大小:74KB
文件格式:ZIP
更新时间:2021-05-12 23:14:37
C++
Windows版LibUI
这是Windows上LibUI的示例实现,遵循LibUI的要求,以实现在创建GDI应用程序时与windows.h API连接所需的适配器。
示例项目具有一个SimpleMenu类,用于运行简单菜单。 实现的适配器如下:
adapters::ContextAdapter
完成ui::Context的逻辑。
adapters::JoystickAdapter
键盘输入将替代5路开关输入:
向上箭头:向上
向下箭头:向下
左箭头:左
向右箭头:向右
输入:选择
其他任何键:空闲(虚拟输入。无实际用法)
adapters::ScreenAdapter
在应用程序屏幕中绘制。 添加了两个参数: offset_x , scaling
adapters::BatteryMeterAdapter
一个虚拟适配器,总是返回9.9f的电压。
编译中
您需要从L
【文件预览】:
libui_win-master
----libui.ico(159KB)
----inc()
--------adapters()
--------simple_menu.h(511B)
----descriptor.rc(587B)
----screenshot.png(3KB)
----src()
--------simple_menu.cpp(4KB)
--------main.cpp(540B)
--------adapters()
----manifest.res(161KB)
----.gitignore(97B)
----CMakeLists.txt(820B)
----README.md(1KB)
----libui_logo_trim.png(3KB)