C# Class Baka_MPlayer.Controls.ColorSlider

Inheritance: System.Windows.Forms.Control
Afficher le fichier Open project: godly-devotion/Baka-MPlayer-old

Private Properties

Свойство Type Description
DrawColorSlider void
InitializeComponent void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Creates marks on the bar
public AddMarks ( List marks, double maxMarkValue ) : void
marks List
maxMarkValue double
Résultat void

ClearMarks() public méthode

public ClearMarks ( ) : void
Résultat void

ColorSlider() public méthode

Initializes a new instance of the ColorSlider class.
public ColorSlider ( ) : System
Résultat System

ColorSlider() public méthode

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.
Résultat System

CreateRoundRectPath() public static méthode

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.
Résultat System.Drawing.Drawing2D.GraphicsPath

DesaturateColors() public static méthode

Desaturates colors from given array.
public static DesaturateColors ( ) : Color[]
Résultat Color[]

Dispose() protected méthode

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

LightenColors() public static méthode

Lightens colors from given array.
public static LightenColors ( ) : Color[]
Résultat Color[]

OnGotFocus() protected méthode

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

OnKeyDown() protected méthode

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

OnLostFocus() protected méthode

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

OnMouseDown() protected méthode

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

OnMouseMove() protected méthode

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

OnMouseUp() protected méthode

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

OnPaint() protected méthode

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