C# Class AntTweakBar.Variable

The base class for all AntTweakBar variables.
Inheritance: IVariable
显示文件 Open project: TomCrypto/AntTweakBar.NET Class Usage Examples

Private Properties

Property Type Description
Dispose void

Public Methods

Method Description
Dispose ( ) : void
SetDefinition ( String def ) : void

Sets this variable's properties from a definition string.

ToString ( ) : String

Protected Methods

Method Description
ThrowIfDisposed ( ) : void

Throws an ObjectDisposedException if this variable has been disposed.

Variable ( Bar parent, String>.Action initFunc, String def = null, bool initLabel = true ) : System

Creates a new variable in a given AntTweakBar bar.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

SetDefinition() public method

Sets this variable's properties from a definition string.
public SetDefinition ( String def ) : void
def String An AntTweakBar definition string, excluding the name prefix.
return void

ThrowIfDisposed() protected method

Throws an ObjectDisposedException if this variable has been disposed.
protected ThrowIfDisposed ( ) : void
return void

ToString() public method

public ToString ( ) : String
return String

Variable() protected method

Creates a new variable in a given AntTweakBar bar.
protected Variable ( Bar parent, String>.Action initFunc, String def = null, bool initLabel = true ) : System
parent Bar The bar the variable should be created in.
initFunc String>.Action A delegate which will initialize the variable.
def String An optional definition string for the new variable.
initLabel bool Whether to initialize the variable's label.
return System