1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 07:13:08 +02:00

eeshow/gui/: add "underlay" for pop-ups (WIP)

We'll use this to construct stacks for glabels.
This commit is contained in:
Werner Almesberger 2016-08-18 17:08:29 -03:00
parent 434d942377
commit 76f7f80c88
3 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,7 @@ struct gui_ctx {
struct overlay *sheet_overlays;
struct overlay *hist_overlays;
struct overlay *pop_overlays; /* pop-up dialogs */
struct overlay *pop_underlays;
int pop_x, pop_y;
struct aoi *aois; /* areas of interest; in canvas coord */

View File

@ -374,6 +374,7 @@ int gui(unsigned n_args, char **args, bool recurse, int limit)
.sheet_overlays = NULL,
.hist_overlays = NULL,
.pop_overlays = NULL,
.pop_underlays = NULL,
.aois = NULL,
.old_hist = NULL,
.hist_y_offset = 0,

View File

@ -265,6 +265,7 @@ void go_to_sheet(struct gui_ctx *ctx, struct gui_sheet *sheet)
{
aoi_dehover();
overlay_remove_all(&ctx->pop_overlays);
overlay_remove_all(&ctx->pop_underlays);
if (!sheet->rendered) {
render_sheet(sheet);
mark_aois(ctx, sheet);
@ -331,6 +332,7 @@ static bool sheet_click(void *user, int x, int y)
return 1;
overlay_remove_all(&ctx->pop_overlays);
overlay_remove_all(&ctx->pop_underlays);
redraw(ctx);
return 1;
}