Root/gui_canvas.h

Source at commit 809e8142b53ba7227241d39d2c4057f7201087a9 created 4 years 7 months ago.
By Werner Almesberger, gui.c (change_world): don't change color of the active frame
1/*
2 * gui_canvas.h - GUI, canvas
3 *
4 * Written 2009, 2010 by Werner Almesberger
5 * Copyright 2009, 2010 by Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef GUI_CANVAS_H
15#define GUI_CANVAS_H
16
17#include <gtk/gtk.h>
18
19
20/*
21 * "highlight" is invoked at the end of each redraw, for optional highlighting
22 * of objects.
23 */
24
25extern void (*highlight)(void);
26
27
28void refresh_pos(void);
29
30void redraw(void);
31
32void zoom_in_center(void);
33void zoom_out_center(void);
34void zoom_to_frame(void);
35void zoom_to_extents(void);
36
37void canvas_frame_begin(struct frame *frame);
38int canvas_frame_motion(struct frame *frame, int x, int y);
39void canvas_frame_end(void);
40int canvas_frame_drop(struct frame *frame, int x, int y);
41
42GtkWidget *make_canvas(void);
43void init_canvas(void);
44
45#endif /* !GUI_CANVAS_H */
46

Archive Download this file

Branches:
master



interactive