last visible word in a Gtk2::TextView



Hi All,

How do I determine the last visible word in a Gtk2::TextView ? I think I can get to the last visible line as follows:

my $rect = $textview->get_visible_rect();

my $iter = $textview->get_line_at_y($rect->y + $rect->height);

but I'm not sure how to get to the last word on the line. Also, what is the 'line_top' returned by get_line_at_y ?

-James




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