C# 클래스 entity.MetaEditor2.ColorWheel

파일 보기 프로젝트 열기: troymac1ure/Entity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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