mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
eeshow/gui/over.h, over.c: allow also setting of min/max height
This commit is contained in:
@@ -101,6 +101,9 @@ fprintf(stderr, "%d + %d %d + %d\n",
|
|||||||
ink_w = ink_w > style->wmin ? ink_w : style->wmin;
|
ink_w = ink_w > style->wmin ? ink_w : style->wmin;
|
||||||
ink_w = !style->wmax || ink_w < style->wmax ? ink_w : style->wmax;
|
ink_w = !style->wmax || ink_w < style->wmax ? ink_w : style->wmax;
|
||||||
w = ink_w + 2 * style->pad;
|
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;
|
h = ink_h + 2 * style->pad;
|
||||||
|
|
||||||
if (dx < 0)
|
if (dx < 0)
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ struct color {
|
|||||||
struct overlay_style {
|
struct overlay_style {
|
||||||
const char *font;
|
const char *font;
|
||||||
unsigned wmin, wmax;
|
unsigned wmin, wmax;
|
||||||
|
unsigned hmin, hmax;
|
||||||
unsigned radius;
|
unsigned radius;
|
||||||
unsigned pad; /* in x and y direction; adjust for radius ! */
|
unsigned pad; /* in x and y direction; adjust for radius ! */
|
||||||
unsigned skip; /* should be list-specific */
|
unsigned skip; /* should be list-specific */
|
||||||
|
|||||||
Reference in New Issue
Block a user