예제 #1
0
파일: Toolkit.cs 프로젝트: inorton/xwt
 public Context WrapContext(object nativeContext)
 {
     return(new Context(backend.GetBackendForContext(nativeContext), this));
 }
예제 #2
0
파일: Toolkit.cs 프로젝트: git-thinh/limada
		/// <summary>
		/// Wraps a native drawing context into an Xwt context object.
		/// </summary>
		/// <returns>The Xwt drawing context.</returns>
		/// <param name="nativeWidget">The native widget to use for drawing.</param>
		/// <param name="nativeContext">The native drawing context.</param>
		public Context WrapContext (object nativeWidget, object nativeContext)
		{
			return new Context (backend.GetBackendForContext (nativeWidget, nativeContext), this);
		}