GtkEntry character offsets



Gtk Experts:

One more question about GtkEntry.  There are two ATK functions
that I need to implement that seem to be unsupported for GtkEntry
and GtkLabel.

The first is get_character_extents() which returns the x,y coordinates
of a particular character as well as the length & width of the character.
This was implemented for GtkTextView using the
gtk_text_view_get_iter_location() and
gtk_text_view_buffer_to_window_coords() functions.

The second is get_offset_at_point() which returns the offset at an
x,y coordinate.  This was implemented for GtkTextView using the
gtk_text_view_window_to_buffer_coords(), and the
gtk_text_view_get_iter_at_location() functions. 

However, similiar functions aren't available for GtkLabel and GtkEntry.
Any ideas?

Brian





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