예제 #1
0
        protected virtual RectTestResult RectTestCore(Gdk.Rectangle rect)
        {
            RectTestResult result;

            if (this.GetCSVisual().RectTest(rect))
            {
                result = new RectTestResult(this, rect, this.CanContinueTest());
            }
            else
            {
                result = new RectTestResult(rect, this.CanContinueTest());
            }
            return(result);
        }
예제 #2
0
        public virtual RectTestResult RectTest(Gdk.Rectangle rect)
        {
            RectTestResult result;

            if (!this.IsHitTestVisible || !this.Visible || !this.VisibleForFrame || !this.CanEdit)
            {
                result = new RectTestResult(rect, this.Visible);
            }
            else
            {
                result = this.RectTestCore(rect);
            }
            return(result);
        }