Example #1
0
File: Canvas.cs Project: m13253/xwt
			public void OnDraw (object context, Rectangle dirtyRect)
			{
				Context ctx = null;
				try {
					ctx = new Context (context, ToolkitEngine);
					ctx.Reset (Parent);
					((Canvas)Parent).OnDraw (ctx, dirtyRect);
				}
				finally {
					ctx.Dispose ();
				}
			}
Example #2
0
File: Canvas.cs Project: chkn/xwt
 public void OnDraw(object context)
 {
     Context ctx = null;
     try {
         ctx = new Context (context);
         ((Canvas)Parent).OnDraw (ctx);
     }
     finally {
         ctx.Dispose ();
     }
 }
Example #3
0
 public void Dispose()
 {
     ctx.Dispose();
 }