InputTextField
Namespace:FairyGUI
Source:Assets/Scripts/Core/Text/InputTextField.cs (line 18)
public class InputTextField : RichTextField
接收用户输入的文本控件。因为支持直接输入表情,所以从RichTextField派生。
Inheritance:EventDispatcher → DisplayObject → Container → RichTextField → InputTextField
Inherited members
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
Constructors
InputTextField()
public InputTextField();
Source:Core/Text/InputTextField.cs (line 96)
Fields
contextMenu
public static PopupMenu contextMenu;
Source:Core/Text/InputTextField.cs (line 64)
onCopy
public static Action<InputTextField, string> onCopy;
Source:Core/Text/InputTextField.cs (line 54)
onPaste
public static Action<InputTextField> onPaste;
Source:Core/Text/InputTextField.cs (line 59)
Methods
Dispose()
public override void Dispose();
Source:Core/Text/InputTextField.cs (line 921)
EatKeyEvent(Event)
public static bool EatKeyEvent(Event evt);
Compilation conditions:
!(!FAIRYGUI_INPUT_SYSTEM);!FAIRYGUI_INPUT_SYSTEM
| Parameter | Type | Description |
|---|---|---|
evt | Event |
Source:Core/Text/InputTextField.cs (line 1490)
GetSelection()
public string GetSelection();
Source:Core/Text/InputTextField.cs (line 609)
OnChanged()
protected void OnChanged();
Source:Core/Text/InputTextField.cs (line 887)
OnSizeChanged()
protected override void OnSizeChanged();
Source:Core/Text/InputTextField.cs (line 894)
RegisterEvent()
public static void RegisterEvent();
Compilation conditions:
!(!FAIRYGUI_INPUT_SYSTEM)
Source:Core/Text/InputTextField.cs (line 1538)
ReplaceSelection(string)
public void ReplaceSelection(string value);
| Parameter | Type | Description |
|---|---|---|
value | string |
Source:Core/Text/InputTextField.cs (line 372)
ReplaceText(string)
public void ReplaceText(string value);
| Parameter | Type | Description |
|---|---|---|
value | string |
Source:Core/Text/InputTextField.cs (line 438)
SetSelection(int, int)
public void SetSelection(int start, int length);
| Parameter | Type | Description |
|---|---|---|
start | int | |
length | int | -1 means the rest count from start |
Source:Core/Text/InputTextField.cs (line 350)
UnregisterEvent()
public static void UnregisterEvent();
Compilation conditions:
!(!FAIRYGUI_INPUT_SYSTEM)
Source:Core/Text/InputTextField.cs (line 1550)
Update(UpdateContext)
public override void Update(UpdateContext context);
| Parameter | Type | Description |
|---|---|---|
context | UpdateContext |
Source:Core/Text/InputTextField.cs (line 907)
Properties
backgroundColor
public Color backgroundColor { get; set; }
Source:Core/Text/InputTextField.cs (line 314)
border
public int border { get; set; }
Source:Core/Text/InputTextField.cs (line 275)
borderColor
public Color borderColor { get; set; }
Source:Core/Text/InputTextField.cs (line 301)
caretPosition
public int caretPosition { get; set; }
Source:Core/Text/InputTextField.cs (line 199)
compositionString
public static string compositionString { get; }
Compilation conditions:
!(!FAIRYGUI_INPUT_SYSTEM);!FAIRYGUI_INPUT_SYSTEM
Source:Core/Text/InputTextField.cs (line 1522)
corner
public int corner { get; set; }
Source:Core/Text/InputTextField.cs (line 288)
disableIME
public bool disableIME { get; set; }
Source:Core/Text/InputTextField.cs (line 44)
displayAsPassword
public bool displayAsPassword { get; set; }
Source:Core/Text/InputTextField.cs (line 245)
editable
public bool editable { get; set; }
Source:Core/Text/InputTextField.cs (line 261)
hideInput
public bool hideInput { get; set; }
Source:Core/Text/InputTextField.cs (line 39)
keyboardInput
public bool keyboardInput { get; set; }
如果是true,则当文本获得焦点时,弹出键盘进行输入,如果是false则不会。 默认是使用Stage.keyboardInput的值。
Source:Core/Text/InputTextField.cs (line 29)
keyboardType
public int keyboardType { get; set; }
Source:Core/Text/InputTextField.cs (line 34)
maxLength
public int maxLength { get; set; }
Source:Core/Text/InputTextField.cs (line 23)
mouseWheelEnabled
public bool mouseWheelEnabled { get; set; }
Source:Core/Text/InputTextField.cs (line 49)
onChanged
public EventListener onChanged { get; }
Source:Core/Text/InputTextField.cs (line 130)
onSubmit
public EventListener onSubmit { get; }
Source:Core/Text/InputTextField.cs (line 138)
promptText
public string promptText { get; set; }
Source:Core/Text/InputTextField.cs (line 225)
restrict
public string restrict { get; set; }
Source:Core/Text/InputTextField.cs (line 183)
selectionBeginIndex
public int selectionBeginIndex { get; }
Source:Core/Text/InputTextField.cs (line 212)
selectionEndIndex
public int selectionEndIndex { get; }
Source:Core/Text/InputTextField.cs (line 217)
text
public override string text { get; set; }
Source:Core/Text/InputTextField.cs (line 146)
textFormat
public override TextFormat textFormat { get; set; }
Source:Core/Text/InputTextField.cs (line 163)