C# Class Baka_MPlayer.Controls.ColorSlider

Inheritance: System.Windows.Forms.Control
Datei anzeigen Open project: godly-devotion/Baka-MPlayer-old

Private Properties

Property Type Description
DrawColorSlider void
InitializeComponent void

Public Methods

Method Description
AddMarks ( List marks, double maxMarkValue ) : void

Creates marks on the bar

ClearMarks ( ) : void
ColorSlider ( ) : System

Initializes a new instance of the ColorSlider class.

ColorSlider ( int min, int max, int value ) : System

Initializes a new instance of the ColorSlider class.

CreateRoundRectPath ( Rectangle rect, Size size ) : GraphicsPath

Creates the round rect path.

DesaturateColors ( ) : Color[]

Desaturates colors from given array.

LightenColors ( ) : Color[]

Lightens colors from given array.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnGotFocus ( EventArgs e ) : void

Raises the event.

OnKeyDown ( KeyEventArgs e ) : void

Raises the event.

OnLostFocus ( EventArgs e ) : void

Raises the event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the event.

OnMouseUp ( MouseEventArgs e ) : void

Raises the event.

OnPaint ( PaintEventArgs e ) : void

Raises the event.

Private Methods

Method Description
DrawColorSlider ( PaintEventArgs e, Color thumbFirstColorPaint, Color thumbSecondColorPaint, Color thumbBorderColorPaint, Color barColorPaint, Color elapsedBarColorPaint ) : void

Draws the colorslider control using passed colors.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

AddMarks() public method

Creates marks on the bar
public AddMarks ( List marks, double maxMarkValue ) : void
marks List
maxMarkValue double
return void

ClearMarks() public method

public ClearMarks ( ) : void
return void

ColorSlider() public method

Initializes a new instance of the ColorSlider class.
public ColorSlider ( ) : System
return System

ColorSlider() public method

Initializes a new instance of the ColorSlider class.
public ColorSlider ( int min, int max, int value ) : System
min int The minimum value.
max int The maximum value.
value int The current value.
return System

CreateRoundRectPath() public static method

Creates the round rect path.
public static CreateRoundRectPath ( Rectangle rect, Size size ) : GraphicsPath
rect System.Drawing.Rectangle The rectangle on which graphics path will be spanned.
size System.Drawing.Size The size of rounded rectangle edges.
return System.Drawing.Drawing2D.GraphicsPath

DesaturateColors() public static method

Desaturates colors from given array.
public static DesaturateColors ( ) : Color[]
return Color[]

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LightenColors() public static method

Lightens colors from given array.
public static LightenColors ( ) : Color[]
return Color[]

OnGotFocus() protected method

Raises the event.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

OnKeyDown() protected method

Raises the event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
return void

OnLostFocus() protected method

Raises the event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

OnMouseDown() protected method

Raises the event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseMove() protected method

Raises the event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseUp() protected method

Raises the event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnPaint() protected method

Raises the event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
return void