]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
Move prototype for C in CreateTrackbar
authorjamesb <jamesb@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Wed, 24 Mar 2010 18:50:39 +0000 (18:50 +0000)
committerjamesb <jamesb@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Wed, 24 Mar 2010 18:50:39 +0000 (18:50 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@2897 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/doc/HighGui.tex

index 7457cf7d1bde1aecdf88ba6587e274ec4a0f6aa6..2be594df527ca3f63bad8b6b92b2e7690179bb7b 100644 (file)
@@ -41,9 +41,6 @@ int cvCreateTrackbar( \par const char* trackbarName, \par const char* windowName
                       \par int* value, \par int count, \par CvTrackbarCallback onChange );
 }
 \cvdefPy{CreateTrackbar(trackbarName, windowName, value, count, onChange) -> None}
-\begin{lstlisting}
-CV_EXTERN_C_FUNCPTR( void (*CvTrackbarCallback)(int pos) );
-\end{lstlisting}
 
 \begin{description}
 \cvarg{trackbarName}{Name of the created trackbar.}
@@ -66,6 +63,11 @@ This function should be prototyped as \texttt{void Foo(int);}  Can be NULL if ca
 \end{description}
 
 The function \texttt{cvCreateTrackbar} creates a trackbar (a.k.a. slider or range control) with the specified name and range, assigns a variable to be syncronized with trackbar position and specifies a callback function to be called on trackbar position change. The created trackbar is displayed on the top of the given window.
+\ifC
+\begin{lstlisting}
+CV_EXTERN_C_FUNCPTR( void (*CvTrackbarCallback)(int pos) );
+\end{lstlisting}
+\fi
 
 \cvCPyFunc{DestroyAllWindows} 
 Destroys all of the HighGUI windows.