C# 클래스 AntTweakBar.Color4Variable

An AntTweakBar variable which can hold an RGBA color value.
상속: Variable, IValueVariable
파일 보기 프로젝트 열기: TomCrypto/AntTweakBar.NET 1 사용 예제들

공개 메소드들

메소드 설명
Color4Variable ( Bar bar, float r, float g, float b, float a, String def = null ) : System

Creates a new RGBA color variable in a given bar.

OnChanged ( EventArgs e ) : void

Raises the Changed event.

ToString ( ) : String

비공개 메소드들

메소드 설명
GetCallback ( IntPtr pointer, IntPtr clientData ) : void

Called by AntTweakBar when AntTweakBar needs the variable's value.

InitColor4Variable ( Variable var, String id ) : void

Initialization delegate, which creates the RGBA color variable.

IsValid ( float r, float g, float b, float a ) : bool

Checks if this variable can hold this value.

SetCallback ( IntPtr pointer, IntPtr clientData ) : void

Called by AntTweakBar when the user changes the variable's value.

ValidateAndSet ( float r, float g, float b, float a ) : void

Tries to set this variable's value, validating it.

메소드 상세

Color4Variable() 공개 메소드

Creates a new RGBA color variable in a given bar.
public Color4Variable ( Bar bar, float r, float g, float b, float a, String def = null ) : System
bar Bar The bar to create the RGBA color variable in.
r float The initial red channel value of the variable.
g float The initial green channel value of the variable.
b float The initial blue channel value of the variable.
a float The initial alpha channel value of the variable.
def String An optional definition string for the new variable.
리턴 System

OnChanged() 공개 메소드

Raises the Changed event.
public OnChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

ToString() 공개 메소드

public ToString ( ) : String
리턴 String