Exemple #1
0
 public override void setDC(DrawingController dc)
 {
     this.dc = dc;
     foreach (Drawable d in this.drawables) //useless
     {
         d.setDC(dc);
     }
 }
Exemple #2
0
 //constructor
 /// <summary>
 /// virtual and real(abs) w,h are the same as viewport img
 /// </summary>
 public Layer(int maxX, int maxY, DrawingController dc)
     : base(0, 0, 0, 0)
 {
     //Vx = Vy = 0;
     //
     this.maxX = maxX;
     this.maxY = maxY;
     //
     dc.add(this);
     //
     scaleToParent();
     //
     Vw = absWidth;
     Vh = absHeight;
     //
     initCache();
 }
Exemple #3
0
 public virtual void setDC(DrawingController dc)
 {
     this.dc = dc;
 }