uiAttributeBackground

This commit is contained in:
Niklas Mischkulnig 2018-06-04 17:12:05 +02:00
parent 2f0e6e974b
commit 24d802abc5
2 changed files with 9 additions and 0 deletions

View File

@ -183,6 +183,11 @@ uiAttribute *uiNewBackgroundAttribute(double r, double g, double b, double a)
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 *a;

4
ui.h
View File

@ -664,6 +664,10 @@ _UI_EXTERN void uiAttributeColor(const uiAttribute *a, double *r, double *g, dou
// error to specify an invalid color.
_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...
// uiUnderline specifies a type of underline to use on text.