ZIm/crates/gpui2
Nathan Sobo 2fb13cf1ca
Separate WrappedLines from ShapedLines (#3350)
ShapedLines are never wrapped, whereas WrappedLines are optionally
wrapped if they are associated with a wrap width. Originally, when
rewriting GPUI, I tried to combine everything because wrapping is
inherently optional for the Text element, but we have a bunch of APIs
that don't make sense on a line that may wrap, so we need a distinct
type for that case.

This is a precursor to implementing clickable links in markdown. I
noticed multiple places where we were confused about whether or not the
line was wrapped so this felt important.

Release Notes:

- N/A
2023-11-16 23:20:35 -07:00
..
docs Document contexts 2023-11-14 19:52:51 -07:00
src Separate WrappedLines from ShapedLines (#3350) 2023-11-16 23:20:35 -07:00
tests Re-implement actions as derive macros instead of blanket impls 2023-11-16 17:32:02 -08:00
build.rs Tooltips in mouse event handler & fix executor timer 2023-11-03 18:02:58 -04:00
Cargo.toml Salvage old distributed slice code 2023-11-16 10:32:55 -08:00