C# Class XRefresh.MenuExtender.MenuHelper

显示文件 Open project: binaryage/xrefresh

Public Methods

Method Description
CalcHeight ( ) : int
CalcWidth ( ) : int
CurrentBrush ( bool selected ) : SolidBrush
DrawBackground ( Rectangle bounds, bool selected ) : void
DrawMenu ( Rectangle bounds, bool selected, int indexValue ) : void
DrawSeperator ( Rectangle bounds ) : void
HasShortcut ( ) : bool
IsSeperator ( ) : bool
IsTopLevel ( ) : bool
MenuHelper ( MenuItem item, Graphics graphics, MenuExtender ext ) : System

Private Methods

Method Description
DrawBullet ( Rectangle rect, bool selected ) : void
DrawCheckBox ( Rectangle bounds, bool selected ) : void
DrawCheckMark ( Rectangle rect, bool selected ) : void
DrawImage ( Image menuImage, Rectangle bounds ) : void
DrawMenuText ( Rectangle bounds, bool selected ) : void

Method Details

CalcHeight() public method

public CalcHeight ( ) : int
return int

CalcWidth() public method

public CalcWidth ( ) : int
return int

CurrentBrush() public method

public CurrentBrush ( bool selected ) : SolidBrush
selected bool
return System.Drawing.SolidBrush

DrawBackground() public method

public DrawBackground ( Rectangle bounds, bool selected ) : void
bounds System.Drawing.Rectangle
selected bool
return void

DrawMenu() public method

public DrawMenu ( Rectangle bounds, bool selected, int indexValue ) : void
bounds System.Drawing.Rectangle
selected bool
indexValue int
return void

DrawSeperator() public method

public DrawSeperator ( Rectangle bounds ) : void
bounds System.Drawing.Rectangle
return void

HasShortcut() public method

public HasShortcut ( ) : bool
return bool

IsSeperator() public method

public IsSeperator ( ) : bool
return bool

IsTopLevel() public method

public IsTopLevel ( ) : bool
return bool

MenuHelper() public method

public MenuHelper ( MenuItem item, Graphics graphics, MenuExtender ext ) : System
item System.Windows.Forms.MenuItem
graphics System.Drawing.Graphics
ext MenuExtender
return System