跳到主要内容

GTextInput

命名空间:FairyGUI
源码:Assets/Scripts/UI/GTextInput.cs (行 10)

public class GTextInput : GTextField

继承:EventDispatcher → GObject → GTextField → GTextInput

继承成员​

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

构造函数​

GTextInput()​

public GTextInput();

源码:UI/GTextInput.cs (行 20)

方法​

CreateDisplayObject()​

override protected void CreateDisplayObject();

源码:UI/GTextInput.cs (行 210)

ReplaceSelection(string)​

public void ReplaceSelection(string value);
参数类型说明
valuestring

源码:UI/GTextInput.cs (行 200)

SetSelection(int, int)​

public void SetSelection(int start, int length);
参数类型说明
startint
lengthint

源码:UI/GTextInput.cs (行 191)

SetTextFieldText()​

override protected void SetTextFieldText();

源码:UI/GTextInput.cs (行 205)

Setup_BeforeAdd(ByteBuffer, int)​

public override void Setup_BeforeAdd(ByteBuffer buffer, int beginPos);
参数类型说明
bufferByteBuffer
beginPosint

源码:UI/GTextInput.cs (行 219)

属性​

backgroundColor​

public Color backgroundColor { get; set; }

源码:UI/GTextInput.cs (行 171)

border​

public int border { get; set; }

源码:UI/GTextInput.cs (行 144)

borderColor​

public Color borderColor { get; set; }

源码:UI/GTextInput.cs (行 162)

caretPosition​

public int caretPosition { get; set; }

源码:UI/GTextInput.cs (行 90)

corner​

public int corner { get; set; }

源码:UI/GTextInput.cs (行 153)

disableIME​

public bool disableIME { get; set; }

源码:UI/GTextInput.cs (行 126)

displayAsPassword​

public bool displayAsPassword { get; set; }

源码:UI/GTextInput.cs (行 81)

editable​

public bool editable { get; set; }

源码:UI/GTextInput.cs (行 45)

emojies​

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

源码:UI/GTextInput.cs (行 135)

hideInput​

public bool hideInput { get; set; }

源码:UI/GTextInput.cs (行 54)

inputTextField​

public InputTextField inputTextField { get; private set; }

源码:UI/GTextInput.cs (行 15)

keyboardInput​

public bool keyboardInput { get; set; }

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

源码:UI/GTextInput.cs (行 108)

keyboardType​

public int keyboardType { get; set; }

UnityEngine.TouchScreenKeyboardType

源码:UI/GTextInput.cs (行 117)

maxLength​

public int maxLength { get; set; }

源码:UI/GTextInput.cs (行 63)

mouseWheelEnabled​

public bool mouseWheelEnabled { get; set; }

源码:UI/GTextInput.cs (行 180)

onChanged​

public EventListener onChanged { get; }

源码:UI/GTextInput.cs (行 29)

onSubmit​

public EventListener onSubmit { get; }

源码:UI/GTextInput.cs (行 37)

promptText​

public string promptText { get; set; }

源码:UI/GTextInput.cs (行 99)

restrict​

public string restrict { get; set; }

源码:UI/GTextInput.cs (行 72)