cushy/src
Jonathan Johnson 0e6796318b
Added Widget::summarize
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.
2023-12-03 06:40:19 -08:00
..
animation LayoutContext 2023-11-05 11:50:59 -08:00
styles Added font size + heading helpers 2023-11-28 10:14:55 -08:00
widgets Added Widget::summarize 2023-12-03 06:40:19 -08:00
animation.rs run_in_bg and Dynamic<&'static str> 2023-11-27 09:27:37 -08:00
context.rs Small improvements 2023-12-01 12:52:46 -08:00
graphics.rs Small improvements 2023-12-01 12:52:46 -08:00
lib.rs More fluent APIs 2023-11-22 05:54:35 -08:00
names.rs Added Widget::summarize 2023-12-03 06:40:19 -08:00
styles.rs Added Widget::summarize 2023-12-03 06:40:19 -08:00
tick.rs Finished mouse handling for tile map 2023-11-26 19:31:03 -08:00
tree.rs Added Collapse widget 2023-11-22 15:46:58 -08:00
utils.rs Fixing MacOS compilation 2023-11-28 07:06:12 -08:00
value.rs Added Widget::summarize 2023-12-03 06:40:19 -08:00
widget.rs Added Widget::summarize 2023-12-03 06:40:19 -08:00
widgets.rs Implemented a basic grid 2023-11-30 18:19:53 -08:00
window.rs Small improvements 2023-12-01 12:52:46 -08:00