#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <laser-nav.h>#include "plot_gtk.h"
Functions | |
| void | print_usage () |
| Print usage. | |
| int | parseopt (int argc, char **argv) |
| Parse program arguments. | |
| void | quit () |
| FUNCTION PROTOTYPES. | |
| void | load_pixmaps (GtkWidget *widget, struct moveable_obj *moveable, struct pixmap_obj *pixmaps) |
| Get the width and height for the xpm data. | |
| void | load_scene_pixmap (GtkWidget *widget) |
| Load all scene pixmaps. | |
| gint | expose_event (GtkWidget *widget, GdkEventExpose *event) |
| gint | repaint (gpointer data) |
| void | test_repaint () |
| GKT test function. | |
| void | init_animation (int argc, char *argv[], void(*repaint_func)()) |
| Initialization of the animation. | |
| void | test_animation (int argc, char *argv[]) |
| Test GTK animation. | |
| void | scene_repaint () |
| Repaint the scene (background, points, ...). | |
| void | initdata () |
| Init data structures. | |
| void | destroydata () |
| Destroy data. | |
| int | main (int _argc, char **_argv) |
| Main function. | |
Variables | |
| struct pln_point | positions [FWIDTH *FHEIGHT] |
| int | poscount = 0 |
| void(* | repaint_objects )() |
| void destroydata | ( | ) |
Destroy data.

| gint expose_event | ( | GtkWidget * | widget, | |
| GdkEventExpose * | event | |||
| ) |

| void init_animation | ( | int | argc, | |
| char * | argv[], | |||
| void(*)() | repaint_func | |||
| ) |
Initialization of the animation.
| argc | program`s arguments count | |
| argv | program`s arguments | |
| repaint_func | repaint function |

| void initdata | ( | ) |
Init data structures.


| void load_pixmaps | ( | GtkWidget * | widget, | |
| struct moveable_obj * | moveable, | |||
| struct pixmap_obj * | pixmaps | |||
| ) |
Get the width and height for the xpm data.
Load pixmaps according to predefined data struct.

| void load_scene_pixmap | ( | GtkWidget * | widget | ) |
Load all scene pixmaps.

| int main | ( | int | _argc, | |
| char ** | _argv | |||
| ) |
Main function.
| argc | Arguments counter | |
| argv | Arguments array |

| int parseopt | ( | int | argc, | |
| char ** | argv | |||
| ) |
| void print_usage | ( | ) |
Print usage.

| void quit | ( | ) |
FUNCTION PROTOTYPES.

| gint repaint | ( | gpointer | data | ) |

| void scene_repaint | ( | ) |
Repaint the scene (background, points, ...).

| void test_animation | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Test GTK animation.

| void test_repaint | ( | ) |
GKT test function.

| int poscount = 0 |
| void(* repaint_objects)() |
1.7.1