uiAttributeBackground
This commit is contained in:
parent
2f0e6e974b
commit
24d802abc5
|
@ -183,6 +183,11 @@ uiAttribute *uiNewBackgroundAttribute(double r, double g, double b, double a)
|
||||||
return at;
|
return at;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void uiAttributeBackground(const uiAttribute *a, double *r, double *g, double *b, double *alpha)
|
||||||
|
{
|
||||||
|
uiAttributeColor(a, r, g, b, alpha);
|
||||||
|
}
|
||||||
|
|
||||||
uiAttribute *uiNewUnderlineAttribute(uiUnderline u)
|
uiAttribute *uiNewUnderlineAttribute(uiUnderline u)
|
||||||
{
|
{
|
||||||
uiAttribute *a;
|
uiAttribute *a;
|
||||||
|
|
4
ui.h
4
ui.h
|
@ -664,6 +664,10 @@ _UI_EXTERN void uiAttributeColor(const uiAttribute *a, double *r, double *g, dou
|
||||||
// error to specify an invalid color.
|
// error to specify an invalid color.
|
||||||
_UI_EXTERN uiAttribute *uiNewBackgroundAttribute(double r, double g, double b, double a);
|
_UI_EXTERN uiAttribute *uiNewBackgroundAttribute(double r, double g, double b, double a);
|
||||||
|
|
||||||
|
// uiAttributeBackground() returns the background color stored in a. It is an
|
||||||
|
// error to call this on a uiAttribute that does not hold a background color.
|
||||||
|
_UI_EXTERN void uiAttributeBackground(const uiAttribute *a, double *r, double *g, double *b, double *alpha);
|
||||||
|
|
||||||
// TODO reuse uiAttributeColor() for background colors, or make a new function...
|
// TODO reuse uiAttributeColor() for background colors, or make a new function...
|
||||||
|
|
||||||
// uiUnderline specifies a type of underline to use on text.
|
// uiUnderline specifies a type of underline to use on text.
|
||||||
|
|
Loading…
Reference in New Issue