\section{guicommon.c File Reference}
\label{guicommon_8c}\index{guicommon.c@{guicommon.c}}
{\tt \#include $<$time.h$>$}\par
{\tt \#include $<$math.h$>$}\par
{\tt \#include $<$pthread.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$gtk/gtk.h$>$}\par
{\tt \#include $<$glib.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf gui\_\-common\_\-drawrobot} (Gtk\-Widget $\ast$widget, int $\ast$x, int $\ast$y, int mx, int my, int mouseaction)
\begin{CompactList}\small\item\em Function for drawing the robot and to calculate the absolute postion of the robot out of the mouse-position.\item\end{CompactList}\end{CompactItemize}


\subsection{Function Documentation}
\index{guicommon.c@{guicommon.c}!gui_common_drawrobot@{gui\_\-common\_\-drawrobot}}
\index{gui_common_drawrobot@{gui\_\-common\_\-drawrobot}!guicommon.c@{guicommon.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gui\_\-common\_\-drawrobot (Gtk\-Widget $\ast$ {\em widget}, int $\ast$ {\em x}, int $\ast$ {\em y}, int {\em mx}, int {\em my}, int {\em mouseaction})}\label{guicommon_8c_a0}


Function for drawing the robot and to calculate the absolute postion of the robot out of the mouse-position.

\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
widget}](Gtk\-Widget $\ast$) pointer to affected object (drawing area).\item[{\em 
x}](int $\ast$) pointer to absolute x position of the robot (will changed if mouseaction equal to 1 or 2)\item[{\em 
y}](int $\ast$) pointer to absolute y position of the robot (will changed if mouseaction equal to 1 or 2)\item[{\em 
mx}](int) x mouse position (only relevant if mouseaction equal to 1 or 2)\item[{\em 
my}](int) y mouse position (only relevant if mouseaction equal to 1 or 2)\item[{\em 
mouseaction}](int) current action: 1: start moving, 2: moving or finish moving, other: plot only \end{description}
\end{Desc}
