Neil Roberts
d151d789f6
clutter-text: Use the ink rect in the paint volume
...
Previously ClutterText was just reporting the allocation as the paint
volume. The preferred size of a ClutterText is just the logical
rectangle of the layout. A pango layout can sometimes draw outside of
its logical rectangle for example with an italicised font with large
serifs. Additionally, ClutterText doesn't make any attempt to clip the
text if the actor gets allocated a size too small for the text so it
would also end up drawing outside of the paint volume in that case. To
fix this, the paint volume is now reported as the ink rect of the
Pango layout. The rectangle for the cursor and selection is also
unioned into that because it won't necessarily be within the ink
rectangle.
The function for drawing the selection rectangles has been split up
into a generic function that calculates the rectangles that need to be
drawn and a function that draws them. That way the get_paint_volume
virtual can share the code to calculate the rectangles.
http://bugzilla.clutter-project.org/show_bug.cgi?id=2599
2011-06-10 14:02:07 +01:00
..
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-04-18 16:24:27 +01:00
2011-06-09 15:28:39 +01:00
2011-06-07 14:39:01 +01:00
2011-05-06 15:44:08 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2010-10-25 23:44:53 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-04-01 15:36:22 +01:00
2011-01-20 16:35:26 +00:00
2011-03-03 11:47:49 +00:00
2009-01-20 16:42:49 +00:00
2010-10-18 11:26:44 +01:00
2011-04-16 10:22:01 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-04-11 17:54:36 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-01-20 13:29:37 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 13:29:37 +00:00
2011-03-03 11:47:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-25 11:14:37 +00:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-01-20 16:35:26 +00:00
2011-01-20 16:35:26 +00:00
2011-06-07 14:43:52 +01:00
2011-03-08 19:27:07 +00:00
2011-05-06 15:06:06 +01:00
2011-05-06 15:06:06 +01:00
2011-03-03 11:47:49 +00:00
2011-06-09 15:12:41 +01:00
2011-06-09 15:12:41 +01:00
2011-05-13 01:46:32 +01:00
2010-11-11 13:14:23 +00:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-03-03 11:47:49 +00:00
2011-02-16 14:11:59 +00:00
2011-01-19 14:33:27 +00:00
2011-03-01 19:04:31 +00:00
2011-02-15 12:40:12 +00:00
2011-02-11 16:45:45 +00:00
2011-03-07 13:26:20 +00:00
2011-03-03 11:47:49 +00:00
2010-11-18 18:23:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-01-28 18:19:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-21 10:25:43 +00:00
2011-03-21 12:41:40 +00:00
2011-03-09 14:21:01 +00:00
2011-05-13 01:46:31 +01:00
2011-05-13 01:46:32 +01:00
2011-05-13 01:46:32 +01:00
2011-02-28 14:16:23 +00:00
2011-01-21 10:25:43 +00:00
2011-01-21 10:25:43 +00:00
2011-06-07 16:06:24 +01:00
2011-06-09 15:40:26 +01:00
2010-10-21 12:22:17 +01:00
2010-12-10 17:15:39 +00:00
2011-05-13 01:46:32 +01:00
2011-05-13 01:46:32 +01:00
2011-03-03 11:47:49 +00:00
2010-11-17 16:19:10 +00:00
2011-01-20 13:29:37 +00:00
2011-05-26 08:48:13 -04:00
2011-02-18 15:53:27 +00:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2010-12-02 09:53:00 +00:00
2011-02-28 14:16:24 +00:00
2010-12-02 09:53:00 +00:00
2010-10-18 11:26:45 +01:00
2010-12-09 12:36:50 +00:00
2011-01-10 21:22:22 +00:00
2011-05-16 16:04:27 +01:00
2011-02-28 14:10:05 +00:00
2011-06-09 15:12:41 +01:00
2010-11-17 16:19:10 +00:00
2011-06-02 22:16:45 +02:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-02-28 14:34:36 +00:00
2011-05-20 13:27:01 +02:00
2011-02-28 14:34:36 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-03-07 13:26:20 +00:00
2011-06-02 21:02:11 +01:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2010-10-21 12:22:17 +01:00
2011-06-07 16:06:24 +01:00
2011-05-13 01:46:32 +01:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2010-10-19 01:42:19 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-09 14:43:34 +01:00
2011-01-20 16:35:26 +00:00
2011-06-07 14:09:53 +01:00
2011-06-07 14:09:53 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2010-10-21 13:13:00 +01:00
2010-10-21 11:30:19 +01:00
2011-05-06 17:47:41 +01:00
2011-04-11 15:28:53 +01:00
2011-04-11 15:28:53 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-02-19 16:47:20 +00:00
2011-06-10 14:02:07 +01:00
2011-06-07 16:06:24 +01:00
2011-05-13 01:46:32 +01:00
2010-11-18 18:23:49 +00:00
2011-03-03 11:47:49 +00:00
2011-01-24 11:52:47 +00:00
2010-11-17 16:19:10 +00:00
2010-11-17 16:19:10 +00:00
2011-02-15 12:40:11 +00:00
2011-02-15 12:40:11 +00:00
2011-06-07 14:09:53 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-01-19 14:33:27 +00:00
2011-05-13 01:46:32 +01:00