egui/crates/epaint/src
valadaptive 54fded362d
Clamp text cursor positions in the same places where we used to (#7081)
Closes #7077.

This fixes the problem shown in #7077 where clearing a `TextEdit`
wouldn't reset its cursor position. I've fixed that by adding back the
`TextCursorState::range` method, which clamps the selection range to
that of the passed `Galley`, and calling it in the same places where it
was called before #5785.

(/cc @juancampa)

* [x] I have followed the instructions in the PR template
2025-06-16 01:53:00 +02:00
..
shapes Add anchored text rotation method, and clarify related docs (#7130) 2025-06-16 01:42:01 +02:00
text Clamp text cursor positions in the same places where we used to (#7081) 2025-06-16 01:53:00 +02:00
util Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
brush.rs Add `epaint::Brush` for controlling `RectShape` texturing (#5565) 2025-01-02 15:34:28 +01:00
color.rs Added ability to define colors at UV coordinates along a path (#4353) 2024-04-22 18:35:09 +02:00
corner_radius.rs ⚠️ Rename `Rounding` to `CornerRadius` (#5673) 2025-02-04 12:53:18 +01:00
corner_radius_f32.rs ⚠️ Rename `Rounding` to `CornerRadius` (#5673) 2025-02-04 12:53:18 +01:00
image.rs Track original SVG size (#7098) 2025-05-28 08:33:01 +02:00
lib.rs Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
margin.rs Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
margin_f32.rs Rename `Marginf` to `MarginF32` for consistency with `CornerRadiusF32` (#5677) 2025-02-11 11:23:59 +01:00
mesh.rs Add assert messages and print bad argument values in asserts (#5216) 2025-03-25 09:20:29 +01:00
mutex.rs Fix some clippy issues found by 1.84.0 (#5603) 2025-01-13 08:29:13 +01:00
shadow.rs Rename `Marginf` to `MarginF32` for consistency with `CornerRadiusF32` (#5677) 2025-02-11 11:23:59 +01:00
shape_transform.rs Optimize editing long text by caching each paragraph (#5411) 2025-04-01 18:55:39 +02:00
stats.rs Optimize editing long text by caching each paragraph (#5411) 2025-04-01 18:55:39 +02:00
stroke.rs Make text underline and strikethrough pixel perfect crisp (#5857) 2025-03-28 20:37:38 +01:00
tessellator.rs Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
texture_atlas.rs Add assert messages and print bad argument values in asserts (#5216) 2025-03-25 09:20:29 +01:00
texture_handle.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
textures.rs Add support for mipmap textures. (#5146) 2024-09-22 19:16:16 +02:00
viewport.rs Refactor: put each shape into its own file (#5564) 2025-01-02 14:55:49 +01:00