create: 低消耗、跨平台、多语言时选 FLTK 1.4
MemRelay-Operation: memory-save:uiframe-decision-20261120-fltk MemRelay-Resource: 170291d5-cd66-4832-8c59-770c4de3038d
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
title: 低消耗、跨平台、多语言时选 FLTK 1.4
|
||||||
|
type: decision
|
||||||
|
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/低消耗、跨平台、多语言时选-fltk-1.4
|
||||||
|
stable_id: 170291d5-cd66-4832-8c59-770c4de3038d
|
||||||
|
scope: project
|
||||||
|
memory_type: decision
|
||||||
|
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 1
|
||||||
|
request_id: uiframe-decision-20261120-fltk
|
||||||
|
created_at: '2026-11-20T15:14:57.304985+00:00'
|
||||||
|
updated_at: '2026-11-20T15:14:57.304985+00:00'
|
||||||
|
tags:
|
||||||
|
- ui
|
||||||
|
- fltk
|
||||||
|
- decision
|
||||||
|
---
|
||||||
|
|
||||||
|
在低消耗、跨平台、Python/Go/Rust 三者同时成立时选 FLTK 1.4。
|
||||||
|
|
||||||
|
原因:
|
||||||
|
- 低消耗:Fedora 44 空窗口 PSS 2.6 MiB,同机 Qt 6 Widgets 为 17.7 MiB,约 6.8 倍。静态链接后体积约 1 MB,空闲停在事件循环。
|
||||||
|
- 跨平台:FLTK 1.4.5(2026-04)覆盖 Windows、macOS(到 Tahoe)、Linux。Linux 默认 X11/Wayland 混合,有 Wayland 就用 Wayland,否则回退 X11。支持 HighDPI。Windows 和 macOS 运行不带额外 GUI 运行时;Linux 依赖系统的 X11/Wayland、libdecor、OpenGL 等。
|
||||||
|
- 多语言:pyfltk 1.4.5(2026-05)、fltk-rs 1.5、go-fltk。2026-05-22 的 go-fltk 锁定 FLTK 1.4.5,许可 MIT。go-fltk 是部分包装,API 按使用需求补,构建需要 C++ 编译器。
|
||||||
|
|
||||||
|
接受的上限:自绘传统控件,系统原生外观、虚拟化大列表和辅助功能弱于 Qt/GTK。没有移动端。
|
||||||
|
|
||||||
|
条件变化时:界面要系统原生外观、完整控件和无障碍,低消耗让位,改选 Qt 6。可以不覆盖 Go 时,重界面内存更低的是 Slint。
|
||||||
|
|
||||||
|
尚未写代码。
|
||||||
Reference in New Issue
Block a user