跳到主要内容

Shape

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

public class Shape : DisplayObject

继承:EventDispatcher → DisplayObject → Shape

继承成员​

DisplayObject

onPaint, _contentRect, _flags, _paintingInfo, _paintingMode, _vertexMatrix, gOwner, id, name, AddToBatch, CreateGameObject, DestroyGameObject, Dispose, EnsureSizeCorrect, EnterPaintingMode, GetBounds, GetScreenShot, GlobalToLocal, InvalidateBatchingState, LeavePaintingMode, LocalToGlobal, LocalToWorld, OnSizeChanged, RemoveFromParent, SetGameObject, SetLayer, SetPosition, SetRenderingOrder, SetScale, SetSize, SetXY, TransformPoint, TransformRect, TransformRectPoint, Update, WorldToLocal, alpha, blendMode, cacheAsBitmap, cachedTransform, cursor, filter, focalLength, focusable, focused, gameObject, graphics, grayed, height, home, isDisposed, layer, location, material, onAddedToStage, onClickLink, onClick, onFocusIn, onFocusOut, onKeyDown, onMouseWheel, onRemovedFromStage, onRightClick, onRollOut, onRollOver, onTouchBegin, onTouchEnd, onTouchMove, paintingGraphics, paintingMode, parent, perspective, pivot, pixelPerfect, position, renderingOrder, rotationX, rotationY, rotation, scaleX, scaleY, scale, shader, size, skew, stage, tabStop, topmost, touchDisabled, touchable, visible, width, worldSpaceContainer, xy, x, y, z

EventDispatcher

AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching

构造函数​

Shape()​

public Shape();

源码:Core/Shape.cs (行 14)

方法​

Clear()​

public void Clear();

源码:Core/Shape.cs (行 221)

DrawEllipse(Color)​

public void DrawEllipse(Color fillColor);
参数类型说明
fillColorColor

源码:Core/Shape.cs (行 100)

DrawEllipse(float, Color, Color, Color, float, float)​

public void DrawEllipse(float lineSize, Color centerColor, Color lineColor, Color fillColor, float startDegree, float endDegree);
参数类型说明
lineSizefloat
centerColorColor
lineColorColor
fillColorColor
startDegreefloat
endDegreefloat

源码:Core/Shape.cs (行 122)

DrawPolygon(IList<Vector2>, Color)​

public void DrawPolygon(IList<Vector2> points, Color fillColor);
参数类型说明
pointsIList<Vector2>
fillColorColor

源码:Core/Shape.cs (行 144)

DrawPolygon(IList<Vector2>, Color, float, Color)​

public void DrawPolygon(IList<Vector2> points, Color fillColor, float lineSize, Color lineColor);
参数类型说明
pointsIList<Vector2>
fillColorColor
lineSizefloat
lineColorColor

源码:Core/Shape.cs (行 179)

DrawPolygon(IList<Vector2>, Color32[])​

public void DrawPolygon(IList<Vector2> points, Color32[] colors);
参数类型说明
pointsIList<Vector2>
colorsColor32[]

源码:Core/Shape.cs (行 161)

DrawRect(float, Color, Color)​

public void DrawRect(float lineSize, Color lineColor, Color fillColor);
参数类型说明
lineSizefloat
lineColorColor
fillColorColor

源码:Core/Shape.cs (行 44)

DrawRect(float, Color32[])​

public void DrawRect(float lineSize, Color32[] colors);
参数类型说明
lineSizefloat
colorsColor32[]

源码:Core/Shape.cs (行 61)

DrawRegularPolygon(int, float, Color?, Color, Color, float, float[])​

public void DrawRegularPolygon(int sides, float lineSize, Color? centerColor, Color lineColor, Color fillColor, float rotation, float[] distances);
参数类型说明
sidesint
lineSizefloat
centerColorColor?
lineColorColor
fillColorColor
rotationfloat
distancesfloat[]

源码:Core/Shape.cs (行 203)

DrawRoundRect(float, Color, Color, float, float, float, float)​

public void DrawRoundRect(float lineSize, Color lineColor, Color fillColor, float topLeftRadius, float topRightRadius, float bottomLeftRadius, float bottomRightRadius);
参数类型说明
lineSizefloat
lineColorColor
fillColorColor
topLeftRadiusfloat
topRightRadiusfloat
bottomLeftRadiusfloat
bottomRightRadiusfloat

源码:Core/Shape.cs (行 80)

HitTest()​

protected override DisplayObject HitTest();

源码:Core/Shape.cs (行 234)

属性​

color​

public Color color { get; set; }

源码:Core/Shape.cs (行 25)

isEmpty​

public bool isEmpty { get; }

源码:Core/Shape.cs (行 229)