+
+ if (editing) {
+ Pango::Rectangle cursor = _layout->get_cursor_strong_pos (edit_string.length() - input_string.length() - 1);
+ cerr << "index at " << edit_string.length() - input_string.length() - 1
+ << " cursor at " << cursor.get_x()/PANGO_SCALE << ", " << cursor.get_y()/PANGO_SCALE
+ << " " << cursor.get_width()/PANGO_SCALE
+ << " .. " << cursor.get_height()/PANGO_SCALE
+ << endl;
+ cairo_set_source_rgba (cr, 0.9, 0.1, 0.1, 0.3);
+ cairo_rectangle (cr, 6 + cursor.get_x()/PANGO_SCALE, cursor.get_y()/PANGO_SCALE,
+ 10, cursor.get_height()/PANGO_SCALE);
+ cairo_fill (cr);
+ }