Skip to content

Commit 91a29a1

Browse files
authored
refactor!: Be opinionated about coordinates after all (#151)
1 parent c59d898 commit 91a29a1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

common/src/lib.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -667,15 +667,9 @@ pub struct Node {
667667
/// if it would be set to the identity transform, which should be
668668
/// the case for most nodes.
669669
///
670-
/// AccessKit is not opinionated about the resolution dependence
671-
/// or y direction of any coordinates; these requirements are
672-
/// ultimately determined by the platform accessibility API.
673-
/// This implies that for a tree generated by cross-platform code,
674-
/// a platform-specific layer between that cross-platform code
675-
/// and the AccessKit platform adapter must add an appropriate transform to
676-
/// the root node. However, AccessKit expects the final transformed
677-
/// coordinates to be relative to the origin of the tree's container
678-
/// (e.g. window).
670+
/// AccessKit expects the final transformed coordinates to be relative
671+
/// to the origin of the tree's container (e.g. window), in physical
672+
/// pixels, with the y coordinate being top-down.
679673
///
680674
/// [`bounds`]: Node::bounds
681675
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]

0 commit comments

Comments
 (0)