Re: Window and screen coordinates

>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().
>Any comments?

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 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]