Example #1
0
 public LockedFramebuffer(WpfTopLevelImpl impl, WriteableBitmap bitmap, Vector dpi)
 {
     _impl   = impl;
     _bitmap = bitmap;
     Dpi     = dpi;
     _bitmap.Lock();
 }
Example #2
0
 public WpfAvaloniaHost()
 {
     _sync = SynchronizationContext.Current;
     _impl = new WpfTopLevelImpl();
     _impl.ControlRoot.Prepare();
     _impl.Visibility    = Visibility.Visible;
     SnapsToDevicePixels = true;
     UseLayoutRounding   = true;
     PresentationSource.AddSourceChangedHandler(this, OnSourceChanged);
 }
Example #3
0
 public CustomControlRoot(WpfTopLevelImpl impl) : base(impl)
 {
     EnforceClientSize = false;
 }
Example #4
0
 public Disposer(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Example #5
0
 public WritableBitmapSurface(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Example #6
0
 public WpfMousePointer(WpfTopLevelImpl impl) : base(Pointer.GetNextFreeId(), PointerType.Mouse, true)
 {
     _impl = impl;
 }
Example #7
0
 public WpfMouseDevice(WpfTopLevelImpl impl) : base(new WpfMousePointer(impl))
 {
     _impl = impl;
 }
 public Direct2DImageSurface(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Example #9
0
 public WpfMouseDevice(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }