Reimplemented tab page margins.
This commit is contained in:
parent
8a84b9e062
commit
f9f5abc802
|
@ -178,8 +178,7 @@ static int tabMargined(uiTab *tt, uintmax_t n)
|
||||||
uiControl *page;
|
uiControl *page;
|
||||||
|
|
||||||
page = ptrArrayIndex(t->pages, uiControl *, n);
|
page = ptrArrayIndex(t->pages, uiControl *, n);
|
||||||
//TODO return page->margined;
|
return tabPageMargined(page);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tabSetMargined(uiTab *tt, uintmax_t n, int margined)
|
static void tabSetMargined(uiTab *tt, uintmax_t n, int margined)
|
||||||
|
@ -188,8 +187,8 @@ static void tabSetMargined(uiTab *tt, uintmax_t n, int margined)
|
||||||
uiControl *page;
|
uiControl *page;
|
||||||
|
|
||||||
page = ptrArrayIndex(t->pages, uiControl *, n);
|
page = ptrArrayIndex(t->pages, uiControl *, n);
|
||||||
//TODO page->margined = margined;
|
tabPageSetMargined(page, margined);
|
||||||
//TODO uiControlQueueResize(page->control);
|
uiControlQueueResize(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
uiTab *uiNewTab(void)
|
uiTab *uiNewTab(void)
|
||||||
|
|
|
@ -99,3 +99,17 @@ uiControl *newTabPage(uiControl *child)
|
||||||
|
|
||||||
return uiControl(t);
|
return uiControl(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int tabPageMargined(uiControl *c)
|
||||||
|
{
|
||||||
|
struct tabPage *t = (struct tabPage *) c;
|
||||||
|
|
||||||
|
return t->margined;
|
||||||
|
}
|
||||||
|
|
||||||
|
void tabPageSetMargined(uiControl *c, int margined)
|
||||||
|
{
|
||||||
|
struct tabPage *t = (struct tabPage *) c;
|
||||||
|
|
||||||
|
t->margined = margined;
|
||||||
|
}
|
||||||
|
|
|
@ -134,3 +134,5 @@ extern void setSingleHWNDFuncs(uiControl *);
|
||||||
|
|
||||||
// tabpage.c
|
// tabpage.c
|
||||||
extern uiControl *newTabPage(uiControl *);
|
extern uiControl *newTabPage(uiControl *);
|
||||||
|
extern int tabPageMargined(uiControl *);
|
||||||
|
extern void tabPageSetMargined(uiControl *, int);
|
||||||
|
|
Loading…
Reference in New Issue