Bug 31111

Summary: wrap cairo_rectangle_int_t
Product: pycairo Reporter: John (J5) Palmieri <johnp>
Component: generalAssignee: Steve Chaplin <d74n5pohf9>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: wrap cairo_rectangle_int_t
wrap cairo_rectangle_int_t

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.