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

eeshow/gui/over.h, over.c: allow also setting of min/max height

This commit is contained in:
Werner Almesberger 2016-08-18 14:46:33 -03:00
parent f4208ed2ad
commit d364b60ebe
2 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,9 @@ fprintf(stderr, "%d + %d %d + %d\n",
ink_w = ink_w > style->wmin ? ink_w : style->wmin;
ink_w = !style->wmax || ink_w < style->wmax ? ink_w : style->wmax;
w = ink_w + 2 * style->pad;
ink_h = ink_h > style->hmin ? ink_h : style->hmin;
ink_h = !style->hmax || ink_h < style->hmax ? ink_h : style->hmax;
h = ink_h + 2 * style->pad;
if (dx < 0)

View File

@ -29,6 +29,7 @@ struct color {
struct overlay_style {
const char *font;
unsigned wmin, wmax;
unsigned hmin, hmax;
unsigned radius;
unsigned pad; /* in x and y direction; adjust for radius ! */
unsigned skip; /* should be list-specific */