mirror of
https://github.com/danbulant/cushy
synced 2026-06-16 04:51:17 +00:00
Debug printing widgets was quite verbose. While developing a widget, you often want to see a full debug printout, but this feature assumes that debug printing a WidgetInstance should show a summary of the widget, not a full debug printout containing cached glyph information of every label. By default, summarize just calls Debug, but this extra layer allows widgets to provide a more condensed summary and exclude details like caches. Originally, adding dbg!() around the theme example's UI yielded a whopping 20,324 lines of text. The summary code only prints 3,858 lines. |
||
|---|---|---|
| .. | ||
| animation | ||
| styles | ||
| widgets | ||
| animation.rs | ||
| context.rs | ||
| graphics.rs | ||
| lib.rs | ||
| names.rs | ||
| styles.rs | ||
| tick.rs | ||
| tree.rs | ||
| utils.rs | ||
| value.rs | ||
| widget.rs | ||
| widgets.rs | ||
| window.rs | ||