C# Класс AntTweakBar.DoubleVariable

An AntTweakBar variable which can hold a double-precision floating-point number.
Наследование: Variable, IValueVariable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DoubleVariable ( Bar bar, Double initialValue, String def = null ) : System

Creates a new double-precision floating-point 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.

InitDoubleVariable ( Variable var, String id ) : void

Initialization delegate, which creates the floating-point variable.

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

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

Описание методов

DoubleVariable() публичный Метод

Creates a new double-precision floating-point variable in a given bar.
public DoubleVariable ( Bar bar, Double initialValue, String def = null ) : System
bar Bar The bar to create the floating-point variable in.
initialValue Double The initial 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