GImage
命名空间:FairyGUI
源码:Assets/Scripts/UI/GImage.cs (行 9)
public class GImage : GObject, IColorGear
GImage class.
继承:EventDispatcher → GObject → GImage
接口:IColorGear
继承成员
data, dragBounds, initHeight, initWidth, maxHeight, maxWidth, minHeight, minWidth, name, packageItem, sourceHeight, sourceWidth, underConstruct, AddRelation, Center, Dispose, GetGear, GlobalToLocal, HandleAlphaChanged, HandleControllerChanged, HandleGrayedChanged, HandlePositionChanged, HandleScaleChanged, HandleSizeChanged, HandleVisibleChanged, InvalidateBatchingState, LocalToGlobal, LocalToRoot, MakeFullScreen, RemoveFromParent, RemoveRelation, RequestFocus, RootToLocal, SetHome, SetPivot, SetPosition, SetScale, SetSize, SetSizeDirectly, SetXY, Setup_AfterAdd, 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, text, tooltips, touchable, treeNode, visible, width, xMin, xy, x, yMin, y, z
AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching
构造函数
GImage()
public GImage();
源码:UI/GImage.cs (行 13)
方法
ConstructFromResource()
override public void ConstructFromResource();
源码:UI/GImage.cs (行 131)
CreateDisplayObject()
override protected void CreateDisplayObject();
源码:UI/GImage.cs (行 17)
Setup_BeforeAdd(ByteBuffer, int)
override public void Setup_BeforeAdd(ByteBuffer buffer, int beginPos);
| 参数 | 类型 | 说明 |
|---|---|---|
buffer | ByteBuffer | |
beginPos | int |
源码:UI/GImage.cs (行 152)
属性
color
public Color color { get; set; }
Color of the image.
源码:UI/GImage.cs (行 27)
fillAmount
public float fillAmount { get; set; }
Fill amount. (0~1)
源码:UI/GImage.cs (行 83)
fillClockwise
public bool fillClockwise { get; set; }
Fill clockwise if true.
源码:UI/GImage.cs (行 74)
fillMethod
public FillMethod fillMethod { get; set; }
Fill method.
源码:UI/GImage.cs (行 51)
fillOrigin
public int fillOrigin { get; set; }
Fill origin.
源码:UI/GImage.cs (行 65)
flip
public FlipType flip { get; set; }
Flip type.
源码:UI/GImage.cs (行 41)
material
public Material material { get; set; }
Set material.
源码:UI/GImage.cs (行 116)
shader
public string shader { get; set; }
Set shader.
源码:UI/GImage.cs (行 125)
texture
public NTexture texture { get; set; }
Set texture directly. The image wont own the texture.
源码:UI/GImage.cs (行 92)