pub struct TextLink {
pub start: u32,
pub end: u32,
pub node: NodeId,
pub events: EventMask,
pub focus_stop: bool,
}Expand description
A nested <text> span with press listeners: presses on its characters
go to it rather than to the block. It is a stop of the keyboard focus
of its own (Self::focus_stop): Tab reaches it after its text view,
in text order, the platform reports FOCUSED (focus:) and Focus /
Blur for the span’s node and presses it on Return, as a view that
takes presses. A span with a hint watching it and no press listeners (a
RichEditor’s link mark) is one too, for the pointer only: its events
are MouseEnter / MouseLeave, it is no stop of Tab, and presses on
its characters go to the views around, as the platforms route only
links whose events take presses.
Fields§
§start: u32Start offset (UTF-16 units, inclusive).
end: u32End offset (UTF-16 units, exclusive).
node: NodeIdThe span’s node.
events: EventMaskIts listeners.
focus_stop: boolA stop of Tab (ViewProps::focus_stop of the span: unless
focusable={false} or disabled).