Re: [g-a-devel]atk_image_get_image_position



On Fri, 2002-05-03 at 10:40, Padraig O'Briain wrote:
> Bill,
> 
> For button, we implement the AtkImage on the button rather than exposing the 
> GtkImage itself. In this case the position returned by 
> atk_image_get_image_position() will be the position of the image.
> 
> The other GAIL objects which implement AtkImage are GaiklArrow, GailImage, 
> GailImageCell and GailPixmap. For these I would expect that the position 
> returned by atk_image_get_image_position() would be the same as that returned by 
> atk_component_get_position().

Sounds right to me, in cases where the two are, actually, coincident.

> Padraig
> 
> > Subject: Re: [g-a-devel]atk_image_get_image_position
> > To: "Padraig O'Briain" <Padraig Obriain sun com>
> > Cc: gnome-accessibility-devel gnome org
> > Content-Transfer-Encoding: 7bit
> > Mime-Version: 1.0
> > 
> > On Fri, 2002-05-03 at 08:54, Padraig O'Briain wrote:
> > > I am trying to figure out what this function should return and whether it 
> should 
> > > differ from atk_component_get_position. Currently we do not have any 
> > > implementation for this function in GAIL. Should this function return the 
> same 
> > > value as atk_component_get_position()?
> > 
> > No, it should return the position of the contained image rather than the
> > host component position.  So if there's an icon on a button, the icon's
> > position (and extents, size, etc.) should be returned using the same
> > coord type rules, etc. as for component.  Generally that means that
> > image_position.x >= component_position.x, etc.
> > 
> > -Bill
> > 
> > > Padraig
> > > 
> > > _______________________________________________
> > > Gnome-accessibility-devel mailing list
> > > Gnome-accessibility-devel gnome org
> > > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
> > 
> > 
> 
> _______________________________________________
> Gnome-accessibility-devel mailing list
> Gnome-accessibility-devel gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel





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