[cairo] What is the equivalent function of cairo_region_create_rectangle

Abhinav Upadhyay er.abhinav.upadhyay at gmail.com
Tue May 3 05:47:01 PDT 2011


Hi,

I am trying to port a piece of code from Gtk2.0 to Gtk 3.0. Previously
it was using the GdkRegion functions (namele Gdk.region_rectangle())
but the GdkRegion API has been replaced with cario_region_t API in Gtk
3.x.  (http://developer.gnome.org/gtk3/3.0/ch25s02.html#id1280890).

As per the above link I should be replacing the Gdk.region_rectangle
function with the equivalent of cairo_region_create_rectangle in
Python. I could not find any help related to this easily in the
documentation so I am asking here.

What should I be doing to achieve the equivalent of
cairo_region_create_rectangle() ?

Thanks
Abhinav


More information about the cairo mailing list