Ejemplo n.º 1
0
        //===================================================================
        // 動作
        //===================================================================

        /// 開始
        public void Start(LayoutElement target, HitModes hitMode,
                          RelativePoint mousePoint, SnapGuide snapGuide)
        {
            this.target       = target;
            this.hitMode      = hitMode;
            this.mouseOffset  = new RelativeMouseOffset(target, mousePoint);
            this.originalLTRB = new RelativeLTRB(target.BoundRelativeLeft,
                                                 target.BoundRelativeTop,
                                                 target.BoundRelativeRight,
                                                 target.BoundRelativeBottom);
            this.snapGuide         = snapGuide;
            this.lastUpdateControl = Environment.TickCount;

            this.MousePoint          = mousePoint;
            this.ShouldUpdateControl = false;
        }
Ejemplo n.º 2
0
        /// フィールドを初期化
        private void Clear()
        {
            this.target               = null;
            this.hitMode              = HitModes.Neutral;
            this.mouseOffset          = null;
            this.originalLTRB         = null;
            this.snapGuide            = null;
            this.lastUpdateControl    = 0;

            this.MousePoint           = null;
            this.ShouldUpdateControl  = false;
        }
Ejemplo n.º 3
0
        //===================================================================
        // 動作
        //===================================================================
        /// 開始
        public void Start(LayoutElement target, HitModes hitMode,
            RelativePoint mousePoint, SnapGuide snapGuide)
        {
            this.target       = target;
            this.hitMode      = hitMode;
            this.mouseOffset  = new RelativeMouseOffset(target, mousePoint);
            this.originalLTRB = new RelativeLTRB(target.BoundRelativeLeft,
                                         target.BoundRelativeTop,
                                         target.BoundRelativeRight,
                                         target.BoundRelativeBottom);
            this.snapGuide            = snapGuide;
            this.lastUpdateControl    = Environment.TickCount;

            this.MousePoint           = mousePoint;
            this.ShouldUpdateControl  = false;
        }