2009-08-03 19:12:47 +03:00
|
|
|
/*
|
|
|
|
* gui_canvas.h - GUI, canvas
|
|
|
|
*
|
|
|
|
* Written 2009 by Werner Almesberger
|
|
|
|
* Copyright 2009 by Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GUI_CANVAS_H
|
|
|
|
#define GUI_CANVAS_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
|
2009-08-08 00:47:51 +03:00
|
|
|
/*
|
|
|
|
* "highlight" is invoked at the end of each redraw, for optional highlighting
|
|
|
|
* of objects.
|
|
|
|
*/
|
|
|
|
|
2009-08-08 17:11:26 +03:00
|
|
|
extern void (*highlight)(void);
|
2009-08-08 00:47:51 +03:00
|
|
|
|
|
|
|
|
2009-08-16 14:21:48 +03:00
|
|
|
void refresh_pos(void);
|
|
|
|
|
2009-08-03 19:12:47 +03:00
|
|
|
void redraw(void);
|
|
|
|
|
2009-08-16 15:04:01 +03:00
|
|
|
void zoom_in_center(void);
|
|
|
|
void zoom_out_center(void);
|
|
|
|
void zoom_to_frame(void);
|
|
|
|
void zoom_to_extents(void);
|
|
|
|
|
2009-08-03 19:12:47 +03:00
|
|
|
GtkWidget *make_canvas(void);
|
|
|
|
void init_canvas(void);
|
|
|
|
|
|
|
|
#endif /* !GUI_CANVAS_H */
|