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 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 override OperationPending clone(WipeComponent w, int translateX, int translateY) { return null; }
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; }
protected DrawLine(DrawLine p, WipeComponent pendingWipe, int translateX, int translateY) : base(p, pendingWipe) { this.x1 = p.x1 + translateX; this.y1 = p.y1 + translateY; this.x2 = p.x2 + translateX; this.y2 = p.y2 + translateY; this.color = p.color; }
public override void beforeComponentPaint(global::com.codename1.ui.Component n1, global::com.codename1.ui.Graphics n2) { if (n2.getGraphics() != globalGraphics) { return; } currentlyPainting = n1; CSharpListHolder cl = (CSharpListHolder)n1.getClientProperty(componentKey); if (cl != null) { if (cl.ll.Count > 0) { //System.Diagnostics.Debug.WriteLine("Painting component with " + cl.ll.Count + " elements"); //System.Diagnostics.Debug.WriteLine(toCSharp((java.lang.String)n1.toString())); pendingWipe = new WipeComponent(globalGraphics, cl.ll, toCSharp((java.lang.String)n1.toString())); cl.ll.Clear(); } } else { //System.Diagnostics.Debug.WriteLine("Painting component with no previous elements"); //System.Diagnostics.Debug.WriteLine(toCSharp((java.lang.String)n1.toString())); cl = new CSharpListHolder(); currentlyPainting.putClientProperty(componentKey, cl); } currentPaintDestination = cl.ll; /*if (n1 is global::com.codename1.ui.Form) { pendingPaints.Clear(); pendingPaints.Add(new WipeScreen(globalGraphics)); }*/ }
protected OperationPending(OperationPending p, WipeComponent w) { clipX = p.clipX; clipY = p.clipY; clipW = p.clipW; clipH = p.clipH; clipSet = p.clipSet; pendingWipe = w; }
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; }
protected DrawRect(DrawRect p, WipeComponent pendingWipe, int translateX, int translateY) : base(p, pendingWipe) { this.x = p.x + translateX; this.y = p.y + translateY; this.w = p.w; this.h = p.h; this.thickness = thickness; color = p.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; }
protected FillRect(FillRect p, WipeComponent pendingWipe, int translateX, int translateY) : base(p, pendingWipe) { this.x = p.x + translateX; this.y = p.y + translateY; this.w = p.w; this.h = p.h; color = p.color; }
protected DrawImage(DrawImage p, WipeComponent pendingWipe, int translateX, int translateY) : base(p, pendingWipe) { this.image = p.image; this.x = p.x + translateX; this.y = p.y + translateY; this.w = p.w; this.h = p.h; alpha = p.alpha; }
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 abstract OperationPending clone(WipeComponent w, int translateX, int translateY);
protected DrawString(DrawString p, WipeComponent pendingWipe, int translateX, int translateY) : base(p, pendingWipe) { this.x = p.x + translateX; this.y = p.y + translateY; this.str = p.str; this.font = p.font; this.color = p.color; }
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 override OperationPending clone(WipeComponent w, int translateX, int translateY) { return new DrawString(this, w, translateX, translateY); }
protected DrawRoundRect(DrawRoundRect p, WipeComponent pendingWipe, int translateX, int translateY) : base(p, pendingWipe) { this.x = p.x + translateX; this.y = p.y + translateY; this.w = p.w; this.h = p.h; this.fill = p.fill; this.stroke = p.stroke; this.arcW = p.arcW; this.arcH = p.arcH; }
public override void afterComponentPaint(global::com.codename1.ui.Component n1, global::com.codename1.ui.Graphics n2) { if (n2.getGraphics() != globalGraphics) { return; } if (pendingWipe != null) { globalGraphics.paint(pendingWipe); pendingWipe = null; } currentlyPainting = null; currentPaintDestination = null; /*if (n1 is global::com.codename1.ui.Form) { pendingPaints.Clear(); pendingPaints.Add(new WipeScreen(globalGraphics)); }*/ }
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; }