X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Core%2FEditView.cs;fp=Core%2FEditView.cs;h=1a4ad02ee645ab037d78730016c40a22f6761a4f;hb=051a200a27f5f7db690bf6db680a92681eb78ef5;hp=4761c68a33ee47426ac7c9c24825e60f1f8b914e;hpb=61e2c149d72b05ad194f740bab1db27ccdeb0298;p=fooeditengine%2FFooEditEngine.git diff --git a/Core/EditView.cs b/Core/EditView.cs index 4761c68..1a4ad02 100644 --- a/Core/EditView.cs +++ b/Core/EditView.cs @@ -58,7 +58,6 @@ namespace FooEditEngine this.CaretLocation = new Point(this.render.TextArea.X, this.render.TextArea.Y); this.LayoutLines.FoldingCollection.StatusChanged += FoldingCollection_StatusChanged; this.IsFocused = false; - this.SelectGrippers = new GripperRectangle(new GripperView(this.render), new GripperView(this.render)); this.Document.HideRulerChanged += (s, e) => { CalculateClipRect(); CalculateLineCountOnScreen(); @@ -75,15 +74,6 @@ namespace FooEditEngine } /// - /// 選択範囲にあるグリッパーのリスト - /// - public GripperRectangle SelectGrippers - { - private set; - get; - } - - /// /// ラインマーカーを描くなら偽。そうでなければ真 /// public bool HideLineMarker @@ -290,8 +280,8 @@ namespace FooEditEngine this.DrawCaret(); - this.SelectGrippers.BottomLeft.Draw(); - this.SelectGrippers.BottomRight.Draw(); + this.Document.SelectGrippers.BottomLeft.Draw(this.render); + this.Document.SelectGrippers.BottomRight.Draw(this.render); } void DrawUpdateArea(int row,double ypos) @@ -534,12 +524,12 @@ namespace FooEditEngine return p; } - public GripperView HitGripperFromPoint(Point p) + public Gripper HitGripperFromPoint(Point p) { - if (this.SelectGrippers.BottomLeft.IsHit(p)) - return this.SelectGrippers.BottomLeft; - if (this.SelectGrippers.BottomRight.IsHit(p)) - return this.SelectGrippers.BottomRight; + if (this.Document.SelectGrippers.BottomLeft.IsHit(p)) + return this.Document.SelectGrippers.BottomLeft; + if (this.Document.SelectGrippers.BottomRight.IsHit(p)) + return this.Document.SelectGrippers.BottomRight; return null; }