[Mono-bugs] [Bug 616121] Need to be able to construct CGContext from IntPtr to implement layer drawing
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jun 24 13:00:53 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=616121
http://bugzilla.novell.com/show_bug.cgi?id=616121#c3
Frank Krueger <fak at kruegersystems.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|fak at kruegersystems.com |
--- Comment #3 from Frank Krueger <fak at kruegersystems.com> 2010-06-24 17:00:52 UTC ---
Please read:
http://developer.apple.com/iphone/library/documentation/WindowsViews/Conceptual/UIScrollView_pg/ZoomZoom/ZoomZoom.html#//apple_ref/doc/uid/TP40008179-CH102-SW9
"The class will need to change the Core Animation class used as the UIView
class’s layer to CATiledLayer and draw using the Core Animation
drawLayer:inContext: method."
I want to implement that example snippet. I have succeeded by implementing my
own CGContext and doing my own PInvokes. However, I would *much* prefer to use
MT's CGContext because I stink at interop and keep the parallel class is silly
given that CGContext already has a perfectly good constructor.
Layers aren't typically changed using inheritance. Instead, one assigns a
delegate and that delegate must respond to the drawLayer:inContext:
Because UIView does not contain that selector you do not provide a virtual
version of it. I have to implement it using [Selector(...)] magic.
In this case, I use a CATiledLayer as the layer class of my UIView. I do *not*
inherit from CATiledLayer. I do my drawing in drawLayer:inContext:
--
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