Module hit_test

Source
Expand description

Text and code-zone hit testing. Screen-point hit testing for text and code-editor zones.

Structs§

EditorHitTest
Hit-test result in UTF-8 byte coordinates.
EditorZoneHitTest
Hit result including semantic zone and source byte.

Enums§

EditorHitZone
Semantic editor area containing a hit point.

Functions§

byte_at_point
Maps a screen point to the closest visible run’s UTF-8 source byte.
zone_byte_at_point
Classifies gutter/text/outside before resolving the nearest byte.