mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 20:14:04 +02:00
eeshow/gui/over.h, over.c: allow also setting of min/max height
This commit is contained in:
parent
f4208ed2ad
commit
d364b60ebe
@ -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)
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user