ltk::text_edit

Function password_toggle_hit_zone

Source
pub fn password_toggle_hit_zone(rect: Rect) -> Rect
Expand description

Hit rect for the eye icon at the right edge of a TextEdit configured with TextEdit::password_toggle. Returned in the same coordinate space as the field’s rect. Pointer / touch dispatch consult this before falling through to cursor placement — a tap inside the zone fires the toggle message instead of moving the caret.