InputTextField
命名空间:FairyGUI
源码:Assets/Scripts/Core/Text/InputTextField.cs (行 18)
public class InputTextField : RichTextField
接收用户输入的文本控件。因为支持直接输入表情,所以从RichTextField派生。
继承:EventDispatcher → DisplayObject → Container → RichTextField → InputTextField
继承成员
EnsureSizeCorrect, GetHtmlElement, GetHtmlElementAt, ShowHtmlObject, emojies, htmlElementCount, htmlPageContext, htmlParseOptions, htmlText, textField
onUpdate, clipSoftness, hitArea, opaque, renderCamera, renderMode, reversedMask, touchChildren, AddChild, AddChildAt, ChangeChildrenOrder, Contains, CreateGraphics, GetBounds, GetChild, GetChildAt, GetChildIndex, GetChildren, GetDescendants, GetRenderCamera, HitTest, InvalidateBatchingState, IsAncestorOf, RemoveChild, RemoveChildAt, RemoveChildren, SetChildIndex, SetChildrenLayer, SwapChildren, SwapChildrenAt, clipRect, fairyBatching, mask, numChildren, tabStopChildren
onPaint, _contentRect, _flags, _paintingInfo, _paintingMode, _vertexMatrix, gOwner, id, name, AddToBatch, CreateGameObject, DestroyGameObject, EnterPaintingMode, GetScreenShot, GlobalToLocal, LeavePaintingMode, LocalToGlobal, LocalToWorld, RemoveFromParent, SetGameObject, SetLayer, SetPosition, SetRenderingOrder, SetScale, SetSize, SetXY, TransformPoint, TransformRect, TransformRectPoint, WorldToLocal, alpha, blendMode, cacheAsBitmap, cachedTransform, cursor, filter, focalLength, focusable, focused, gameObject, graphics, grayed, height, home, isDisposed, layer, location, material, onAddedToStage, onClickLink, onClick, onFocusIn, onFocusOut, onKeyDown, onMouseWheel, onRemovedFromStage, onRightClick, onRollOut, onRollOver, onTouchBegin, onTouchEnd, onTouchMove, paintingGraphics, paintingMode, parent, perspective, pivot, pixelPerfect, position, renderingOrder, rotationX, rotationY, rotation, scaleX, scaleY, scale, shader, size, skew, stage, tabStop, topmost, touchDisabled, touchable, visible, width, worldSpaceContainer, xy, x, y, z
AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching
构造函数
InputTextField()
public InputTextField();
源码:Core/Text/InputTextField.cs (行 96)
字段
contextMenu
public static PopupMenu contextMenu;
源码:Core/Text/InputTextField.cs (行 64)
onCopy
public static Action<InputTextField, string> onCopy;
源码:Core/Text/InputTextField.cs (行 54)
onPaste
public static Action<InputTextField> onPaste;
源码:Core/Text/InputTextField.cs (行 59)
方法
Dispose()
public override void Dispose();
源码:Core/Text/InputTextField.cs (行 921)
EatKeyEvent(Event)
public static bool EatKeyEvent(Event evt);
编译条件:
!(!FAIRYGUI_INPUT_SYSTEM);!FAIRYGUI_INPUT_SYSTEM
| 参数 | 类型 | 说明 |
|---|---|---|
evt | Event |
源码:Core/Text/InputTextField.cs (行 1490)
GetSelection()
public string GetSelection();
源码:Core/Text/InputTextField.cs (行 609)
OnChanged()
protected void OnChanged();
源码:Core/Text/InputTextField.cs (行 887)
OnSizeChanged()
protected override void OnSizeChanged();
源码:Core/Text/InputTextField.cs (行 894)
RegisterEvent()
public static void RegisterEvent();
编译条件:
!(!FAIRYGUI_INPUT_SYSTEM)
源码:Core/Text/InputTextField.cs (行 1538)
ReplaceSelection(string)
public void ReplaceSelection(string value);
| 参数 | 类型 | 说明 |
|---|---|---|
value | string |
源码:Core/Text/InputTextField.cs (行 372)
ReplaceText(string)
public void ReplaceText(string value);
| 参数 | 类型 | 说明 |
|---|---|---|
value | string |
源码:Core/Text/InputTextField.cs (行 438)
SetSelection(int, int)
public void SetSelection(int start, int length);
| 参数 | 类型 | 说明 |
|---|---|---|
start | int | |
length | int | -1 means the rest count from start |
源码:Core/Text/InputTextField.cs (行 350)
UnregisterEvent()
public static void UnregisterEvent();
编译条件:
!(!FAIRYGUI_INPUT_SYSTEM)
源码:Core/Text/InputTextField.cs (行 1550)
Update(UpdateContext)
public override void Update(UpdateContext context);
| 参数 | 类型 | 说明 |
|---|---|---|
context | UpdateContext |
源码:Core/Text/InputTextField.cs (行 907)
属性
backgroundColor
public Color backgroundColor { get; set; }
源码:Core/Text/InputTextField.cs (行 314)
border
public int border { get; set; }
源码:Core/Text/InputTextField.cs (行 275)
borderColor
public Color borderColor { get; set; }
源码:Core/Text/InputTextField.cs (行 301)
caretPosition
public int caretPosition { get; set; }
源码:Core/Text/InputTextField.cs (行 199)
compositionString
public static string compositionString { get; }
编译条件:
!(!FAIRYGUI_INPUT_SYSTEM);!FAIRYGUI_INPUT_SYSTEM
源码:Core/Text/InputTextField.cs (行 1522)
corner
public int corner { get; set; }
源码:Core/Text/InputTextField.cs (行 288)
disableIME
public bool disableIME { get; set; }
源码:Core/Text/InputTextField.cs (行 44)
displayAsPassword
public bool displayAsPassword { get; set; }
源码:Core/Text/InputTextField.cs (行 245)
editable
public bool editable { get; set; }
源码:Core/Text/InputTextField.cs (行 261)
hideInput
public bool hideInput { get; set; }
源码:Core/Text/InputTextField.cs (行 39)
keyboardInput
public bool keyboardInput { get; set; }
如果是true,则当文本获得焦点时,弹出键盘进行输入,如果是false则不会。 默认是使用Stage.keyboardInput的值。
源码:Core/Text/InputTextField.cs (行 29)
keyboardType
public int keyboardType { get; set; }
源码:Core/Text/InputTextField.cs (行 34)
maxLength
public int maxLength { get; set; }
源码:Core/Text/InputTextField.cs (行 23)
mouseWheelEnabled
public bool mouseWheelEnabled { get; set; }
源码:Core/Text/InputTextField.cs (行 49)
onChanged
public EventListener onChanged { get; }
源码:Core/Text/InputTextField.cs (行 130)
onSubmit
public EventListener onSubmit { get; }
源码:Core/Text/InputTextField.cs (行 138)
promptText
public string promptText { get; set; }
源码:Core/Text/InputTextField.cs (行 225)
restrict
public string restrict { get; set; }
源码:Core/Text/InputTextField.cs (行 183)
selectionBeginIndex
public int selectionBeginIndex { get; }
源码:Core/Text/InputTextField.cs (行 212)
selectionEndIndex
public int selectionEndIndex { get; }
源码:Core/Text/InputTextField.cs (行 217)
text
public override string text { get; set; }
源码:Core/Text/InputTextField.cs (行 146)
textFormat
public override TextFormat textFormat { get; set; }
源码:Core/Text/InputTextField.cs (行 163)