public Context WrapContext(object nativeContext) { return(new Context(backend.GetBackendForContext(nativeContext), this)); }
/// <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); }