C# Class AntTweakBar.BoolVariable

An AntTweakBar variable which can hold a boolean value.
Inheritance: Variable, IValueVariable
Show file Open project: TomCrypto/AntTweakBar.NET Class Usage Examples

Public Methods

Method Description
BoolVariable ( Bar bar, System.Boolean initialValue = false, String def = null ) : System

Creates a new boolean variable in a given bar.

OnChanged ( EventArgs e ) : void

Raises the Changed event.

ToString ( ) : String

Private Methods

Method Description
GetCallback ( IntPtr pointer, IntPtr clientData ) : void

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

InitBoolVariable ( Variable var, String id ) : void

Initialization delegate, which creates the boolean variable.

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

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

Method Details

BoolVariable() public method

Creates a new boolean variable in a given bar.
public BoolVariable ( Bar bar, System.Boolean initialValue = false, String def = null ) : System
bar Bar The bar to create the boolean variable in.
initialValue System.Boolean The initial value of the variable.
def String An optional definition string for the new variable.
return System

OnChanged() public method

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

ToString() public method

public ToString ( ) : String
return String