Bug 31111 - wrap cairo_rectangle_int_t
Summary: wrap cairo_rectangle_int_t
Status: RESOLVED NOTOURBUG
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 14:57 UTC by John (J5) Palmieri
Modified: 2011-03-27 16:30 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
wrap cairo_rectangle_int_t (4.03 KB, patch)
2010-10-25 14:57 UTC, John (J5) Palmieri
Details | Splinter Review
wrap cairo_rectangle_int_t (10.21 KB, patch)
2010-10-26 11:00 UTC, John (J5) Palmieri
Details | Splinter Review

Description John (J5) Palmieri 2010-10-25 14:57:39 UTC

    
Comment 1 John (J5) Palmieri 2010-10-25 14:57:42 UTC
Created attachment 39766 [details] [review]
wrap cairo_rectangle_int_t
Comment 2 John (J5) Palmieri 2010-10-26 11:00:51 UTC
Created attachment 39792 [details] [review]
wrap cairo_rectangle_int_t
Comment 3 Steve Chaplin 2010-11-01 04:46:58 UTC
Why wrap cairo_rectangle_int_t ?
Comment 4 John (J5) Palmieri 2010-11-02 08:41:55 UTC
We need it for Gtk.  Gtk, uses cairo_rectangle_int_t to specify things such as expose reasons.  This used to be in Gdk but since we moved our entire drawing system to cairo it was decided to use the cairo structure.
Comment 5 Steve Chaplin 2010-11-20 23:01:19 UTC
I cannot see any need to expose cairo_rectangle_int_t in pycairo.
Pycairo already has rectangle functions and a Python 4-tuple works fine. If GTK needs cairo_rectangle_int_t then I suggest you place the relevant code directly into GTK and keep the code local to where it is used.
Comment 6 John (J5) Palmieri 2010-11-22 08:46:24 UTC
I will accept this if you can guarantee me that any cairo methods that take or return a cairo_rectangle_int_t are wrapped to accept or return a 4 item python sequence (tuple in most cases).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.