pub fn create_trackbar(trackbarname: &str, winname: &str, value: &mut i32, count: i32, on_change: crate::highgui::TrackbarCallback) -> Result<i32> {
	string_arg!(trackbarname);
	string_arg!(winname);
	callback_arg!(on_change_trampoline(pos: i32, userdata: *mut c_void) -> () => userdata in callbacks => on_change(pos: i32) -> ());
	userdata_arg!(userdata in callbacks => on_change);
	unsafe { sys::cv_createTrackbar_const_StringX_const_StringX_intX_int_TrackbarCallback_voidX(trackbarname.as_ptr(), winname.as_ptr(), value, count, on_change_trampoline, userdata) }.into_result()
}
/// Creates a trackbar and attaches it to the specified window.
/// 
/// The function createTrackbar creates a trackbar (a slider or range control) with the specified name
/// and range, assigns a variable value to be a position synchronized with the trackbar and specifies
/// the callback function onChange to be called on the trackbar position change. The created trackbar is
/// displayed in the specified window winname.
/// 
/// 
/// Note:
/// 
/// [__Qt Backend Only__] winname can be empty (or NULL) if the trackbar should be attached to the
/// control panel.
/// 
/// Clicking the label of each trackbar enables editing the trackbar values manually.
/// 
/// ## Parameters
/// * trackbarname: Name of the created trackbar.
/// * winname: Name of the window that will be used as a parent of the created trackbar.
/// * value: Optional pointer to an integer variable whose value reflects the position of the
/// slider. Upon creation, the slider position is defined by this variable.
/// * count: Maximal position of the slider. The minimal position is always 0.
/// * onChange: Pointer to the function to be called every time the slider changes position. This
/// function should be prototyped as void Foo(int,void\*); , where the first parameter is the trackbar
/// position and the second parameter is the user data (see the next parameter). If the callback is
/// the NULL pointer, no callbacks are called, but only value is updated.
/// * userdata: User data that is passed as is to the callback. It can be used to handle trackbar
/// events without using global variables.
/// 
/// ## C++ default parameters
/// * on_change: 0
/// * userdata: 0
Creates a trackbar and attaches it to the specified window.
The function createTrackbar creates a trackbar (a slider or range control) with the specified name
and range, assigns a variable value to be a position synchronized with the trackbar and specifies
the callback function onChange to be called on the trackbar position change. The created trackbar is
displayed in the specified window winname.



[__Qt Backend Only__] winname can be empty (or NULL) if the trackbar should be attached to the
control panel.

Clicking the label of each trackbar enables editing the trackbar values manually.
Creates a trackbar and attaches it to the specified window . The function createTrackbar creates a trackbar ( a slider or range control ) with the specified name and range assigns a variable value to be a position synchronized with the trackbar and specifies the callback function onChange to be called on the trackbar position change . The created trackbar is displayed in the specified window winname . [ __Qt Backend Only__ ] winname can be empty ( or NULL ) if the trackbar should be attached to the control panel . Clicking the label of each trackbar enables editing the trackbar values manually .
pub fn create_trackbar(trackbarname: &str, winname: &str, value: &mut i32, count: i32, on_change: crate::highgui::TrackbarCallback) -> Result<i32> {
	string_arg!(trackbarname);
	string_arg!(winname);
	callback_arg!(on_change_trampoline(pos: i32, userdata: *mut c_void) -> () => userdata in callbacks => on_change(pos: i32) -> ());
	userdata_arg!(userdata in callbacks => on_change);
	unsafe { sys::cv_createTrackbar_const_StringX_const_StringX_intX_int_TrackbarCallback_voidX(trackbarname.as_ptr(), winname.as_ptr(), value, count, on_change_trampoline, userdata) }.into_result()
}
pub fn create_trackbar ( trackbarname : & str , winname : & str , value : & mut i32 , count : i32 , on_change : crate :: highgui :: TrackbarCallback ) -> Result < i32 > { string_arg ! ( trackbarname ) ; string_arg ! ( winname ) ; callback_arg ! ( on_change_trampoline ( pos i32 userdata mut c_void ) ( ) userdata in callbacks on_change ( pos i32 ) ( ) ) ; userdata_arg ! ( userdata in callbacks on_change ) ; unsafe { sys :: cv_createTrackbar_const_StringX_const_StringX_intX_int_TrackbarCallback_voidX ( trackbarname . as_ptr ( ) , winname . as_ptr ( ) , value , count , on_change_trampoline , userdata ) } . into_result ( ) }
Creates a trackbar and attaches it to the specified window.
Creates a trackbar and attaches it to the specified window .
trackbarname
&str
winname
&str
value
&mut i32
count
i32
on_change
crate::highgui::TrackbarCallback
c++ default parameters
0
userdata: 0
0 userdata : 0