Commit Graph
27 Commits
Author SHA1 Message Date
aiongg bcdeb7bb82 egui: a part's records hold the widgets a sizing pass registered first; no empty shapes or sizing widgets
A visible Ui's registration of a widget that only invisible (sizing-pass) Uis registered so far replaces the widget
rect and takes its place at the top of its layer. Widget rects carry when they took their place, and
pass_records_since finds a part's widgets by it, so a part holds the widgets a sizing pass registered before its
mark. Records leave out Shape::Noop shapes, layers left empty, and widgets neither visible nor enabled.
PassRecords::shifted gives the records as a replay at a RecordShift adds them. Ui::new disables before it registers
its widget, as new_child does.
2026-11-19 20:37:50 +00:00
aiongg 2d59bcacf2 egui: replay pass records at another place (RecordShift)
replay_pass_records takes a RecordShift: shapes, widget rects and AccessKit bounds move by its
offset in layer space; a clip rect equal to the clip the part ran under becomes the new clip, and
one set inside the part moves with it, cut by the new clip. PassRecords::paints_callback says
whether records hold a paint callback, which a replay adds only where it was made.
2026-11-19 15:58:17 +00:00
aiongg 7e1c30d142 egui: pass records keep a stable layer order; a paint callback cannot be compared
`pass_records_since` gives shapes and widget rects with their layers sorted by order and id, since the maps they
come from have no stable order. `first_difference` reports a paint callback on either side as
`PassRecordsDiff::Callback`: a backend wraps every callback in one type, so neither its type nor its rect tells
whether two callbacks paint the same. Its doc says what the records cover and what they don't, and `Display` shows
the variant, index and rects only. PATCHES.md lists the pass records (E36), `HarnessBuilder::with_context` (E37) and
this comparison (E38).
2026-11-19 07:52:46 +00:00
aiongg 96ccc118b8 egui: PassRecords::first_difference names the first record two pass records differ in
Shapes layer by layer, then widget rects, AccessKit nodes and AccessKit parents compare with `==`, except a paint
callback, which compares by its rect and its callback's type: each run makes a new callback, and `PaintCallback`'s
`PartialEq` compares the callback by pointer. `PassRecordsDiff` gives the kind, the index and the record on each side.
2026-11-19 07:38:02 +00:00
aiongg 5d6f991d51 egui: Context::widget_rect_last_pass reads a widget's rect from the last finished pass 2026-11-14 23:39:00 +00:00
aiongg dcd4de1fbc egui: a Popup stays directly above the layer it opened from; sublayers nest, and a listed layer moves with its whole sublayer tree
Popup::show makes its area a sublayer of the layer it opened from when both share an Order (tooltips aside). Areas::end_pass follows each layer with its whole sublayer tree, depth first, and set_layer_order moves a listed layer with all of its unlisted descendants.
2026-11-13 17:48:36 +00:00
aiongg 8026738cf6 egui: Event::SystemTheme reports the OS's light or dark preference when the integration first knows it and on each change
egui-winit sends it from State::new and on WindowEvent::ThemeChanged; eframe web
at start and on the prefers-color-scheme change. RawInput::system_theme keeps
the same value; the event is the change notice.
2026-11-13 16:38:56 +00:00
aiongg 620ee205d4 PATCHES.md: E32 retired IME reset requests 2026-11-13 16:14:52 +00:00
aiongg 42e34e2acf egui: Memory::set_focus_surrender, a focused widget's own rule for a press or click elsewhere 2026-11-12 08:50:16 +00:00
aiongg 5493e3aab8 PATCHES.md: E30, the kittest eframe harness runs raw_input_hook 2026-11-12 08:20:27 +00:00
aiongg 463fff0569 egui: set_layer_order moves unlisted sublayers with their listed parent 2026-11-06 22:35:07 +00:00
aiongg 7de8579080 egui: make Context::register_accesskit_parent public 2026-11-06 22:33:42 +00:00
aiongg 8b98271554 egui: Context::set_layer_order 2026-11-06 22:33:12 +00:00
aiongg 35a72e6b78 egui: let a popup swallow the press outside it 2026-10-31 10:28:48 +00:00
aiongg 94a2ac9917 egui: DragAndDrop::aborted_by_escape 2026-10-28 21:41:44 +00:00
aiongg b1f17dc995 egui: give each pointer press to the widget under the press position 2026-10-28 21:41:44 +00:00
aiongg d1316b802e egui: Context::set_accesskit_focus 2026-10-28 21:41:44 +00:00
aiongg c2d3a8f35b egui: accessible names for ScrollArea scroll bars
Add ScrollArea::horizontal_scroll_bar_label and vertical_scroll_bar_label.
The scroll bar AccessKit node had no name, which fails WCAG 4.1.2. The
labels are per axis because a name cannot be composed from a shared
string in every language, and egui has no built-in UI text.
2026-10-28 19:38:15 +00:00
aiongg d46b817e4f egui: make Response::describe_for_accessibility public 2026-10-28 12:53:28 +00:00
aiongg 0048c06a81 End a TextEdit's composition when a new IME context starts
A composition belongs to the focused IME context it began in. An editor
that comes back after a pass it was not shown in, or gains the focus,
starts a new context; its old composition ends there, the pre-edit text
kept in the buffer as typed and the cursor at its end. `preedit()` is
then `None`, so a widget wrapping `TextEdit` no longer sees stale
marked text in a field refocused in the pass it reappears.
2026-10-28 11:42:23 +00:00
aiongg 8f0cc50da6 Add TextEditState::preedit
The IME composition under way: the character range of the pre-edit
(marked) text in the buffer and that text, or `None` when nothing is
composing. While composing, the buffer holds the marked text beside the
committed text; a widget that wraps a `TextEdit` and reports only
committed text removes this range, and shows the same buffer in the next
pass so the composition goes on.
2026-10-28 11:10:19 +00:00
skylartaylor 173cc7375d Complete egui 0.37 text, IME and Wayland clipboard integration 2026-10-24 05:19:03 +02:00
aiongg a4f9a17f64 PATCHES.md: E12 bidi controls 2026-10-21 21:37:34 +00:00
aiongg a7bc087cf4 PATCHES.md: E4 2026-10-21 18:09:55 +00:00
aiongg 137398e64e Patch winit to aiongg/winit craft/0.30.13-lang
storytold/winit craft/0.30.13 (W1–W15) with the language-support
patches on top (W17–W27). It has the same IME, Latin-layout and
delete-surrounding APIs as craft/suite, and W15's Wayland clipboard
(platform::wayland::Clipboard) that E4 uses.
2026-10-21 18:09:19 +00:00
aiongg aa1ba0b4b4 Merge craft/latin-letter-keys 2026-10-21 18:01:29 +00:00
aiongg 9797278bf6 PATCHES.md: the suite's patch list 2026-10-21 17:57:38 +00:00