mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-17 20:04:05 +02:00
eeshow/gui/: add "underlay" for pop-ups (WIP)
We'll use this to construct stacks for glabels.
This commit is contained in:
parent
434d942377
commit
76f7f80c88
@ -79,6 +79,7 @@ struct gui_ctx {
|
|||||||
struct overlay *sheet_overlays;
|
struct overlay *sheet_overlays;
|
||||||
struct overlay *hist_overlays;
|
struct overlay *hist_overlays;
|
||||||
struct overlay *pop_overlays; /* pop-up dialogs */
|
struct overlay *pop_overlays; /* pop-up dialogs */
|
||||||
|
struct overlay *pop_underlays;
|
||||||
int pop_x, pop_y;
|
int pop_x, pop_y;
|
||||||
struct aoi *aois; /* areas of interest; in canvas coord */
|
struct aoi *aois; /* areas of interest; in canvas coord */
|
||||||
|
|
||||||
|
@ -374,6 +374,7 @@ int gui(unsigned n_args, char **args, bool recurse, int limit)
|
|||||||
.sheet_overlays = NULL,
|
.sheet_overlays = NULL,
|
||||||
.hist_overlays = NULL,
|
.hist_overlays = NULL,
|
||||||
.pop_overlays = NULL,
|
.pop_overlays = NULL,
|
||||||
|
.pop_underlays = NULL,
|
||||||
.aois = NULL,
|
.aois = NULL,
|
||||||
.old_hist = NULL,
|
.old_hist = NULL,
|
||||||
.hist_y_offset = 0,
|
.hist_y_offset = 0,
|
||||||
|
@ -265,6 +265,7 @@ void go_to_sheet(struct gui_ctx *ctx, struct gui_sheet *sheet)
|
|||||||
{
|
{
|
||||||
aoi_dehover();
|
aoi_dehover();
|
||||||
overlay_remove_all(&ctx->pop_overlays);
|
overlay_remove_all(&ctx->pop_overlays);
|
||||||
|
overlay_remove_all(&ctx->pop_underlays);
|
||||||
if (!sheet->rendered) {
|
if (!sheet->rendered) {
|
||||||
render_sheet(sheet);
|
render_sheet(sheet);
|
||||||
mark_aois(ctx, sheet);
|
mark_aois(ctx, sheet);
|
||||||
@ -331,6 +332,7 @@ static bool sheet_click(void *user, int x, int y)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
overlay_remove_all(&ctx->pop_overlays);
|
overlay_remove_all(&ctx->pop_overlays);
|
||||||
|
overlay_remove_all(&ctx->pop_underlays);
|
||||||
redraw(ctx);
|
redraw(ctx);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user