C# Class CustomBadge.CustomBadgeView

Inheritance: UIView
Exibir arquivo Open project: Alxandr/CustomBadge

Public Methods

Method Description
AutoResizeBadge ( ) : void
CustomBadgeView ( string text ) : System
CustomBadgeView ( string text, bool autoResize ) : System
Draw ( RectangleF rect ) : void

Private Methods

Method Description
DrawBorder ( CGContext context, RectangleF rect ) : void
DrawRoundedRect ( CGContext context, RectangleF rect ) : void
DrawShine ( CGContext context, RectangleF rect ) : void
GetComponents ( UIColor colors ) : float[]
MakePath ( CGContext context, RectangleF rect ) : float
Redraw ( bool autoResize = true ) : void

Method Details

AutoResizeBadge() public method

public AutoResizeBadge ( ) : void
return void

CustomBadgeView() public method

public CustomBadgeView ( string text ) : System
text string
return System

CustomBadgeView() public method

public CustomBadgeView ( string text, bool autoResize ) : System
text string
autoResize bool
return System

Draw() public method

public Draw ( RectangleF rect ) : void
rect System.Drawing.RectangleF
return void