GtkEntry And AtkText
- From: "Padraig O'Briain" <Padraig Obriain sun com>
- To: marc mulcahy sun com
- Cc: gnome-accessibility-list gnome org
- Subject: GtkEntry And AtkText
- Date: Thu, 26 Apr 2001 14:06:04 +0100 (BST)
Marc,
The current position in a GtkEntry is obtainable as the property
"text_position". This is the current position of the insertion point.
We could probably implement interfaces when AtkTextBoundary is
ATK_TEXT_BOUNDARY_CHAR or ATK_TEXT_BOUNDARY_CURSOR_POS but it is likely to be
more challenging for the other text boundary values.
I am not sure why there is a reference to GtkText as I under that it was
deprecated and we were not going to support it.
Padraig
>
> >GtkEntry Notes
> >I attempted to implement what I could of AtkText interface for GtkEntry. I
> >have
> >not implemented the following, mostly because I could not figure out how to.
> >Will some of these be required?
> >
> >get_text_after_offset
> >get_text_at_offset
> >get_character_at_offset
> >get_text_before_offset
> >get_row_col-at_offset
> >get_range_attributes
> >get_character_extents
> >get_character_count
> >get_offset_at_point
> ***
> It may be that there is no way to get the current offset from the public
> API-- we had to grab it from the GtkEditable structure. Check with
> gtk-devel on this one. To grab the text from a position to the end of the
> text, use -1 as the ending offset. Their is no external way in GtkText to
> get line information, so you'd have to do something with the internal
> members of the structure. I think this is all changing in GTK+ 2.0.
> ***
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]