C# Класс Baka_MPlayer.Controls.ColorSlider

Наследование: System.Windows.Forms.Control
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
DrawColorSlider void
InitializeComponent void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddMarks() публичный Метод

Creates marks on the bar
public AddMarks ( List marks, double maxMarkValue ) : void
marks List
maxMarkValue double
Результат void

ClearMarks() публичный Метод

public ClearMarks ( ) : void
Результат void

ColorSlider() публичный Метод

Initializes a new instance of the ColorSlider class.
public ColorSlider ( ) : System
Результат System

ColorSlider() публичный Метод

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.
Результат System

CreateRoundRectPath() публичный статический Метод

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.
Результат System.Drawing.Drawing2D.GraphicsPath

DesaturateColors() публичный статический Метод

Desaturates colors from given array.
public static DesaturateColors ( ) : Color[]
Результат Color[]

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

LightenColors() публичный статический Метод

Lightens colors from given array.
public static LightenColors ( ) : Color[]
Результат Color[]

OnGotFocus() защищенный Метод

Raises the event.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Результат void

OnKeyDown() защищенный Метод

Raises the event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
Результат void

OnLostFocus() защищенный Метод

Raises the event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Результат void

OnMouseDown() защищенный Метод

Raises the event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseMove() защищенный Метод

Raises the event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseUp() защищенный Метод

Raises the event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnPaint() защищенный Метод

Raises the event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
Результат void