Blender  V2.93
UI_resources.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "BLI_sys_types.h"
27 
28 /* Define icon enum. */
29 #define DEF_ICON(name) ICON_##name,
30 #define DEF_ICON_VECTOR(name) ICON_##name,
31 #define DEF_ICON_COLOR(name) ICON_##name,
32 #define DEF_ICON_BLANK(name) ICON_BLANK_##name,
33 
34 typedef enum {
35 /* ui */
36 #include "UI_icons.h"
38 } BIFIconID;
39 
40 #define BIFICONID_FIRST (ICON_NONE)
41 
42 /* use to denote intentionally unset theme color */
43 #define TH_UNDEFINED -1
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 typedef enum ThemeColorID {
51 
53  /* Common colors among spaces. */
54 
65 
70 
71  /* panels */
75 
79 
83 
123 
124  /* this eight colors should be in one block */
135 
137  TH_ACTIVE_VERT, /* equivalent of TH_EDITMESH_ACTIVE for splines */
138 
148 
153 
156 
157  TH_KEYTYPE_KEYFRAME, /* KEYTYPES */
167 
170 
175 
195 
202 
216 
219 
223 
227 
231 
233 
235 
240 
243 
256 
263 
266 
268 
271 
272  TH_MATCH, /* highlight color for search matches */
273  TH_SELECT_HIGHLIGHT, /* highlight color for selected outliner item */
274  TH_SELECT_ACTIVE, /* highlight color for active outliner item */
275  TH_SELECTED_OBJECT, /* selected object color for outliner */
276  TH_ACTIVE_OBJECT, /* active object color for outliner */
277  TH_EDITED_OBJECT, /* edited object color for outliner */
278  TH_ROW_ALTERNATE, /* overlay on every other row */
279 
281 
282  TH_ANIM_ACTIVE, /* active action */
283  TH_ANIM_INACTIVE, /* no active action */
284  TH_ANIM_PREVIEW_RANGE, /* preview range overlay */
285 
294 
296 
297  TH_NLA_TWEAK, /* 'tweaking' track in NLA */
298  TH_NLA_TWEAK_DUPLI, /* error/warning flag for other strips referencing dupli strip */
299 
307 
311 
315 
316  TH_AXIS_X, /* X/Y/Z Axis */
319 
326 
328 
344 
346 
349 
353 
354 /* specific defines per space should have higher define values */
355 
356 struct bTheme;
357 
358 struct bThemeState {
359  struct bTheme *theme;
361 };
362 
363 /* THE CODERS API FOR THEMES: */
364 
365 /* returns one value, not scaled */
366 float UI_GetThemeValuef(int colorid);
367 int UI_GetThemeValue(int colorid);
368 
369 float UI_GetThemeValueTypef(int colorid, int spacetype);
370 int UI_GetThemeValueType(int colorid, int spacetype);
371 
372 /* get three color values, scaled to 0.0-1.0 range */
373 void UI_GetThemeColor3fv(int colorid, float col[3]);
374 void UI_GetThemeColorBlend3ubv(int colorid1, int colorid2, float fac, unsigned char col[3]);
375 void UI_GetThemeColorBlend3f(int colorid1, int colorid2, float fac, float r_col[3]);
376 void UI_GetThemeColorBlend4f(int colorid1, int colorid2, float fac, float r_col[4]);
377 /* get the color, range 0.0-1.0, complete with shading offset */
378 void UI_GetThemeColorShade3fv(int colorid, int offset, float col[3]);
379 void UI_GetThemeColorShade3ubv(int colorid, int offset, unsigned char col[3]);
380 void UI_GetThemeColorShade4ubv(int colorid, int offset, unsigned char col[4]);
381 
382 /* get three color values, range 0-255,
383  * complete with shading offset for the RGB components and blending. */
385  int colorid1, int colorid2, float fac, int offset, unsigned char col[3]);
386 
387 /* get four color values, scaled to 0.0-1.0 range */
388 void UI_GetThemeColor4fv(int colorid, float col[4]);
389 
390 /* get four color values from specified space type, scaled to 0.0-1.0 range */
391 void UI_GetThemeColorType4fv(int colorid, int spacetype, float col[4]);
392 
393 /* get four color values, range 0.0-1.0, complete with shading offset for the RGB components */
394 void UI_GetThemeColorShade4fv(int colorid, int offset, float col[4]);
395 void UI_GetThemeColorShadeAlpha4fv(int colorid, int coloffset, int alphaoffset, float col[4]);
396 
397 /* get four color values ranged between 0 and 255; includes the alpha channel */
398 void UI_GetThemeColorShadeAlpha4ubv(int colorid,
399  int coloffset,
400  int alphaoffset,
401  unsigned char col[4]);
402 
403 /* get four color values, range 0.0-1.0,
404  * complete with shading offset for the RGB components and blending. */
406  int colorid1, int colorid2, float fac, int offset, float col[3]);
408  int colorid1, int colorid2, float fac, int offset, float col[4]);
409 
410 /* get the 3 or 4 byte values */
411 void UI_GetThemeColor3ubv(int colorid, unsigned char col[3]);
412 void UI_GetThemeColor4ubv(int colorid, unsigned char col[4]);
413 
414 /* get a theme color from specified space type */
415 void UI_GetThemeColorType3fv(int colorid, int spacetype, float col[3]);
416 void UI_GetThemeColorType3ubv(int colorid, int spacetype, unsigned char col[3]);
417 void UI_GetThemeColorType4ubv(int colorid, int spacetype, unsigned char col[4]);
418 
419 /* get theme color for coloring monochrome icons */
420 bool UI_GetIconThemeColor4ubv(int colorid, unsigned char col[4]);
421 
422 /* shade a 3 byte color (same as UI_GetColorPtrBlendShade3ubv with 0.0 factor) */
423 void UI_GetColorPtrShade3ubv(const unsigned char cp1[3], unsigned char col[3], int offset);
424 
425 /* get a 3 byte color, blended and shaded between two other char color pointers */
426 void UI_GetColorPtrBlendShade3ubv(const unsigned char cp1[3],
427  const unsigned char cp2[3],
428  unsigned char col[3],
429  float fac,
430  int offset);
431 
432 /* sets the font color
433  * (for anything fancy use UI_GetThemeColor[Fancy] then BLF_color) */
434 void UI_FontThemeColor(int fontid, int colorid);
435 
436 /* Clear the frame-buffer using the input colorid. */
437 void UI_ThemeClearColor(int colorid);
438 
439 /* internal (blender) usage only, for init and set active */
440 void UI_SetTheme(int spacetype, int regionid);
441 
442 /* get current theme */
443 struct bTheme *UI_GetTheme(void);
444 
445 void UI_Theme_Store(struct bThemeState *theme_state);
446 void UI_Theme_Restore(struct bThemeState *theme_state);
447 
448 /* return shadow width outside menus and popups */
449 int UI_ThemeMenuShadowWidth(void);
450 
451 /* only for buttons in theme editor! */
452 const unsigned char *UI_ThemeGetColorPtr(struct bTheme *btheme, int spacetype, int colorid);
453 
454 void UI_make_axis_color(const unsigned char *src_col, unsigned char *dst_col, const char axis);
455 
456 #ifdef __cplusplus
457 }
458 #endif
void UI_make_axis_color(const unsigned char *src_col, unsigned char *dst_col, const char axis)
void UI_GetThemeColorType3fv(int colorid, int spacetype, float col[3])
Definition: resources.c:1390
void UI_GetThemeColorShadeAlpha4ubv(int colorid, int coloffset, int alphaoffset, unsigned char col[4])
Definition: resources.c:1103
void UI_GetThemeColor3fv(int colorid, float col[3])
Definition: resources.c:1191
void UI_GetThemeColorBlend3ubv(int colorid1, int colorid2, float fac, unsigned char col[3])
Definition: resources.c:1122
void UI_GetThemeColorType3ubv(int colorid, int spacetype, unsigned char col[3])
Definition: resources.c:1398
int UI_GetThemeValueType(int colorid, int spacetype)
Definition: resources.c:1184
BIFIconID
Definition: UI_resources.h:34
@ BIFICONID_LAST
Definition: UI_resources.h:37
ThemeColorID
Definition: UI_resources.h:49
@ TH_SELECT_ACTIVE
Definition: UI_resources.h:274
@ TH_EDGE_SHARP
Definition: UI_resources.h:217
@ TH_ICON_MODIFIER
Definition: UI_resources.h:290
@ TH_BONE_SOLID
Definition: UI_resources.h:149
@ TH_TAB_OUTLINE
Definition: UI_resources.h:64
@ TH_GIZMO_HI
Definition: UI_resources.h:320
@ TH_ROW_ALTERNATE
Definition: UI_resources.h:278
@ TH_HANDLE_ALIGN
Definition: UI_resources.h:128
@ TH_INFO_PROPERTY_TEXT
Definition: UI_resources.h:340
@ TH_NORMAL
Definition: UI_resources.h:108
@ TH_PATH_BEFORE
Definition: UI_resources.h:250
@ TH_LIGHT
Definition: UI_resources.h:171
@ TH_PANEL_HEADER
Definition: UI_resources.h:72
@ TH_NODE_FRAME
Definition: UI_resources.h:190
@ TH_KEYBORDER_SELECT
Definition: UI_resources.h:169
@ TH_NODE_INPUT
Definition: UI_resources.h:177
@ TH_FACE_BACK
Definition: UI_resources.h:106
@ TH_NODE
Definition: UI_resources.h:176
@ TH_BACK_GRAD
Definition: UI_resources.h:57
@ TH_MARKER_OUTLINE
Definition: UI_resources.h:244
@ TH_TIME_SCRUB_BACKGROUND
Definition: UI_resources.h:114
@ TH_LNORMAL
Definition: UI_resources.h:110
@ TH_TIME_KEYFRAME
Definition: UI_resources.h:117
@ TH_KEYTYPE_BREAKDOWN
Definition: UI_resources.h:161
@ TH_EDGE_FACESEL
Definition: UI_resources.h:103
@ TH_NODE_FILTER
Definition: UI_resources.h:180
@ TH_SELECT_HIGHLIGHT
Definition: UI_resources.h:273
@ TH_INFO_WARNING_TEXT
Definition: UI_resources.h:334
@ TH_NURB_SEL_VLINE
Definition: UI_resources.h:122
@ TH_ICON_OBJECT
Definition: UI_resources.h:288
@ TH_BUNDLE_SOLID
Definition: UI_resources.h:248
@ TH_NODE_GROUP
Definition: UI_resources.h:189
@ TH_KEYTYPE_KEYFRAME
Definition: UI_resources.h:157
@ TH_TRANSPARENT_CHECKER_PRIMARY
Definition: UI_resources.h:312
@ TH_BONE_POSE_ACTIVE
Definition: UI_resources.h:151
@ TH_DRAWEXTRA_EDGEANG
Definition: UI_resources.h:237
@ TH_SYNTAX_B
Definition: UI_resources.h:139
@ TH_FREESTYLE_FACE_MARK
Definition: UI_resources.h:270
@ TH_NLA_TRACK
Definition: UI_resources.h:300
@ TH_INFO_DEBUG
Definition: UI_resources.h:337
@ TH_DRAWEXTRA_FACEANG
Definition: UI_resources.h:239
@ TH_ACTIVE_OBJECT
Definition: UI_resources.h:276
@ TH_ICON_FOLDER
Definition: UI_resources.h:292
@ TH_TAB_ACTIVE
Definition: UI_resources.h:61
@ TH_FREESTYLE_EDGE_MARK
Definition: UI_resources.h:269
@ TH_HEADER
Definition: UI_resources.h:66
@ TH_GRID
Definition: UI_resources.h:84
@ TH_VERTEX_ACTIVE
Definition: UI_resources.h:95
@ TH_NODE_SCRIPT
Definition: UI_resources.h:184
@ TH_HANDLE_VERTEX_SIZE
Definition: UI_resources.h:222
@ TH_NLA_TRANSITION_SEL
Definition: UI_resources.h:302
@ TH_SEQ_SELECTED
Definition: UI_resources.h:215
@ TH_BACK
Definition: UI_resources.h:55
@ TH_NODE_GEOMETRY
Definition: UI_resources.h:193
@ TH_LOCK_MARKER
Definition: UI_resources.h:255
@ TH_INFO_INFO
Definition: UI_resources.h:335
@ TH_NODE_OUTPUT
Definition: UI_resources.h:178
@ TH_NODE_COLOR
Definition: UI_resources.h:179
@ TH_GIZMO_B
Definition: UI_resources.h:325
@ TH_NLA_META
Definition: UI_resources.h:303
@ TH_DOPESHEET_IPOLINE
Definition: UI_resources.h:230
@ TH_TIME_MARKER_LINE
Definition: UI_resources.h:115
@ TH_KEYBORDER
Definition: UI_resources.h:168
@ TH_WIRE
Definition: UI_resources.h:85
@ TH_KEYTYPE_JITTER
Definition: UI_resources.h:163
@ TH_INFO_INFO_TEXT
Definition: UI_resources.h:336
@ TH_SYNTAX_C
Definition: UI_resources.h:142
@ TH_SYNTAX_R
Definition: UI_resources.h:141
@ TH_INFO_PROPERTY
Definition: UI_resources.h:339
@ TH_SYNTAX_S
Definition: UI_resources.h:146
@ TH_BONE_LOCKED_WEIGHT
Definition: UI_resources.h:152
@ TH_TIME_GP_KEYFRAME
Definition: UI_resources.h:118
@ TH_KEYTYPE_EXTREME
Definition: UI_resources.h:159
@ TH_FACEDOT_SIZE
Definition: UI_resources.h:112
@ TH_WIDGET_EMBOSS
Definition: UI_resources.h:308
@ TH_BONE_POSE
Definition: UI_resources.h:150
@ TH_TIME_MARKER_LINE_SELECTED
Definition: UI_resources.h:116
@ TH_GROUP
Definition: UI_resources.h:90
@ TH_ICON_COLLECTION
Definition: UI_resources.h:287
@ TH_DOPESHEET_CHANNELSUBOB
Definition: UI_resources.h:229
@ TH_NLA_META_SEL
Definition: UI_resources.h:304
@ TH_HANDLE_SEL_AUTO
Definition: UI_resources.h:131
@ TH_INFO_DEBUG_TEXT
Definition: UI_resources.h:338
@ TH_SKIN_ROOT
Definition: UI_resources.h:280
@ TH_EDGE_SELECT
Definition: UI_resources.h:101
@ TH_TRANSPARENT_CHECKER_SECONDARY
Definition: UI_resources.h:313
@ TH_ICON_OBJECT_DATA
Definition: UI_resources.h:289
@ TH_ACTIVE_VERT
Definition: UI_resources.h:137
@ TH_HANDLE_SEL_AUTOCLAMP
Definition: UI_resources.h:134
@ TH_ACTIVE_SPLINE
Definition: UI_resources.h:136
@ TH_STITCH_PREVIEW_VERT
Definition: UI_resources.h:259
@ TH_EDITED_OBJECT
Definition: UI_resources.h:277
@ TH_CAMERA
Definition: UI_resources.h:173
@ TH_KEYTYPE_KEYFRAME_SELECT
Definition: UI_resources.h:158
@ TH_SELECTED_OBJECT
Definition: UI_resources.h:275
@ TH_PATH_AFTER
Definition: UI_resources.h:251
@ TH_ICON_SHADING
Definition: UI_resources.h:291
@ TH_NODE_PATTERN
Definition: UI_resources.h:183
@ TH_BUTBACK_TEXT
Definition: UI_resources.h:77
@ TH_STITCH_PREVIEW_UNSTITCHABLE
Definition: UI_resources.h:261
@ TH_TRANSFORM
Definition: UI_resources.h:92
@ TH_NODE_ATTRIBUTE
Definition: UI_resources.h:194
@ TH_EDGE_BEVEL
Definition: UI_resources.h:350
@ TH_OUTLINE_WIDTH
Definition: UI_resources.h:98
@ TH_BUTBACK
Definition: UI_resources.h:76
@ TH_HANDLE_AUTO
Definition: UI_resources.h:126
@ TH_PANEL_SUB_BACK
Definition: UI_resources.h:74
@ TH_NODE_DISTORT
Definition: UI_resources.h:192
@ TH_ICON_SCENE
Definition: UI_resources.h:286
@ TH_ANIM_ACTIVE
Definition: UI_resources.h:282
@ TH_INFO_ERROR
Definition: UI_resources.h:331
@ TH_NURB_VLINE
Definition: UI_resources.h:120
@ TH_SEQ_TEXT
Definition: UI_resources.h:211
@ TH_REDALERT
Definition: UI_resources.h:50
@ TH_SPEAKER
Definition: UI_resources.h:172
@ TH_INFO_ERROR_TEXT
Definition: UI_resources.h:332
@ TH_VERTEX
Definition: UI_resources.h:93
@ TH_METADATA_TEXT
Definition: UI_resources.h:348
@ TH_SEQ_MASK
Definition: UI_resources.h:205
@ TH_VERTEX_SIZE
Definition: UI_resources.h:97
@ TH_INFO_OPERATOR
Definition: UI_resources.h:341
@ TH_HANDLE_SEL_ALIGN
Definition: UI_resources.h:133
@ TH_SEQ_MOVIE
Definition: UI_resources.h:203
@ TH_GP_VERTEX_SELECT
Definition: UI_resources.h:225
@ TH_OBCENTER_DIA
Definition: UI_resources.h:99
@ TH_CONSOLE_SELECT
Definition: UI_resources.h:201
@ TH_KEYTYPE_MOVEHOLD
Definition: UI_resources.h:165
@ TH_INFO_WARNING
Definition: UI_resources.h:333
@ TH_GIZMO_VIEW_ALIGN
Definition: UI_resources.h:323
@ TH_SEQ_COLOR
Definition: UI_resources.h:213
@ TH_GIZMO_A
Definition: UI_resources.h:324
@ TH_SHADE2
Definition: UI_resources.h:81
@ TH_CONSOLE_ERROR
Definition: UI_resources.h:199
@ TH_KEYTYPE_BREAKDOWN_SELECT
Definition: UI_resources.h:162
@ TH_DIS_MARKER
Definition: UI_resources.h:249
@ TH_UV_SHADOW
Definition: UI_resources.h:267
@ TH_NODE_MATTE
Definition: UI_resources.h:191
@ TH_PAINT_CURVE_HANDLE
Definition: UI_resources.h:264
@ TH_STITCH_PREVIEW_EDGE
Definition: UI_resources.h:258
@ TH_NLA_TWEAK
Definition: UI_resources.h:297
@ TH_NODE_GRID_LEVELS
Definition: UI_resources.h:242
@ TH_PREVIEW_BACK
Definition: UI_resources.h:232
@ TH_HANDLE_SEL_FREE
Definition: UI_resources.h:130
@ TH_VERTEX_BEVEL
Definition: UI_resources.h:351
@ TH_SEQ_META
Definition: UI_resources.h:210
@ TH_FACE_SELECT
Definition: UI_resources.h:105
@ TH_CFRAME
Definition: UI_resources.h:113
@ TH_HANDLE_VERTEX_SELECT
Definition: UI_resources.h:221
@ TH_HANDLE_VERTEX
Definition: UI_resources.h:220
@ TH_SCROLL_TEXT
Definition: UI_resources.h:295
@ TH_LINENUMBERS
Definition: UI_resources.h:147
@ TH_STITCH_PREVIEW_ACTIVE
Definition: UI_resources.h:262
@ TH_ANIM_PREVIEW_RANGE
Definition: UI_resources.h:284
@ TH_NURB_ULINE
Definition: UI_resources.h:119
@ TH_MARKER
Definition: UI_resources.h:245
@ TH_KEYTYPE_EXTREME_SELECT
Definition: UI_resources.h:160
@ TH_EDGE_SEAM
Definition: UI_resources.h:102
@ TH_AXIS_Y
Definition: UI_resources.h:317
@ TH_AXIS_X
Definition: UI_resources.h:316
@ TH_HEADERDESEL
Definition: UI_resources.h:67
@ TH_NODE_TEXTURE
Definition: UI_resources.h:182
@ TH_NODE_VECTOR
Definition: UI_resources.h:181
@ TH_EDGE
Definition: UI_resources.h:100
@ TH_SHADE1
Definition: UI_resources.h:80
@ TH_INFO_SELECTED_TEXT
Definition: UI_resources.h:330
@ TH_HANDLE_SEL_VECT
Definition: UI_resources.h:132
@ TH_VERTEX_SELECT
Definition: UI_resources.h:94
@ TH_STRIP
Definition: UI_resources.h:154
@ TH_KEYTYPE_MOVEHOLD_SELECT
Definition: UI_resources.h:166
@ TH_THEMEUI
Definition: UI_resources.h:52
@ TH_CONSOLE_CURSOR
Definition: UI_resources.h:200
@ TH_EMPTY
Definition: UI_resources.h:174
@ TH_ANIM_INACTIVE
Definition: UI_resources.h:283
@ TH_KEYTYPE_JITTER_SELECT
Definition: UI_resources.h:164
@ TH_ICON_FUND
Definition: UI_resources.h:293
@ TH_FACE_FRONT
Definition: UI_resources.h:107
@ TH_VERTEX_UNREFERENCED
Definition: UI_resources.h:96
@ TH_GIZMO_PRIMARY
Definition: UI_resources.h:321
@ TH_TRANSPARENT_CHECKER_SIZE
Definition: UI_resources.h:314
@ TH_STITCH_PREVIEW_STITCHABLE
Definition: UI_resources.h:260
@ TH_HEADER_TEXT
Definition: UI_resources.h:68
@ TH_PAINT_CURVE_PIVOT
Definition: UI_resources.h:265
@ TH_V3D_CLIPPING_BORDER
Definition: UI_resources.h:345
@ TH_NLA_TWEAK_DUPLI
Definition: UI_resources.h:298
@ TH_AXIS_Z
Definition: UI_resources.h:318
@ TH_EDITMESH_ACTIVE
Definition: UI_resources.h:218
@ TH_SEQ_PREVIEW
Definition: UI_resources.h:212
@ TH_GP_VERTEX_SIZE
Definition: UI_resources.h:226
@ TH_CONSOLE_INFO
Definition: UI_resources.h:198
@ TH_GP_VERTEX
Definition: UI_resources.h:224
@ TH_INFO_OPERATOR_TEXT
Definition: UI_resources.h:342
@ TH_SYNTAX_D
Definition: UI_resources.h:144
@ TH_VIEW_OVERLAY
Definition: UI_resources.h:343
@ TH_HILITE
Definition: UI_resources.h:82
@ TH_GIZMO_SECONDARY
Definition: UI_resources.h:322
@ TH_BUTBACK_TEXT_HI
Definition: UI_resources.h:78
@ TH_ACT_MARKER
Definition: UI_resources.h:246
@ TH_FACE_DOT
Definition: UI_resources.h:111
@ TH_TITLE
Definition: UI_resources.h:60
@ TH_CONSOLE_OUTPUT
Definition: UI_resources.h:196
@ TH_CONSOLE_INPUT
Definition: UI_resources.h:197
@ TH_PATH_KEYFRAME_AFTER
Definition: UI_resources.h:253
@ TH_SYNTAX_V
Definition: UI_resources.h:140
@ TH_INFO_SELECTED
Definition: UI_resources.h:329
@ TH_SEQ_AUDIO
Definition: UI_resources.h:208
@ TH_NODE_CURVING
Definition: UI_resources.h:241
@ TH_SEL_MARKER
Definition: UI_resources.h:247
@ TH_TAB_BACK
Definition: UI_resources.h:63
@ TH_CAMERA_PATH
Definition: UI_resources.h:254
@ TH_SELECT
Definition: UI_resources.h:88
@ TH_WIDGET_TEXT_CURSOR
Definition: UI_resources.h:309
@ TH_HANDLE_FREE
Definition: UI_resources.h:125
@ TH_NLA_SOUND
Definition: UI_resources.h:305
@ TH_SYNTAX_L
Definition: UI_resources.h:143
@ TH_SEQ_ACTIVE
Definition: UI_resources.h:214
@ TH_HANDLE_AUTOCLAMP
Definition: UI_resources.h:129
@ TH_EDITOR_OUTLINE
Definition: UI_resources.h:310
@ TH_GROUP_ACTIVE
Definition: UI_resources.h:91
@ TH_TAB_INACTIVE
Definition: UI_resources.h:62
@ TH_BACKGROUND_TYPE
Definition: UI_resources.h:327
@ TH_SYNTAX_N
Definition: UI_resources.h:145
@ TH_DRAWEXTRA_EDGELEN
Definition: UI_resources.h:236
@ TH_MATCH
Definition: UI_resources.h:272
@ TH_NLA_TRANSITION
Definition: UI_resources.h:301
@ TH_SEQ_EFFECT
Definition: UI_resources.h:209
@ TH_SEQ_SCENE
Definition: UI_resources.h:207
@ TH_NODE_LAYOUT
Definition: UI_resources.h:185
@ TH_EDGE_CREASE
Definition: UI_resources.h:234
@ TH_PANEL_BACK
Definition: UI_resources.h:73
@ TH_HANDLE_VECT
Definition: UI_resources.h:127
@ TH_HEADER_TEXT_HI
Definition: UI_resources.h:69
@ TH_TEXT
Definition: UI_resources.h:58
@ TH_METADATA_BG
Definition: UI_resources.h:347
@ TH_NODE_SHADER
Definition: UI_resources.h:186
@ TH_WIRE_EDIT
Definition: UI_resources.h:87
@ TH_SEQ_MOVIECLIP
Definition: UI_resources.h:204
@ TH_WIRE_INNER
Definition: UI_resources.h:86
@ TH_DRAWEXTRA_FACEAREA
Definition: UI_resources.h:238
@ TH_SEQ_IMAGE
Definition: UI_resources.h:206
@ TH_NODE_INTERFACE
Definition: UI_resources.h:187
@ TH_STITCH_PREVIEW_FACE
Definition: UI_resources.h:257
@ TH_DOPESHEET_CHANNELOB
Definition: UI_resources.h:228
@ TH_NURB_SEL_ULINE
Definition: UI_resources.h:121
@ TH_ACTIVE
Definition: UI_resources.h:89
@ TH_STRIP_SELECT
Definition: UI_resources.h:155
@ TH_NLA_SOUND_SEL
Definition: UI_resources.h:306
@ TH_PATH_KEYFRAME_BEFORE
Definition: UI_resources.h:252
@ TH_FACE
Definition: UI_resources.h:104
@ TH_VNORMAL
Definition: UI_resources.h:109
@ TH_NODE_CONVERTOR
Definition: UI_resources.h:188
@ TH_TEXT_HI
Definition: UI_resources.h:59
void UI_GetThemeColorBlend4f(int colorid1, int colorid2, float fac, float r_col[4])
Definition: resources.c:1144
void UI_GetThemeColorShade3fv(int colorid, int offset, float col[3])
Definition: resources.c:1218
void UI_GetThemeColorBlendShade4fv(int colorid1, int colorid2, float fac, int offset, float col[4])
Definition: resources.c:1326
const unsigned char * UI_ThemeGetColorPtr(struct bTheme *btheme, int spacetype, int colorid)
Definition: resources.c:83
void UI_GetThemeColorType4ubv(int colorid, int spacetype, unsigned char col[4])
Definition: resources.c:1406
void UI_ThemeClearColor(int colorid)
Definition: resources.c:1478
float UI_GetThemeValueTypef(int colorid, int spacetype)
Definition: resources.c:1178
void UI_GetThemeColor3ubv(int colorid, unsigned char col[3])
Definition: resources.c:1350
void UI_GetThemeColorType4fv(int colorid, int spacetype, float col[4])
Definition: resources.c:1208
void UI_Theme_Restore(struct bThemeState *theme_state)
Definition: resources.c:1098
int UI_ThemeMenuShadowWidth(void)
Definition: resources.c:1486
struct bTheme * UI_GetTheme(void)
Definition: resources.c:1086
void UI_GetThemeColorBlendShade3fv(int colorid1, int colorid2, float fac, int offset, float col[3])
Definition: resources.c:1306
void UI_GetThemeColorShadeAlpha4fv(int colorid, int coloffset, int alphaoffset, float col[4])
Definition: resources.c:1286
void UI_GetThemeColor4fv(int colorid, float col[4])
Definition: resources.c:1199
void UI_GetThemeColorShade4fv(int colorid, int offset, float col[4])
Definition: resources.c:1359
void UI_GetThemeColorShade4ubv(int colorid, int offset, unsigned char col[4])
Definition: resources.c:1268
bool UI_GetIconThemeColor4ubv(int colorid, unsigned char col[4])
Definition: resources.c:1415
void UI_GetThemeColorBlendShade3ubv(int colorid1, int colorid2, float fac, int offset, unsigned char col[3])
Definition: resources.c:1252
int UI_GetThemeValue(int colorid)
Definition: resources.c:1171
void UI_GetThemeColorBlend3f(int colorid1, int colorid2, float fac, float r_col[3])
Definition: resources.c:1133
void UI_FontThemeColor(int fontid, int colorid)
Definition: resources.c:1156
void UI_GetThemeColorShade3ubv(int colorid, int offset, unsigned char col[3])
Definition: resources.c:1235
void UI_GetColorPtrBlendShade3ubv(const unsigned char cp1[3], const unsigned char cp2[3], unsigned char col[3], float fac, int offset)
Definition: resources.c:1459
float UI_GetThemeValuef(int colorid)
Definition: resources.c:1164
void UI_SetTheme(int spacetype, int regionid)
Definition: resources.c:1064
void UI_GetColorPtrShade3ubv(const unsigned char cp1[3], unsigned char col[3], int offset)
Definition: resources.c:1441
void UI_Theme_Store(struct bThemeState *theme_state)
Definition: resources.c:1094
void UI_GetThemeColor4ubv(int colorid, unsigned char col[4])
Definition: resources.c:1381
uint col
struct bTheme * theme
Definition: UI_resources.h:359