跳到主要内容

GTextField

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

public class GTextField : GObject, ITextColorGear

继承:EventDispatcher → GObject → GTextField

接口:ITextColorGear

继承成员​

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

构造函数​

GTextField()​

public GTextField();

源码:UI/GTextField.cs (行 19)

字段​

_templateVars​

protected Dictionary<string, string> _templateVars;

源码:UI/GTextField.cs (行 17)

_text​

protected string _text;

源码:UI/GTextField.cs (行 14)

_textField​

protected TextField _textField;

源码:UI/GTextField.cs (行 13)

_ubbEnabled​

protected bool _ubbEnabled;

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

_updatingSize​

protected bool _updatingSize;

源码:UI/GTextField.cs (行 16)

方法​

CreateDisplayObject()​

override protected void CreateDisplayObject();

源码:UI/GTextField.cs (行 35)

FlushVars()​

public void FlushVars();

源码:UI/GTextField.cs (行 112)

HandleSizeChanged()​

override protected void HandleSizeChanged();

源码:UI/GTextField.cs (行 354)

HasCharacter(char)​

public bool HasCharacter(char ch);
参数类型说明
chchar

源码:UI/GTextField.cs (行 121)

ParseTemplate(string)​

protected string ParseTemplate(string template);
参数类型说明
templatestring

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

SetTextFieldText()​

virtual protected void SetTextFieldText();

源码:UI/GTextField.cs (行 64)

SetVar(string, string)​

public GTextField SetVar(string name, string value);
参数类型说明
namestring
valuestring

源码:UI/GTextField.cs (行 100)

Setup_AfterAdd(ByteBuffer, int)​

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

源码:UI/GTextField.cs (行 427)

Setup_BeforeAdd(ByteBuffer, int)​

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

源码:UI/GTextField.cs (行 374)

UpdateSize()​

protected void UpdateSize();

源码:UI/GTextField.cs (行 333)

属性​

UBBEnabled​

public bool UBBEnabled { get; set; }

源码:UI/GTextField.cs (行 277)

align​

public AlignType align { get; set; }

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

autoSize​

public AutoSizeType autoSize { get; set; }

源码:UI/GTextField.cs (行 286)

color​

public Color color { get; set; }

源码:UI/GTextField.cs (行 198)

shadowOffset​

public Vector2 shadowOffset { get; set; }

源码:UI/GTextField.cs (行 268)

singleLine​

public bool singleLine { get; set; }

源码:UI/GTextField.cs (行 237)

stroke​

public float stroke { get; set; }

源码:UI/GTextField.cs (行 246)

strokeColor​

public Color strokeColor { get; set; }

源码:UI/GTextField.cs (行 255)

templateVars​

public Dictionary<string, string> templateVars { get; set; }

源码:UI/GTextField.cs (行 80)

text​

override public string text { get; set; }

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

textFormat​

public TextFormat textFormat { get; set; }

源码:UI/GTextField.cs (行 181)

textHeight​

public float textHeight { get; }

源码:UI/GTextField.cs (行 328)

textWidth​

public float textWidth { get; }

源码:UI/GTextField.cs (行 320)

verticalAlign​

public VertAlignType verticalAlign { get; set; }

源码:UI/GTextField.cs (行 228)