[Mono-bugs] [Bug 616121] New: Need to be able to construct CGContext from IntPtr to implement layer drawing

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 21 19:44:58 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=616121

http://bugzilla.novell.com/show_bug.cgi?id=616121#c0


           Summary: Need to be able to construct CGContext from IntPtr to
                    implement layer drawing
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: fak at kruegersystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:

CGContext has these constructors:

public class CGContext : IDisposable, INativeObject
    // Constructors
    internal protected CGContext (IntPtr handle);
    internal protected CGContext (IntPtr handle, bool owns);

We *really* need to be able to construct CGContexts using an IntPtr so that we
can implement the function:

drawLayer:inContext:

That function is needed by ScrollView implementations to properly handle zoomed
content:

http://developer.apple.com/iphone/library/documentation/WindowsViews/Conceptual/UIScrollView_pg/ZoomZoom/ZoomZoom.html#//apple_ref/doc/uid/TP40008179-CH102-SW9

There is also the CALayer function:

drawInContext:

needed to do high-perf animations.

http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004500-CH1-SW25

http://developer.apple.com/mac/library/documentation/cocoa/conceptual/CoreAnimation_guide/Articles/ProvidingCALayerContent.html

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list