diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-19 19:07:13 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-12-19 19:07:20 +0300 |
commit | 09be4a0917fbdb391341a6bfcc1e918fb75d0fd2 (patch) | |
tree | c2d9ed3accc9f92281752fc98a725c32cb1cbb5d /source/blender/editors/interface/interface_intern.h | |
parent | a5a302bd18061e833c4d629fffd06f57e7447d39 (diff) |
Cleanup: Use typedef for UI emboss type enum
Previously both `char` and `int` were used to represent this enum.
Differential Revision: https://developer.blender.org/D9903
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index a35d9d5d336..c005b456b6a 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -220,8 +220,8 @@ struct uiBut { const char *disabled_info; BIFIconID icon; - /** emboss: UI_EMBOSS, UI_EMBOSS_NONE ... etc, copied from the #uiBlock.emboss */ - char emboss; + /** Copied from the #uiBlock.emboss */ + eUIEmbossType emboss; /** direction in a pie menu, used for collision detection (RadialDirection) */ signed char pie_dir; /** could be made into a single flag */ @@ -502,8 +502,8 @@ struct uiBlock { char direction; /** UI_BLOCK_THEME_STYLE_* */ char theme_style; - /** UI_EMBOSS, UI_EMBOSS_NONE ... etc, copied to #uiBut.emboss */ - char emboss; + /** Copied to #uiBut.emboss */ + eUIEmbossType emboss; bool auto_open; char _pad[5]; double auto_open_last; |