Changes

Jump to navigation Jump to search
Line 345: Line 345:  
===Going from Cairo in GTK-2 to Cairo in GTK-3===
 
===Going from Cairo in GTK-2 to Cairo in GTK-3===
    +
(See http://developer.gnome.org/pangomm/2.28/annotated.html for more details)
 
Not much changes, but...
 
Not much changes, but...
   Line 361: Line 362:  
PangoCairo.show_layout(cairo_context, pango_layout)
 
PangoCairo.show_layout(cairo_context, pango_layout)
 
</pre>
 
</pre>
 +
 +
The get_extents() method if different in PangoCairo. It calculates an extent as a Rectangle, but doesn't return anything. There is a method, get_logical_extents() that returns a Rectangle. Alas, it is not necessarily available after v1.16. Note that Rectangle is not a list but a class with methods for get_x(), get_y(), get_width(), and get_height(), so you cannot iter over it.
    
===Taking a screenshot and making a thumbnail===
 
===Taking a screenshot and making a thumbnail===

Navigation menu