C# Class Windawesome.Bar

Inheritance: IBar
显示文件 Open project: kocubinski/windawesome Class Usage Examples

Private Properties

Property Type Description
CreateForm NonActivatableForm
DoBarHidden void
DoBarShown void
IBar void
IBar void
IBar void
OnFixedWidthWidgetWidthChanged void
OnSpanWidgetControlsAdded void
OnSpanWidgetControlsRemoved void
OnWidgetControlsChanged void
RepositionLeftAlignedWidgets void
RepositionMiddleAlignedWidgets void
RepositionRightAlignedWidgets void
ResizeWidgets void
ResizeWidgets void

Public Methods

Method Description
Bar ( Windawesome.Monitor monitor, IEnumerable leftAlignedWidgets, IEnumerable rightAlignedWidgets, IEnumerable middleAlignedWidgets, int barHeight = 20, Font font = null, Color backgroundColor = null ) : System
CreateLabel ( string text, int xLocation, int width = -1 ) : Label
DoFixedWidthWidgetWidthChanged ( IFixedWidthWidget widget ) : void
DoSpanWidgetControlsAdded ( ISpanWidget widget, IEnumerable controls ) : void
DoSpanWidgetControlsRemoved ( ISpanWidget widget, IEnumerable controls ) : void
DoWidgetControlsChanged ( IWidget widget, IEnumerable controlsRemoved, IEnumerable controlsAdded ) : void
Equals ( object obj ) : bool
GetBarHeight ( ) : int
GetHashCode ( ) : int

Private Methods

Method Description
CreateForm ( ) : NonActivatableForm
DoBarHidden ( ) : void
DoBarShown ( ) : void
IBar ( ) : void
IBar ( Windawesome windawesome ) : void
IBar ( int newWidth ) : void
OnFixedWidthWidgetWidthChanged ( IFixedWidthWidget widget ) : void
OnSpanWidgetControlsAdded ( ISpanWidget widget, IEnumerable controls ) : void
OnSpanWidgetControlsRemoved ( ISpanWidget widget, IEnumerable controls ) : void
OnWidgetControlsChanged ( IWidget widget, IEnumerable controlsRemoved, IEnumerable controlsAdded ) : void
RepositionLeftAlignedWidgets ( int fromIndex, int fromX ) : void
RepositionMiddleAlignedWidgets ( ) : void
RepositionRightAlignedWidgets ( int fromIndex, int toX ) : void
ResizeWidgets ( IFixedWidthWidget widget ) : void
ResizeWidgets ( int newWidth ) : void

Method Details

Bar() public method

public Bar ( Windawesome.Monitor monitor, IEnumerable leftAlignedWidgets, IEnumerable rightAlignedWidgets, IEnumerable middleAlignedWidgets, int barHeight = 20, Font font = null, Color backgroundColor = null ) : System
monitor Windawesome.Monitor
leftAlignedWidgets IEnumerable
rightAlignedWidgets IEnumerable
middleAlignedWidgets IEnumerable
barHeight int
font System.Drawing.Font
backgroundColor Color
return System

CreateLabel() public method

public CreateLabel ( string text, int xLocation, int width = -1 ) : Label
text string
xLocation int
width int
return System.Windows.Forms.Label

DoFixedWidthWidgetWidthChanged() public method

public DoFixedWidthWidgetWidthChanged ( IFixedWidthWidget widget ) : void
widget IFixedWidthWidget
return void

DoSpanWidgetControlsAdded() public method

public DoSpanWidgetControlsAdded ( ISpanWidget widget, IEnumerable controls ) : void
widget ISpanWidget
controls IEnumerable
return void

DoSpanWidgetControlsRemoved() public method

public DoSpanWidgetControlsRemoved ( ISpanWidget widget, IEnumerable controls ) : void
widget ISpanWidget
controls IEnumerable
return void

DoWidgetControlsChanged() public method

public DoWidgetControlsChanged ( IWidget widget, IEnumerable controlsRemoved, IEnumerable controlsAdded ) : void
widget IWidget
controlsRemoved IEnumerable
controlsAdded IEnumerable
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetBarHeight() public method

public GetBarHeight ( ) : int
return int

GetHashCode() public method

public GetHashCode ( ) : int
return int