Re: [g-a-devel] How to know where the text caret is
- From: Li Yuan <Li Yuan Sun COM>
- To: Kristian Lyngstøl <kristian bohemians org>
- Cc: Gnome-accessibility-devel gnome org
- Subject: Re: [g-a-devel] How to know where the text caret is
- Date: Thu, 07 Jun 2007 11:38:19 +0800
Hi Kristian,
You can take a look at atk documents:
http://developer.gnome.org/doc/API/2.0/atk/
Maybe atk_text_get_range_extents is what you want?
Li
On 三, 2007-06-06 at 15:29 +0200, Kristian Lyngstøl wrote:
> I'm working on improving the Zoom plugin in Comiz; giving it a few
> accessibility improvements. I want to make it able to track the
> text-caret, similar to what orca and gnome-mag does.
>
> I wish to use AT-SPI for this, and I've been experimenting with it to
> figure out how. I was hoping someone could point me in the right
> direction so I could fetch the caret position (when changed) and
> figure out where it moved in screen coordinates.
>
> So far, I've modified an existing (small) at-spi application and I've
> been able to fetch object:text-caret-moved events, which seems to give
> me the character/caret offset. If anyone could give me pointer on how
> to convert this to screen coordinates (my efforts didn't prevail), it
> would be much appreciated.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]