Inheritance: global::java.lang.Object
Esempio n. 1
0
 private void OnDraw(CanvasControl sender, CanvasDrawEventArgs args)
 {
     if (_graphics == null)
     {
         _graphics             = new NativeGraphics();
         _graphics.destination = new AsyncGraphics(args.DrawingSession);
         _graphics.resetClip();
     }
     else
     {
         ((AsyncGraphics)_graphics.destination).getInternal().setGraphics(args.DrawingSession);
     }
     if (renderingOperations.Count > 0)
     {
         foreach (AsyncOp o in renderingOperations)
         {
             //Debug.WriteLine("OnDraw - execute " + o);
             o.executeWithClip(((AsyncGraphics)_graphics.destination).getInternal());
         }
     }
     args.DrawingSession.Dispose();
     renderingOperations.Clear();
 }
 private void OnDraw(CanvasControl sender, CanvasDrawEventArgs args)
 {
     if (_graphics == null)
     {
         _graphics = new NativeGraphics();
         _graphics.destination = new AsyncGraphics(args.DrawingSession);
         _graphics.resetClip();
     }
     else
     {
         ((AsyncGraphics)_graphics.destination).getInternal().setGraphics(args.DrawingSession);
     }
     if (renderingOperations.Count > 0)
     {
         foreach (AsyncOp o in renderingOperations)
         {
             //Debug.WriteLine("OnDraw - execute " + o);
             o.executeWithClip(((AsyncGraphics)_graphics.destination).getInternal());
         }
     }
     args.DrawingSession.Dispose();
     renderingOperations.Clear();
 }
 public DrawString(NativeGraphics ng, WipeComponent pendingWipe, NativeFont font, string str, int x, int y)
     : base(ng, pendingWipe)
 {
     this.color = ng.sColor;
     this.x = x;
     this.y = y;
     this.str = str;
     this.font = font;
 }
 public DrawLine(NativeGraphics ng, WipeComponent pendingWipe, int x1, int y1, int x2, int y2)
     : base(ng, pendingWipe)
 {
     this.color = ng.sColor;
     this.x1 = x1;
     this.y1 = y1;
     this.x2 = x2;
     this.y2 = y2;
 }
 public PlacePeer(NativeGraphics ng, WipeComponent pendingWipe, int x, int y, int w, int h, FrameworkElement elem)
     : base(ng, pendingWipe)
 {
     this.elem = elem;
     this.x = x;
     this.y = y;
     this.w = w;
     this.h = h;
 }
 public DrawRect(NativeGraphics ng, WipeComponent pendingWipe, int x, int y, int w, int h, int thickness)
     : base(ng, pendingWipe)
 {
     this.color = ng.sColor;
     this.x = x;
     this.y = y;
     this.w = w;
     this.h = h;
     this.thickness = thickness;
 }
 public DrawRoundRect(NativeGraphics ng, WipeComponent pendingWipe, int x, int y, int w, int h, int arcW, int arcH, bool fill)
     : base(ng, pendingWipe)
 {
     Color color = ng.sColor;
     this.x = x;
     this.y = y;
     this.w = w;
     this.h = h;
     this.arcW = arcW;
     this.arcH = arcH;
     if (fill)
     {
         this.fill = new SolidColorBrush(color);
     }
     else
     {
         stroke = new SolidColorBrush(color);
     }
 }
 public FillRect(NativeGraphics ng, WipeComponent pendingWipe, int x, int y, int w, int h)
     : base(ng, pendingWipe)
 {
     this.color = ng.sColor;
     this.x = x;
     this.y = y;
     this.w = w;
     this.h = h;
 }
 public DrawImage(NativeGraphics ng, WipeComponent pendingWipe, java.lang.Object image, int x, int y, int w, int h)
     : base(ng, pendingWipe)
 {
     this.image = image;
     this.x = x;
     this.y = y;
     this.w = w;
     this.h = h;
     alpha = ng.alpha;
 }
 public WipeComponent(NativeGraphics ng, LinkedList<UIElement> ll, string componentName)
     : base(ng, null)
 {
     this.ll = new LinkedList<UIElement>();
     foreach (UIElement e in ll)
     {
         this.ll.AddLast(e);
     }
     this.componentName = componentName;
 }
 public WipeScreen(NativeGraphics ng)
     : base(ng, null)
 {
 }
 public OperationPending(NativeGraphics gr, WipeComponent pendingWipe)
 {
     clipSet = gr.clipSet;
     clipX = gr.clipX;
     clipY = gr.clipY;
     clipW = gr.clipW;
     clipH = gr.clipH;
     componentPaints = SilverlightImplementation.currentPaintDestination;
     this.pendingWipe = pendingWipe;
 }