Re: Window and screen coordinates
- From: Bill Haneman <Bill Haneman Sun COM>
- To: gnome-accessibility-list gnome org, Oisin Boydell Sun COM
- Subject: Re: Window and screen coordinates
- Date: Mon, 28 May 2001 14:41:07 +0100 (BST)
>In functions such as atk_text_get_character_extents() that return position
>coordinates, how about adding another parameter which can be an enumeration
>specifying whether the returned coordinates are relative to the window or to the
>screen? The parameter could be either SCREEN or WINDOW.
>This would clear up any ambiguity concerning what coordinates the function is
>returning and remove the need to have two functions such as in AtkComponent with
>atk_component_get_position() and atk_component_get_position_on_screen().
Sounds feasible. However I don't see a big advantage over keeping the current API,
which corresponds to the Java Accessibility API.
The primary use cases for the coordinate info are magnifiers (which will always prefer
screen, not window, coordinates), and determining whether text is obscured by another
object (Z-ordering), also a case where screen coords are ultimately what is desired.
Bill Haneman x19279
Gnome Accessibility / Batik SVG Toolkit
Sun Microsystems Ireland
] [Thread Prev