GImage
Namespace:FairyGUI
Source:Assets/Scripts/UI/GImage.cs (line 9)
public class GImage : GObject, IColorGear
GImage class.
Inheritance:EventDispatcher → GObject → GImage
Interfaces:IColorGear
Inherited members
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
Constructors
GImage()
public GImage();
Source:UI/GImage.cs (line 13)
Methods
ConstructFromResource()
override public void ConstructFromResource();
Source:UI/GImage.cs (line 131)
CreateDisplayObject()
override protected void CreateDisplayObject();
Source:UI/GImage.cs (line 17)
Setup_BeforeAdd(ByteBuffer, int)
override public void Setup_BeforeAdd(ByteBuffer buffer, int beginPos);
| Parameter | Type | Description |
|---|---|---|
buffer | ByteBuffer | |
beginPos | int |
Source:UI/GImage.cs (line 152)
Properties
color
public Color color { get; set; }
Color of the image.
Source:UI/GImage.cs (line 27)
fillAmount
public float fillAmount { get; set; }
Fill amount. (0~1)
Source:UI/GImage.cs (line 83)
fillClockwise
public bool fillClockwise { get; set; }
Fill clockwise if true.
Source:UI/GImage.cs (line 74)
fillMethod
public FillMethod fillMethod { get; set; }
Fill method.
Source:UI/GImage.cs (line 51)
fillOrigin
public int fillOrigin { get; set; }
Fill origin.
Source:UI/GImage.cs (line 65)
flip
public FlipType flip { get; set; }
Flip type.
Source:UI/GImage.cs (line 41)
material
public Material material { get; set; }
Set material.
Source:UI/GImage.cs (line 116)
shader
public string shader { get; set; }
Set shader.
Source:UI/GImage.cs (line 125)
texture
public NTexture texture { get; set; }
Set texture directly. The image wont own the texture.
Source:UI/GImage.cs (line 92)