mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-16 19:19:21 +02:00
39690c9cb2
draw_ctx, moved it to gui_util.c, and made it a global variable - moved drawing logic for hovering and dragging into dedicated state machine in gui_over.c - hovering now uses a pixmap to restore the background instead of redrawing - moved hover drawing functions from gui_inst.c to gui_tools.c - made hover circle thicker git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5405 99fdad57-331a-0410-800a-d7fa5415bdb3
34 lines
679 B
C
34 lines
679 B
C
/*
|
|
* 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>
|
|
|
|
|
|
/*
|
|
* "highlight" is invoked at the end of each redraw, for optional highlighting
|
|
* of objects.
|
|
*/
|
|
|
|
extern void (*highlight)(void);
|
|
|
|
|
|
void redraw(void);
|
|
|
|
GtkWidget *make_canvas(void);
|
|
void init_canvas(void);
|
|
|
|
#endif /* !GUI_CANVAS_H */
|