Rewrite WMFontPanel in Rust #25

Merged
trurl merged 10 commits from trurl/wmaker:refactor/font-panel-in-rust into refactor/riir 2026-04-06 19:27:31 -04:00
10 Commits
Author SHA1 Message Date
trurl 80635c128a Rewrite WMFontPanel in Rust. 2026-04-06 19:24:08 -04:00
trurl 2a83b08f0c Add allow(non_snake_case) for WMList and WMButton FFI functions. 2026-04-05 20:44:26 -04:00
trurl c79b5853a4 Start porting the base WINGs widget type to Rust.
Porting WINGs widgets to Rust will require using some WINGs abstractions. One of them is the base widget type, which is implemented by giving all widgets a common layout (with the first two fields always being the same basic types).
2026-04-05 20:01:53 -04:00
trurl d4168b821e Reimplement the WMAddListItem macro in Rust.
This was originally a macro in C. We reimplement it as a Rust function.
2026-04-05 20:01:53 -04:00
trurl 6c72da0490 Reimplment the WMCreateCommandButton macro in Rust.
This is a macro in C, and it would be helpful to be able to do the same thing in Rust. It is simply ported over as a Rust function.
2026-04-05 20:01:53 -04:00
trurl 975089b963 Clean up bindgen invocation for WINGs somewhat.
This is still a mess, but it's not all in one big line now.

Going forward, commits that need new bindgen functions and types should put them on their own lines. That will make it easier to figure out which commit introduced the use of a given symbol.
2026-04-05 20:01:53 -04:00
trurl bf8a35e44a Name the anonymous enum for WMButton behaviors.
This is needed so that bindgen cann refer to the enum properly when generating a corresponding Rust type.
2026-04-05 20:01:53 -04:00
trurl 9933450b63 merge upstream 2026-04-05 20:01:18 -04:00
trurl 5883e0d8a3 Eliminate accidentally commited temporary file. 2026-04-05 19:57:14 -04:00
trurl 7878215c19 Fix false positive improper_ctypes warnings for structs that are opaque types from C. 2026-04-05 13:15:53 -04:00