FairyGUI.InputTextField.InputTextField C# (CSharp) Method

InputTextField() public method

public InputTextField ( ) : System
return System
        public InputTextField()
        {
            gameObject.name = "InputTextField";

            onFocusIn = new EventListener(this, "onFocusIn");
            onFocusOut = new EventListener(this, "onFocusOut");
            onChanged = new EventListener(this, "onChanged");

            maxLength = int.MaxValue;
            editable = true;

            /* 因为InputTextField定义了ClipRect,而ClipRect是四周缩进了2个像素的(GUTTER),默认的点击测试
             * 是使用ClipRect的,那会造成无法点击四周的空白区域。所以这里自定义了一个HitArea
             */
            this.hitArea = new RectHitTest();
            this.touchChildren = false;

            _touchMoveDelegate = __touchMove;

            onFocusIn.Add(__focusIn);
            onFocusOut.AddCapture(__focusOut);
            onKeyDown.AddCapture(__keydown);
            onTouchBegin.AddCapture(__touchBegin);
            onTouchEnd.AddCapture(__touchEnd);
        }