UI:
* Added initial color ramp and curve mapping templates.
This commit is contained in:
@@ -52,6 +52,7 @@ struct rctf;
|
||||
struct uiStyle;
|
||||
struct uiFontStyle;
|
||||
struct ColorBand;
|
||||
struct CurveMapping;
|
||||
|
||||
typedef struct uiBut uiBut;
|
||||
typedef struct uiBlock uiBlock;
|
||||
@@ -514,9 +515,9 @@ void test_imapoin_but(struct bContext *C, char *name, struct ID **idpp);
|
||||
void autocomplete_bone(struct bContext *C, char *str, void *arg_v);
|
||||
void autocomplete_vgroup(struct bContext *C, char *str, void *arg_v);
|
||||
|
||||
struct CurveMapping;
|
||||
struct rctf;
|
||||
void curvemap_buttons(uiBlock *block, struct CurveMapping *cumap, char labeltype, short event, short redraw, struct rctf *rect);
|
||||
void colorband_buttons(uiBlock *block, struct ColorBand *coba, struct rctf *rect, int small);
|
||||
|
||||
|
||||
/* Module
|
||||
@@ -604,6 +605,8 @@ void uiTemplateHeaderID(uiLayout *layout, struct bContext *C, struct PointerRNA
|
||||
uiLayout *uiTemplateModifier(uiLayout *layout, struct PointerRNA *ptr);
|
||||
uiLayout *uiTemplateConstraint(uiLayout *layout, struct PointerRNA *ptr);
|
||||
void uiTemplatePreview(uiLayout *layout, struct ID *id);
|
||||
void uiTemplateColorRamp(uiLayout *layout, struct ColorBand *coba, int expand);
|
||||
void uiTemplateCurveMapping(uiLayout *layout, struct CurveMapping *cumap, int type);
|
||||
|
||||
/* items */
|
||||
void uiItemO(uiLayout *layout, char *name, int icon, char *opname);
|
||||
|
||||
Reference in New Issue
Block a user