summaryrefslogtreecommitdiff
path: root/gui/pop.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-15 13:06:26 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-15 14:32:02 -0300
commitbe0bd33447caa04c8079ab8d6f048264cc081105 (patch)
tree399246c2891d2e21047999244811fd84e72b1d46 /gui/pop.h
parent41ee777fb5d88b523636ec52ba04ffb0a843d06d (diff)
downloadeeshow-be0bd33447caa04c8079ab8d6f048264cc081105.tar.gz
eeshow-be0bd33447caa04c8079ab8d6f048264cc081105.tar.bz2
eeshow-be0bd33447caa04c8079ab8d6f048264cc081105.zip
gui/pop.c: separate general pop-up functions from glabel.c
... for upcoming sharing.
Diffstat (limited to 'gui/pop.h')
-rw-r--r--gui/pop.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gui/pop.h b/gui/pop.h
new file mode 100644
index 0000000..96fa2a6
--- /dev/null
+++ b/gui/pop.h
@@ -0,0 +1,27 @@
+/*
+ * gui/pop.h - Pop-up helper functions
+ *
+ * Written 2016 by Werner Almesberger
+ * Copyright 2016 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_POP_H
+#define GUI_POP_H
+
+#include "gui/common.h"
+
+
+void eeschema_coord(const struct gui *gui, int x, int y, int *rx, int *ry);
+void dehover_pop(struct gui *gui);
+
+void add_pop_header(struct gui *gui, unsigned width, const char *label);
+void add_pop_item(struct gui *gui, void (*click)(void *user), void *user,
+ unsigned width, bool dim, const char *fmt, ...);
+void add_pop_frame(struct gui *gui);
+
+#endif /* !GUI_POP_H */