jeremyletang / rgtk

GTK+ bindings and wrappers for Rust (DEPRECATED SEE https://github.com/rust-gnome )
GNU Lesser General Public License v3.0
120 stars 22 forks source link

Make a wrapper for cairo_rectangle_list_t #204

Closed gkoz closed 9 years ago

gkoz commented 9 years ago

Add RectangleVec and return it from cairo::Context::copy_clip_rectangle_list. This avoids using CVec::new_with_dtor and dealing with Send.

I understand the deal with c_vec better now and have an idea for a more flexible version but this should do for now.

GuillaumeGomez commented 9 years ago

Nice ! Thanks !