diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-04 01:58:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-04 03:00:48 +0300 |
commit | 54a4c1cf359c369c8fc16ecf0ecaa92e6f650e2f (patch) | |
tree | 763437a793072d559095c6bb8d9cf23ca1c111f1 /source/blender/makesdna | |
parent | 4431c5825bf26d314abe1f79646883fd746e495b (diff) |
UI: refactor layout vars out of uiFontStyle
Word wrap and alignment layout args only used by UI_fontstyle_draw
were vars in uiFontStyle.
These were written to before drawing, so better pass as an argument.
Pass uiFontStyle & uiWidgetColors as const args.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 056b7be511e..3f3fa6819ae 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -80,24 +80,13 @@ typedef struct uiFontStyle { short uifont_id; /* saved in file, 0 is default */ short points; /* actual size depends on 'global' dpi */ short kerning; /* unfitted or default kerning value. */ - char word_wrap; /* enable word-wrap when drawing */ - char pad[5]; short italic, bold; /* style hint */ short shadow; /* value is amount of pixels blur */ short shadx, shady; /* shadow offset in pixels */ - short align; /* text align hint */ float shadowalpha; /* total alpha */ float shadowcolor; /* 1 value, typically white or black anyway */ } uiFontStyle; -/* uiFontStyle.align */ -typedef enum eFontStyle_Align { - UI_STYLE_TEXT_LEFT = 0, - UI_STYLE_TEXT_CENTER = 1, - UI_STYLE_TEXT_RIGHT = 2 -} eFontStyle_Align; - - /* this is fed to the layout engine and widget code */ typedef struct uiStyle { |