Beispiel #1
0
 public LockedFramebuffer(WpfTopLevelImpl impl, WriteableBitmap bitmap, Vector dpi)
 {
     _impl   = impl;
     _bitmap = bitmap;
     Dpi     = dpi;
     _bitmap.Lock();
 }
Beispiel #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);
 }
Beispiel #3
0
 public CustomControlRoot(WpfTopLevelImpl impl) : base(impl)
 {
     EnforceClientSize = false;
 }
Beispiel #4
0
 public Disposer(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Beispiel #5
0
 public WritableBitmapSurface(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Beispiel #6
0
 public WpfMousePointer(WpfTopLevelImpl impl) : base(Pointer.GetNextFreeId(), PointerType.Mouse, true)
 {
     _impl = impl;
 }
Beispiel #7
0
 public WpfMouseDevice(WpfTopLevelImpl impl) : base(new WpfMousePointer(impl))
 {
     _impl = impl;
 }
 public Direct2DImageSurface(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Beispiel #9
0
 public WpfMouseDevice(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }