예제 #1
0
 public GestureAdd(LayoutCanvasModel layoutModel, Component master)
 {
     this.layoutModel    = layoutModel;
     this.current        = new Location(0, 0);
     this.currentValid   = false;
     this.master         = master;
     this.masterInstance = master.CreateInstance();
 }
예제 #2
0
        public GesturePoke(LayoutCanvasModel layoutModel, ComponentInstance poking)
        {
            this.layoutModel = layoutModel;
            this.poking      = poking;

            Transaction   xn     = new Transaction();
            ILayoutAccess layout = xn.RequestReadAccess(layoutModel.Layout);

            using (xn.Start()) {
                pokingLocation = poking.Component.GetLocation(layout);
            }
        }
예제 #3
0
        public GestureTranslate(LayoutCanvasModel layoutCanvas,
                                ComponentInstance moving)
        {
            this.layoutCanvas = layoutCanvas;
            this.moving       = moving;

            Transaction   xn     = new Transaction();
            ILayoutAccess layout = xn.RequestReadAccess(layoutCanvas.Layout);

            using (xn.Start()) {
                this.movingLocation = moving.Component.GetLocation(layout);
            }
        }
예제 #4
0
 public GestureNull(LayoutCanvasModel layoutModel)
 {
     this.layoutCanvas = layoutModel;
     this.current      = null;
 }
예제 #5
0
 public GestureWire(LayoutCanvasModel layoutModel, Location loc0)
 {
     this.layoutModel = layoutModel;
     this.loc0        = loc0;
     this.loc1        = loc0;
 }
예제 #6
0
 public RepaintThread(LayoutCanvasModel canvas)
 {
     this.canvas = canvas;
 }