summaryrefslogtreecommitdiff
path: root/gui/common.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-25 12:08:47 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-25 12:08:47 -0300
commitaeffb42b88bf866861120e17b0796667a26434f7 (patch)
tree015a7fe438c5d1489db4b26358f9aa4ae13ccfdd /gui/common.h
parent56f3eeff1a9d074967630476fc0e47553d1bf27d (diff)
downloadeeshow-aeffb42b88bf866861120e17b0796667a26434f7.tar.gz
eeshow-aeffb42b88bf866861120e17b0796667a26434f7.tar.bz2
eeshow-aeffb42b88bf866861120e17b0796667a26434f7.zip
gui/: "struct gui_ctx" is now "struct gui"; also s/gui_ctx/gui/ in aoi_ctx
Diffstat (limited to 'gui/common.h')
-rw-r--r--gui/common.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/gui/common.h b/gui/common.h
index a64ab70..5148041 100644
--- a/gui/common.h
+++ b/gui/common.h
@@ -26,12 +26,12 @@
#include "gui/over.h"
-struct gui_ctx;
+struct gui;
struct gui_hist;
struct gui_sheet {
const struct sheet *sch;
- struct gui_ctx *gui; /* back link */
+ struct gui *gui; /* back link */
struct gui_hist *hist; /* back link */
struct gfx *gfx;
struct gfx *gfx_extra;
@@ -55,7 +55,7 @@ struct gui_sheet {
};
struct gui_hist {
- struct gui_ctx *gui; /* back link */
+ struct gui *gui; /* back link */
struct hist *vcs_hist; /* NULL if not from repo */
struct overlay *over; /* current overlay */
struct gui_sheet *sheets; /* NULL if failed */
@@ -73,7 +73,7 @@ struct gui_hist {
struct gui_hist *next;
};
-struct gui_ctx {
+struct gui {
GtkWidget *da;
float scale; /* pixels = eeschema * scale */
@@ -137,8 +137,8 @@ struct gui_ctx {
/* progress.c */
-void setup_progress_bar(struct gui_ctx *gui, GtkWidget *window);
-void progress_update(struct gui_ctx *gui);
+void setup_progress_bar(struct gui *gui, GtkWidget *window);
+void progress_update(struct gui *gui);
/* render.c */
@@ -146,37 +146,37 @@ extern bool use_delta;
extern bool show_extra;
-void redraw(const struct gui_ctx *gui);
+void redraw(const struct gui *gui);
void render_sheet(struct gui_sheet *sheet);
-void render_delta(struct gui_ctx *gui);
-void render_setup(struct gui_ctx *gui);
+void render_delta(struct gui *gui);
+void render_setup(struct gui *gui);
/* glabel.c */
-void dehover_glabel(struct gui_ctx *gui);
+void dehover_glabel(struct gui *gui);
void add_glabel_aoi(struct gui_sheet *sheet, const struct sch_obj *obj);
/* sheet.c */
-void go_to_sheet(struct gui_ctx *gui, struct gui_sheet *sheet);
-void zoom_to_extents(struct gui_ctx *gui);
-void do_revision_overlays(struct gui_ctx *gui);
-void sheet_setup(struct gui_ctx *gui);
+void go_to_sheet(struct gui *gui, struct gui_sheet *sheet);
+void zoom_to_extents(struct gui *gui);
+void do_revision_overlays(struct gui *gui);
+void sheet_setup(struct gui *gui);
/* history.c */
-void show_history(struct gui_ctx *gui, enum selecting sel);
+void show_history(struct gui *gui, enum selecting sel);
/* index.c */
-void index_draw_event(const struct gui_ctx *gui, cairo_t *cr);
-void index_resize(struct gui_ctx *gui);
-void show_index(struct gui_ctx *gui);
+void index_draw_event(const struct gui *gui, cairo_t *cr);
+void index_resize(struct gui *gui);
+void show_index(struct gui *gui);
/* gui.c */
struct gui_sheet *find_corresponding_sheet(struct gui_sheet *pick_from,
struct gui_sheet *ref_in, const struct gui_sheet *ref);
-void mark_aois(struct gui_ctx *gui, struct gui_sheet *sheet);
+void mark_aois(struct gui *gui, struct gui_sheet *sheet);
#endif /* !GUI_COMMON_H */