UI Code Quality: Use derived struct for color ramp buttons

The same changes as rB570044e9f412 and rB0ab21bf06ae0.
This commit is contained in:
2020-08-13 22:00:50 -04:00
parent 0ab21bf06a
commit cd179b5048
4 changed files with 36 additions and 12 deletions

View File

@@ -268,7 +268,6 @@ struct uiBut {
char *editstr;
double *editval;
float *editvec;
void *editcoba;
uiButPushedStateFunc pushed_state_func;
void *pushed_state_arg;
@@ -335,6 +334,13 @@ typedef struct uiButHSVCube {
eButGradientType gradient_type;
} uiButHSVCube;
/** Derived struct for #UI_BTYPE_CURVEPROFILE. */
typedef struct uiButColorBand {
uiBut but;
struct ColorBand *edit_coba;
} uiButColorBand;
/** Derived struct for #UI_BTYPE_CURVEPROFILE. */
typedef struct uiButCurveProfile {
uiBut but;