Constructor
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public CvButton( string name, CvButtonCallback callback, Object userdata, ButtonType button_type, int initial_button_state )
Parameters
- name
- Type: SystemString
Name of the button ( if null, the name will be “button <number of boutton>”) - callback
- Type: OpenCvSharpCvButtonCallback
Pointer to the function to be called every time the button changed its state. - userdata
- Type: SystemObject
object passed to the callback function. - button_type
- Type: OpenCvSharpButtonType
button type - initial_button_state
- Type: SystemInt32
Default state of the button. Use for checkbox and radiobox, its value could be 0 or 1.
See Also