Used to set the SubType of a 2D Vector pin, which is a set of limitations to the pins value range, used by the GUI to guide the user to insert correct values.
Note though that this does not prevent a user from setting "wrong" values on a pin. Ultimately each node is responsible for dealing with all possible inputs correctly.
Should only be called once immediately after the pin has been created in IPlugin.SetPluginHost.
Namespace: VVVV.PluginInterfaces.V1Assembly: VVVV.PluginInterfaces (in VVVV.PluginInterfaces.dll) Version: 2.0.4694.10872
Syntax
C# |
---|
void SetSubType2D( double min, double max, double stepSize, double default1, double default2, bool isBang, bool isToggle, bool isInteger ) |
Parameters
- min
- Type: System..::..Double
Minimum of the Values range.
- max
- Type: System..::..Double
Maximum of the Values range.
- stepSize
- Type: System..::..Double
StepSize used when scrolling the value up or down via the GUI.
- default1
- Type: System..::..Double
The Value the pins 1st dimension is initialized with and can be reset to at any time.
- default2
- Type: System..::..Double
The Value the pins 2nd dimension is initialized with and can be reset to at any time.
- isBang
- Type: System..::..Boolean
Hint to the GUI that this Value is a bang.
- isToggle
- Type: System..::..Boolean
Hint to the GUI that this is a toggling Value.
- isInteger
- Type: System..::..Boolean
Hint to the GUI that this is an integer Value.