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

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

public MouseDown ( int x, int y ) : bool
x int
y int
Результат bool
        public bool MouseDown(int x, int y)
        {
            if (isReadOnly)
            {
                return false;
            }
            if (x >= xPos && x < xPos + width && y >= yPos && y < yPos + height)
            {
                pressed = true;
                return true;
            }
            return false;
        }