FairyGUI.GGraph.DrawRect C# (CSharp) Метод

DrawRect() публичный Метод

Draw a rectangle. 画矩形。
public DrawRect ( float aWidth, float aHeight, int lineSize, Color lineColor, Color fillColor ) : void
aWidth float Width
aHeight float Height
lineSize int Line size
lineColor Color Line color
fillColor Color Fill color
Результат void
        public void DrawRect(float aWidth, float aHeight, int lineSize, Color lineColor, Color fillColor)
        {
            this.SetSize(aWidth, aHeight);
            this.shape.DrawRect(lineSize, lineColor, fillColor);
        }

Usage Example

Пример #1
0
 void CreateModalLayer()
 {
     _modalLayer = new GGraph();
     _modalLayer.DrawRect(this.width, this.height, 0, Color.White, UIConfig.modalLayerColor);
     _modalLayer.AddRelation(this, RelationType.Size);
     _modalLayer.name = "ModalLayer";
 }
All Usage Examples Of FairyGUI.GGraph::DrawRect