FairyGUI.GGraph.DrawRect C# (CSharp) Method

DrawRect() public method

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
return 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