4 Commits
Author SHA1 Message Date
cnmcdee 4912457fd3 C5: XLFD font resolution skips two-byte fonts; labels no longer vanish at size 16
A wildcard XLFD pattern can match a two-byte font first (e.g. a JIS
fixed font at size 16, which has no misc twin). XDrawString with
1-byte Latin text draws nothing with such a font, so widget labels
vanished whenever the font size resolved to one (size 16 confirmed:
JIS min_byte1=33; Sony and misc 1-byte fonts render fine). Both
font-resolution paths now list every match per pattern and return
the full XLFD name of the first single-byte font
(min_byte1 == max_byte1 == 0): font_xlfd_for (designer canvas) and
the emitted lightgui_pick_font helper (generated apps). Also silences
the -Wmissing-field-initializers warning on the Placed aggregate init
and adds the missing <cstdio> include to the shared core header.
2026-11-30 08:08:49 +00:00
cnmcdee c03f16374c Phase 1 C1: widget setters for Inspector live-apply
ComboBox/ComboBoxText/ListBox set_items (pipe-separated, live canvas
only; generator keeps emitting per-item calls); ListBox multi-select
(set_multi_select, toggle on click, draw highlights the set);
Scrollbar lower_ + page_increment_ (clamp/thumb/Home/End honour lower,
PgUp/PgDn use page-increment); Entry password_ + show_password_ (masked
with * unless revealed); MenuButton direction_ (0=Up 1=Down 2=Left
3=Right 4=None, arrow zone moves to the matching side); TextView
cursor_visible_ (gates the caret). Shared core gains
SStyle_Manager::add_widget_style (per-widget style clone that owns its
font, so delete_style is safe on it; unlike add_border_style, which
shares the base font) and xf::draw_triangle_left.
2026-11-30 05:30:51 +00:00
cnmcdee 3ed3f57151 XFrame border: per-widget border style via the place file
- SStyle_Manager::add_border_style clones the base style and overrides
  only the border fields (line colour, radius, line width) when set;
  unset fields keep the style defaults (radius 6, 1px dark-grey
  outline), so existing widgets look identical.
- IWidget::set_style_name (pure virtual, forwarded by Holder<T>) lets
  the layout give a placed widget its own border style.
- Place file extended (backwards compatible): x y [width color radius];
  a bare old-format x y still places with the default border.
- Placed records the border; write_state reports border=<w> <color> <r>.
- Designer: the XFrame placement border is set in the Inspector Window
  (Root) view (the designer cannot show an XFrame widget in its
  Inspector) and written into the place file on canvas click.
- Verified: place file 512 360 3 #ff0000 10 -> layout state
  border=3 #ff0000 10, 1072 red pixels drawn.
2026-11-29 19:54:09 +00:00
cnmcdee 77a5edfe2c Merge expanded widget set: 547 XFrame widgets, combined palette (583), layout, docs 2026-11-29 03:38:35 +00:00