Skip to main content

GTextInput

Namespace:FairyGUI
Source:Assets/Scripts/UI/GTextInput.cs (line 10)

public class GTextInput : GTextField

Inheritance:EventDispatcher → GObject → GTextField → GTextInput

Inherited members​

GTextField

_templateVars, _textField, _text, _ubbEnabled, _updatingSize, FlushVars, HandleSizeChanged, HasCharacter, ParseTemplate, SetVar, Setup_AfterAdd, UpdateSize, UBBEnabled, align, autoSize, color, shadowOffset, singleLine, strokeColor, stroke, templateVars, textFormat, textHeight, textWidth, text, verticalAlign

GObject

data, dragBounds, initHeight, initWidth, maxHeight, maxWidth, minHeight, minWidth, name, packageItem, sourceHeight, sourceWidth, underConstruct, AddRelation, Center, ConstructFromResource, Dispose, GetGear, GlobalToLocal, HandleAlphaChanged, HandleControllerChanged, HandleGrayedChanged, HandlePositionChanged, HandleScaleChanged, HandleVisibleChanged, InvalidateBatchingState, LocalToGlobal, LocalToRoot, MakeFullScreen, RemoveFromParent, RemoveRelation, RequestFocus, RootToLocal, SetHome, SetPivot, SetPosition, SetScale, SetSize, SetSizeDirectly, SetXY, StartDrag, StopDrag, TransformPoint, TransformRect, TweenFade, TweenMove, TweenMoveX, TweenMoveY, TweenResize, TweenRotate, TweenScale, TweenScaleX, TweenScaleY, UpdateGear, WorldToLocal, actualHeight, actualWidth, alpha, asButton, asComboBox, asCom, asGraph, asGroup, asImage, asLabel, asList, asLoader3D, asLoader, asMovieClip, asProgress, asRichTextField, asSlider, asTextField, asTextInput, asTree, blendMode, cursor, displayObject, dragStartPos, draggable, draggingObject, dragging, enabled, filter, focusable, focused, gameObjectName, gearLook, gearSize, gearXY, grayed, group, height, icon, id, inContainer, isDisposed, onAddedToStage, onClickLink, onClick, onDragEnd, onDragMove, onDragStart, onFocusIn, onFocusOut, onGearStop, onKeyDown, onPositionChanged, onRemovedFromStage, onRightClick, onRollOut, onRollOver, onSizeChanged, onStage, onTouchBegin, onTouchEnd, onTouchMove, parent, pivotAsAnchor, pivotX, pivotY, pivot, pixelSnapping, position, relations, resourceURL, root, rotationX, rotationY, rotation, scaleX, scaleY, scale, size, skew, sortingOrder, tabStop, tooltips, touchable, treeNode, visible, width, xMin, xy, x, yMin, y, z

EventDispatcher

AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching

Constructors​

GTextInput()​

public GTextInput();

Source:UI/GTextInput.cs (line 20)

Methods​

CreateDisplayObject()​

override protected void CreateDisplayObject();

Source:UI/GTextInput.cs (line 210)

ReplaceSelection(string)​

public void ReplaceSelection(string value);
ParameterTypeDescription
valuestring

Source:UI/GTextInput.cs (line 200)

SetSelection(int, int)​

public void SetSelection(int start, int length);
ParameterTypeDescription
startint
lengthint

Source:UI/GTextInput.cs (line 191)

SetTextFieldText()​

override protected void SetTextFieldText();

Source:UI/GTextInput.cs (line 205)

Setup_BeforeAdd(ByteBuffer, int)​

public override void Setup_BeforeAdd(ByteBuffer buffer, int beginPos);
ParameterTypeDescription
bufferByteBuffer
beginPosint

Source:UI/GTextInput.cs (line 219)

Properties​

backgroundColor​

public Color backgroundColor { get; set; }

Source:UI/GTextInput.cs (line 171)

border​

public int border { get; set; }

Source:UI/GTextInput.cs (line 144)

borderColor​

public Color borderColor { get; set; }

Source:UI/GTextInput.cs (line 162)

caretPosition​

public int caretPosition { get; set; }

Source:UI/GTextInput.cs (line 90)

corner​

public int corner { get; set; }

Source:UI/GTextInput.cs (line 153)

disableIME​

public bool disableIME { get; set; }

Source:UI/GTextInput.cs (line 126)

displayAsPassword​

public bool displayAsPassword { get; set; }

Source:UI/GTextInput.cs (line 81)

editable​

public bool editable { get; set; }

Source:UI/GTextInput.cs (line 45)

emojies​

public Dictionary<uint, Emoji> emojies { get; set; }

Source:UI/GTextInput.cs (line 135)

hideInput​

public bool hideInput { get; set; }

Source:UI/GTextInput.cs (line 54)

inputTextField​

public InputTextField inputTextField { get; private set; }

Source:UI/GTextInput.cs (line 15)

keyboardInput​

public bool keyboardInput { get; set; }

在移动设备上是否使用键盘输入。如果false,则文本在获得焦点后不会弹出键盘。

Source:UI/GTextInput.cs (line 108)

keyboardType​

public int keyboardType { get; set; }

UnityEngine.TouchScreenKeyboardType

Source:UI/GTextInput.cs (line 117)

maxLength​

public int maxLength { get; set; }

Source:UI/GTextInput.cs (line 63)

mouseWheelEnabled​

public bool mouseWheelEnabled { get; set; }

Source:UI/GTextInput.cs (line 180)

onChanged​

public EventListener onChanged { get; }

Source:UI/GTextInput.cs (line 29)

onSubmit​

public EventListener onSubmit { get; }

Source:UI/GTextInput.cs (line 37)

promptText​

public string promptText { get; set; }

Source:UI/GTextInput.cs (line 99)

restrict​

public string restrict { get; set; }

Source:UI/GTextInput.cs (line 72)