Beyond_Beyaan.BBStretchButton.MouseDown C# (CSharp) Метод

MouseDown() публичный Метод

public MouseDown ( int x, int y ) : bool
x int
y int
Результат bool
        public bool MouseDown(int x, int y)
        {
            if (x >= _xPos && x < _xPos + _width && y >= _yPos && y < _yPos + _height)
            {
                if (_toolTip != null)
                {
                    _toolTip.SetShowing(false);
                }
                if (Enabled)
                {
                    _pressed = true;
                }
                return true;
            }
            return false;
        }