C# Class ZForge.Controls.XPTable.Editors.ColorCellEditor.ColorPicker.ColorPalette.ctrlVerticalColorSlider

Inheritance: System.Windows.Forms.UserControl
Show file Open project: zhuangyy/Motion

Public Methods

Method Description
ctrlVerticalColorSlider ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ClearSlider ( ) : void

Redraws the background over the slider area on both sides of the control

DrawBorder ( ) : void

Draws the border around the control, in this case the border around the content area between the slider arrows.

DrawContent ( ) : void

Evaluates the DrawStyle of the control and calls the appropriate drawing function for content

DrawSlider ( int position, bool Unconditional ) : void

Draws the slider arrows on both sides of the control.

Draw_Style_Blue ( ) : void

Fills in the content of the control showing all values of Blue (0 to 255) for the given Red and Green.

Draw_Style_Green ( ) : void

Fills in the content of the control showing all values of Green (0 to 255) for the given Red and Blue.

Draw_Style_Hue ( ) : void

Fills in the content of the control showing all values of Hue (from 0 to 360)

Draw_Style_Luminance ( ) : void

Fills in the content of the control showing all values of Luminance (0 to 100%) for the given Hue and Saturation.

Draw_Style_Red ( ) : void

Fills in the content of the control showing all values of Red (0 to 255) for the given Green and Blue.

Draw_Style_Saturation ( ) : void

Fills in the content of the control showing all values of Saturation (0 to 100%) for the given Hue and Luminance.

InitializeComponent ( ) : void

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

Redraw_Control ( ) : void

Calls all the functions neccessary to redraw the entire control.

ResetHSLRGB ( ) : void

Resets the controls color (both HSL and RGB variables) based on the current slider position

Reset_Slider ( bool Redraw ) : void

Resets the vertical position of the slider to match the controls color. Gives the option of redrawing the slider.

Round ( double val ) : int

Kindof self explanitory, I really need to look up the .NET function that does this.

ctrl1DColorBar_Load ( object sender, System e ) : void
ctrl1DColorBar_MouseDown ( object sender, System e ) : void
ctrl1DColorBar_MouseMove ( object sender, System e ) : void
ctrl1DColorBar_MouseUp ( object sender, System e ) : void
ctrl1DColorBar_Paint ( object sender, System e ) : void
ctrl1DColorBar_Resize ( object sender, System e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

ctrlVerticalColorSlider() public method

public ctrlVerticalColorSlider ( ) : System
return System