gui_canvas.h 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef GUI_CANVAS_H
  13. #define GUI_CANVAS_H
  14. #include <gtk/gtk.h>
  15. /*
  16. * "highlight" is invoked at the end of each redraw, for optional highlighting
  17. * of objects.
  18. */
  19. extern void (*highlight)(void);
  20. void refresh_pos(void);
  21. void redraw(void);
  22. void zoom_in_center(void);
  23. void zoom_out_center(void);
  24. void zoom_to_frame(void);
  25. void zoom_to_extents(void);
  26. void canvas_frame_begin(struct frame *frame);
  27. int canvas_frame_motion(struct frame *frame, int x, int y);
  28. void canvas_frame_end(void);
  29. int canvas_frame_drop(struct frame *frame, int x, int y);
  30. GtkWidget *make_canvas(void);
  31. void init_canvas(void);
  32. #endif /* !GUI_CANVAS_H */