Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

guicommon.c File Reference

#include <time.h>
#include <math.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <glib.h>

Functions

void gui_common_drawrobot (GtkWidget *widget, int *x, int *y, int mx, int my, int mouseaction)
 Function for drawing the robot and to calculate the absolute postion of the robot out of the mouse-position. More...


Function Documentation

void gui_common_drawrobot GtkWidget *    widget,
int *    x,
int *    y,
int    mx,
int    my,
int    mouseaction
 

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

Parameters:
widget  (GtkWidget *) pointer to affected object (drawing area).
x  (int *) pointer to absolute x position of the robot (will changed if mouseaction equal to 1 or 2)
y  (int *) pointer to absolute y position of the robot (will changed if mouseaction equal to 1 or 2)
mx  (int) x mouse position (only relevant if mouseaction equal to 1 or 2)
my  (int) y mouse position (only relevant if mouseaction equal to 1 or 2)
mouseaction  (int) current action: 1: start moving, 2: moving or finish moving, other: plot only


Generated on Mon Apr 25 10:53:25 2005 for Hofmeier_FYP:libcomm by doxygen1.2.15