Confirmed users
1,396
edits
(→Tables) |
|||
| Line 376: | Line 376: | ||
The position can be moved forward or backward in the document to the content complying the given criteria. For example, criteria can be described verbally like "move the position forward to next heading" or "move the position one word back". | The position can be moved forward or backward in the document to the content complying the given criteria. For example, criteria can be described verbally like "move the position forward to next heading" or "move the position one word back". | ||
===Accessible Position=== | |||
<pre> | <pre> | ||
| Line 382: | Line 384: | ||
interface AccessiblePos { | interface AccessiblePos { | ||
readonly attribute AccessibleElement? anchor; | readonly attribute AccessibleElement? anchor; | ||
long compare(AccessiblePos pos); | |||
boolean move(Direction dir, Filter or TextUnit rule); | boolean move(Direction dir, Filter or TextUnit rule); | ||
}; | }; | ||
</pre> | </pre> | ||
<code> | |||
AccessiblePos .''anchor'' | |||
::Returns the accessible element the position is contained by. If the position is at element then element itself. | |||
</code> | |||
<code> | |||
AccessiblePos .''compare'' | |||
::Returns -1 if the given position is before in accessible tree than this position, 0 if they are the same, 1 if the given position is after. | |||
</code> | |||
====Construction==== | ====Construction==== | ||
| Line 447: | Line 456: | ||
:::''pos'' of ''AccessiblePos'' | :::''pos'' of ''AccessiblePos'' | ||
::::accessible position to copy | ::::accessible position to copy | ||
</code> | </code> | ||
| Line 536: | Line 538: | ||
</code> | </code> | ||
===Virtual cursor=== | ===Virtual cursor=== | ||