C# Class entity.MetaEditor2.ColorWheel

Afficher le fichier Open project: troymac1ure/Entity Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

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

Méthodes protégées

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

Private Methods

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

Method Details

ColorWheel() public méthode

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

ColorWheel() public méthode

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

OnColorChanged() protected méthode

protected OnColorChanged ( ) : void
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

checkForColor() public static méthode

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

setTextBox() public méthode

The set text box.
public setTextBox ( TextBox tb, Color col ) : void
tb System.Windows.Forms.TextBox /// The tb. ///
col Color /// The col. ///
Résultat void

updateBar() public méthode

The update bar.
public updateBar ( ) : void
Résultat void

updateBox() public méthode

The update box.
public updateBox ( ) : void
Résultat void

Property Details

EntName public_oe property

The ent name.
public string EntName
Résultat string

LineNumber public_oe property

The line number.
public int LineNumber
Résultat int

Value public_oe property

The value.
public object Value
Résultat object

alphaText public_oe property

The alpha text.
public TextBox,System.Windows.Forms alphaText
Résultat System.Windows.Forms.TextBox

blueText public_oe property

The blue text.
public TextBox,System.Windows.Forms blueText
Résultat System.Windows.Forms.TextBox

chunkOffset public_oe property

The chunk offset.
public int chunkOffset
Résultat int

color public_oe property

The color.
public ColorHandler.RGB,entity.MetaEditor2 color
Résultat ColorHandler.RGB

greenText public_oe property

The green text.
public TextBox,System.Windows.Forms greenText
Résultat System.Windows.Forms.TextBox

offsetInMap public_oe property

The offset in map.
public int offsetInMap
Résultat int

redText public_oe property

The red text.
public TextBox,System.Windows.Forms redText
Résultat System.Windows.Forms.TextBox