C# Class AntTweakBar.StringVariable

An AntTweakBar variable which can hold a string.
Inheritance: Variable, IValueVariable
Afficher le fichier Open project: TomCrypto/AntTweakBar.NET

Méthodes publiques

Méthode Description
OnChanged ( EventArgs e ) : void

Raises the Changed event.

StringVariable ( Bar bar, String initialValue = "", String def = null ) : System

Creates a new string variable in a given bar.

ToString ( ) : String

Private Methods

Méthode Description
GetCallback ( IntPtr pointer, IntPtr clientData ) : void

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

InitStringVariable ( Variable var, String id ) : void

Initialization delegate, which creates the string variable.

IsValid ( String value ) : 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 ( String value ) : void

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

Method Details

OnChanged() public méthode

Raises the Changed event.
public OnChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

StringVariable() public méthode

Creates a new string variable in a given bar.
public StringVariable ( Bar bar, String initialValue = "", String def = null ) : System
bar Bar The bar to create the string variable in.
initialValue String The initial value of the variable.
def String An optional definition string for the new variable.
Résultat System

ToString() public méthode

public ToString ( ) : String
Résultat String