Пример #1
0
 public Context WrapContext(object nativeContext)
 {
     return(new Context(backend.GetBackendForContext(nativeContext), this));
 }
Пример #2
0
		/// <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);
		}