GTextField
Namespace:FairyGUI
Source:Assets/Scripts/UI/GTextField.cs (line 11)
public class GTextField : GObject, ITextColorGear
Inheritance:EventDispatcher → GObject → GTextField
Interfaces:ITextColorGear
Inherited members
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
AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching
Constructors
GTextField()
public GTextField();
Source:UI/GTextField.cs (line 19)
Fields
_templateVars
protected Dictionary<string, string> _templateVars;
Source:UI/GTextField.cs (line 17)
_text
protected string _text;
Source:UI/GTextField.cs (line 14)
_textField
protected TextField _textField;
Source:UI/GTextField.cs (line 13)
_ubbEnabled
protected bool _ubbEnabled;
Source:UI/GTextField.cs (line 15)
_updatingSize
protected bool _updatingSize;
Source:UI/GTextField.cs (line 16)
Methods
CreateDisplayObject()
override protected void CreateDisplayObject();
Source:UI/GTextField.cs (line 35)
FlushVars()
public void FlushVars();
Source:UI/GTextField.cs (line 112)
HandleSizeChanged()
override protected void HandleSizeChanged();
Source:UI/GTextField.cs (line 354)
HasCharacter(char)
public bool HasCharacter(char ch);
| Parameter | Type | Description |
|---|---|---|
ch | char |
Source:UI/GTextField.cs (line 121)
ParseTemplate(string)
protected string ParseTemplate(string template);
| Parameter | Type | Description |
|---|---|---|
template | string |
Source:UI/GTextField.cs (line 126)
SetTextFieldText()
virtual protected void SetTextFieldText();
Source:UI/GTextField.cs (line 64)
SetVar(string, string)
public GTextField SetVar(string name, string value);
| Parameter | Type | Description |
|---|---|---|
name | string | |
value | string |
Source:UI/GTextField.cs (line 100)
Setup_AfterAdd(ByteBuffer, int)
override public void Setup_AfterAdd(ByteBuffer buffer, int beginPos);
| Parameter | Type | Description |
|---|---|---|
buffer | ByteBuffer | |
beginPos | int |
Source:UI/GTextField.cs (line 427)
Setup_BeforeAdd(ByteBuffer, int)
override public void Setup_BeforeAdd(ByteBuffer buffer, int beginPos);
| Parameter | Type | Description |
|---|---|---|
buffer | ByteBuffer | |
beginPos | int |
Source:UI/GTextField.cs (line 374)
UpdateSize()
protected void UpdateSize();
Source:UI/GTextField.cs (line 333)
Properties
UBBEnabled
public bool UBBEnabled { get; set; }
Source:UI/GTextField.cs (line 277)
align
public AlignType align { get; set; }
Source:UI/GTextField.cs (line 219)
autoSize
public AutoSizeType autoSize { get; set; }
Source:UI/GTextField.cs (line 286)
color
public Color color { get; set; }
Source:UI/GTextField.cs (line 198)
shadowOffset
public Vector2 shadowOffset { get; set; }
Source:UI/GTextField.cs (line 268)
singleLine
public bool singleLine { get; set; }
Source:UI/GTextField.cs (line 237)
stroke
public float stroke { get; set; }
Source:UI/GTextField.cs (line 246)
strokeColor
public Color strokeColor { get; set; }
Source:UI/GTextField.cs (line 255)
templateVars
public Dictionary<string, string> templateVars { get; set; }
Source:UI/GTextField.cs (line 80)
text
override public string text { get; set; }
Source:UI/GTextField.cs (line 45)
textFormat
public TextFormat textFormat { get; set; }
Source:UI/GTextField.cs (line 181)
textHeight
public float textHeight { get; }
Source:UI/GTextField.cs (line 328)
textWidth
public float textWidth { get; }
Source:UI/GTextField.cs (line 320)
verticalAlign
public VertAlignType verticalAlign { get; set; }
Source:UI/GTextField.cs (line 228)