C# Класс entity.MetaEditor2.ColorWheel

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
EntName string
LineNumber int
Value object
alphaText System.Windows.Forms.TextBox
blueText System.Windows.Forms.TextBox
chunkOffset int
color ColorHandler.RGB
greenText System.Windows.Forms.TextBox
offsetInMap int
redText System.Windows.Forms.TextBox

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

Метод Описание
ColorWheel ( ) : System

Initializes a new instance of the ColorWheel class.

ColorWheel ( int r, int g, int b ) : System

Initializes a new instance of the ColorWheel class.

checkForColor ( string name, DataValues cntl, string search1, string search2 ) : bool

The check for color.

setTextBox ( TextBox tb, Color col ) : void

The set text box.

updateBar ( ) : void

The update bar.

updateBox ( ) : void

The update box.

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

Метод Описание
OnColorChanged ( ) : void
OnLoad ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void

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

Метод Описание
ComputeDiameter ( Size size ) : float
ComputeRadius ( Size size ) : float
Control_LostFocus ( object sender, EventArgs e ) : void

The control_ lost focus.

Control_TextChanged ( object sender, EventArgs e ) : void

Called when a (ARGB) textbox is changed. Starts a timer, then updates the colorwheel after the timer expires (allowing for typing)

DrawBar ( Graphics g, int width, int height ) : void

The draw bar.

DrawWheel ( Graphics g, int width, int height ) : void

The draw wheel.

GetCirclePoints ( float r, PointF center ) : System.Drawing.PointF[]

The get circle points.

GetColors ( ) : Color[]

The get colors.

GrabColor ( object sender, Point mouseXY ) : void
InitRenderSurface ( ) : void

The init render surface.

InitRendering ( ) : void

The init rendering.

InitializeComponent ( ) : void

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

SphericalToCartesian ( float r, float theta ) : PointF

The spherical to cartesian.

brightnessPictureBox_Paint ( object sender, PaintEventArgs e ) : void
timer1_Tick ( object sender, EventArgs e ) : void

The timer is used to control the color wheel update from the text boxes. If we update instantly, we are unable to type, therefore allow a delay for typing

wheelPictureBox_Click ( object sender, System e ) : void
wheelPictureBox_MouseDown ( object sender, System e ) : void
wheelPictureBox_MouseMove ( object sender, System e ) : void
wheelPictureBox_MouseUp ( object sender, System e ) : void
wheelPictureBox_Paint ( object sender, System e ) : void

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

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

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

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

Initializes a new instance of the ColorWheel class.
public ColorWheel ( int r, int g, int b ) : System
r int /// The r. ///
g int /// The g. ///
b int /// The b. ///
Результат System

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

protected OnColorChanged ( ) : void
Результат void

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

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

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

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void

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

The check for color.
public static checkForColor ( string name, DataValues cntl, string search1, string search2 ) : bool
name string /// The name. ///
cntl DataValues /// The cntl. ///
search1 string /// The search 1. ///
search2 string /// The search 2. ///
Результат bool

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

The set text box.
public setTextBox ( TextBox tb, Color col ) : void
tb System.Windows.Forms.TextBox /// The tb. ///
col Color /// The col. ///
Результат void

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

The update bar.
public updateBar ( ) : void
Результат void

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

The update box.
public updateBox ( ) : void
Результат void

Описание свойств

EntName публичное свойство

The ent name.
public string EntName
Результат string

LineNumber публичное свойство

The line number.
public int LineNumber
Результат int

Value публичное свойство

The value.
public object Value
Результат object

alphaText публичное свойство

The alpha text.
public TextBox,System.Windows.Forms alphaText
Результат System.Windows.Forms.TextBox

blueText публичное свойство

The blue text.
public TextBox,System.Windows.Forms blueText
Результат System.Windows.Forms.TextBox

chunkOffset публичное свойство

The chunk offset.
public int chunkOffset
Результат int

color публичное свойство

The color.
public ColorHandler.RGB,entity.MetaEditor2 color
Результат ColorHandler.RGB

greenText публичное свойство

The green text.
public TextBox,System.Windows.Forms greenText
Результат System.Windows.Forms.TextBox

offsetInMap публичное свойство

The offset in map.
public int offsetInMap
Результат int

redText публичное свойство

The red text.
public TextBox,System.Windows.Forms redText
Результат System.Windows.Forms.TextBox