跳到主要内容

GLabel

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

public class GLabel : GComponent, IColorGear

GLabel class.

继承:EventDispatcher → GObject → GComponent → GLabel

接口:IColorGear

继承成员​

GComponent

__onConstruct, __onDispose, _apexIndex, _boundsChanged, _childrenRenderOrder, _margin, _trackBounds, AddChild, AddChildAt, AddController, CallLua, ChangeChildrenOrder, ConstructFromResource, ConstructFromXML, CreateDisplayObject, Dispose, EnsureBoundsCorrect, GetChild, GetChildAt, GetChildByPath, GetChildInGroup, GetChildIndex, GetChildren, GetController, GetControllerAt, GetFirstChildInView, GetSnappingPosition, GetSnappingPositionWithDir, GetTransition, GetTransitionAt, GetVisibleChild, HandleControllerChanged, HandleGrayedChanged, HandleSizeChanged, InvalidateBatchingState, IsAncestorOf, IsChildInView, OnUpdate, RemoveChild, RemoveChildAt, RemoveChildren, RemoveController, SetBounds, SetBoundsChangedFlag, SetChildIndex, SetChildIndexBefore, SetLuaPeer, SetupOverflow, SetupScroll, ShouldSnapToNext, SwapChildren, SwapChildrenAt, UpdateBounds, Controllers, Transitions, apexIndex, baseUserData, childrenRenderOrder, clipSoftness, container, fairyBatching, margin, mask, numChildren, onDrop, opaque, reversedMask, rootContainer, scrollPane, tabStopChildren, viewHeight, viewWidth

GObject

data, dragBounds, initHeight, initWidth, maxHeight, maxWidth, minHeight, minWidth, name, packageItem, sourceHeight, sourceWidth, underConstruct, AddRelation, Center, GetGear, GlobalToLocal, HandleAlphaChanged, HandlePositionChanged, HandleScaleChanged, HandleVisibleChanged, LocalToGlobal, LocalToRoot, MakeFullScreen, RemoveFromParent, RemoveRelation, RequestFocus, RootToLocal, SetHome, SetPivot, SetPosition, SetScale, SetSize, SetSizeDirectly, SetXY, Setup_BeforeAdd, 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, 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

构造函数​

GLabel()​

public GLabel();

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

字段​

_iconObject​

protected GObject _iconObject;

源码:UI/GLabel.cs (行 12)

_titleObject​

protected GObject _titleObject;

源码:UI/GLabel.cs (行 11)

方法​

ConstructExtension(ByteBuffer)​

override protected void ConstructExtension(ByteBuffer buffer);
参数类型说明
bufferByteBuffer

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

GetTextField()​

public GTextField GetTextField();

源码:UI/GLabel.cs (行 150)

Setup_AfterAdd(ByteBuffer, int)​

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

源码:UI/GLabel.cs (行 168)

属性​

color​

public Color color { get; set; }

源码:UI/GLabel.cs (行 140)

editable​

public bool editable { get; set; }

If title is input text.

源码:UI/GLabel.cs (行 71)

icon​

override public string icon { get; set; }

Icon of the label.

源码:UI/GLabel.cs (行 21)

text​

override public string text { get; set; }

Same of the title.

源码:UI/GLabel.cs (行 62)

title​

public string title { get; set; }

Title of the label.

源码:UI/GLabel.cs (行 42)

titleColor​

public Color titleColor { get; set; }

Title color of the label

源码:UI/GLabel.cs (行 91)

titleFontSize​

public int titleFontSize { get; set; }

源码:UI/GLabel.cs (行 115)