cushy/examples
Jonathan Johnson 6b8e5f886b
Update scroll example + work around cosmic_text
I decided scrolling a label would work better, so I loaded a source file
and noticed it wasn't rendering quite right in the label. It turns out
that the text wrapping was triggering despite the width in redraw being
the same as the measured amount. In short: sometimes the width I measure
can't be the width I set as the cosmic_text::Buffer size, because it
will cause it to wrap.

I've worked around it by caching the measured text for now. But it may
still show up in other situations and may require a more generalized
fix by seeing what else we can gleam from the glyphs being measured.
2023-11-01 15:43:56 -07:00
..
animation.rs Scroll and Animations 2023-11-01 15:15:14 -07:00
button.rs Documentation 2023-10-30 21:12:04 -07:00
canvas.rs Documentation 2023-10-30 21:12:04 -07:00
counter.rs Scroll and Animations 2023-11-01 15:15:14 -07:00
input.rs Documentation 2023-10-30 21:12:04 -07:00
scroll.rs Update scroll example + work around cosmic_text 2023-11-01 15:43:56 -07:00
style.rs Renamed Array to Stack 2023-10-30 21:41:14 -07:00
tilemap.rs Documentation 2023-10-30 21:12:04 -07:00