Skip to main content

move_announcement

Function move_announcement 

Source
pub fn move_announcement(
    name: Option<&str>,
    destination: usize,
    count: usize,
) -> String
Expand description

The one utterance a completed move makes.

name is what the moved thing is called, where the widget knows: a row’s text, a tab’s title, a column’s header. Where it does not, the position alone is still worth saying — a screen-reader user who pressed Alt+Down otherwise hears nothing at all and cannot tell a refused move from a successful one.

Positions are 1-based, because that is what every adapter announces for pos_in_set and a user hearing “moved to 0 of 12” would be right to be confused.