|
Blender
V2.93
|
#include <limits.h>#include <stdlib.h>#include <string.h>#include "DNA_brush_types.h"#include "DNA_userdef_types.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "RNA_access.h"#include "BLF_api.h"#include "ED_node.h"#include "UI_interface.h"#include "UI_interface_icons.h"#include "interface_intern.h"#include "GPU_batch.h"#include "GPU_batch_presets.h"#include "GPU_immediate.h"#include "GPU_immediate_util.h"#include "GPU_matrix.h"#include "GPU_platform.h"#include "GPU_state.h"Go to the source code of this file.
Classes | |
| struct | uiWidgetTrias |
| struct | uiWidgetBase |
| struct | uiWidgetType |
Functions | |
Internal Color Utilities | |
| static void | color_blend_v3_v3 (uchar cp[3], const uchar cpstate[3], const float fac) |
| static void | color_blend_v4_v4v4 (uchar r_col[4], const uchar col1[4], const uchar col2[4], const float fac) |
| static void | color_add_v3_i (uchar cp[3], int tint) |
| static void | color_ensure_contrast_v3 (uchar cp[3], const uchar cp_other[3], int contrast) |
| static void | color_mul_hsl_v3 (uchar ch[3], float h_factor, float s_factor, float l_factor) |
Draw Triangle Arrow | |
| void | UI_draw_anti_tria (float x1, float y1, float x2, float y2, float x3, float y3, const float color[4]) |
| void | UI_draw_icon_tri (float x, float y, char dir, const float color[4]) |
| void | ui_draw_anti_tria_rect (const rctf *rect, char dir, const float color[4]) |
| void | UI_draw_anti_fan (float tri_array[][2], uint length, const float color[4]) |
| static void | widget_init (uiWidgetBase *wtb) |
Draw Round Box | |
| static int | round_box_shadow_edges (float(*vert)[2], const rcti *rect, float rad, int roundboxalign, float step) |
| static void | round_box__edges (uiWidgetBase *wt, int roundboxalign, const rcti *rect, float rad, float radi) |
| static void | round_box_edges (uiWidgetBase *wt, int roundboxalign, const rcti *rect, float rad) |
Shape Preset Mini API | |
| static void | shape_preset_init_trias_ex (uiWidgetTrias *tria, const rcti *rect, float triasize, char where, const float verts[][2], const int verts_tot, const uint tris[][3], const int tris_tot) |
| static void | shape_preset_init_number_arrows (uiWidgetTrias *tria, const rcti *rect, float triasize, char where) |
| static void | shape_preset_init_hold_action (uiWidgetTrias *tria, const rcti *rect, float triasize, char where) |
| static void | shape_preset_init_scroll_circle (uiWidgetTrias *tria, const rcti *rect, float triasize, char where) |
| static void | widget_draw_vertex_buffer (uint pos, uint col, int mode, const float quads_pos[WIDGET_SIZE_MAX][2], const uchar quads_col[WIDGET_SIZE_MAX][4], uint totvert) |
| static void | shape_preset_trias_from_rect_menu (uiWidgetTrias *tria, const rcti *rect) |
| static void | shape_preset_trias_from_rect_checkmark (uiWidgetTrias *tria, const rcti *rect) |
Widget Base Drawing | |
| static void | shadecolors4 (uchar coltop[4], uchar coldown[4], const uchar *color, short shadetop, short shadedown) |
| static void | widget_verts_to_triangle_strip (uiWidgetBase *wtb, const int totvert, float triangle_strip[WIDGET_SIZE_MAX *2+2][2]) |
| static void | widgetbase_outline (uiWidgetBase *wtb, uint pos) |
| static void | widgetbase_set_uniform_alpha_discard (uiWidgetBase *wtb, const bool alpha_check, const float discard_factor) |
| static void | widgetbase_set_uniform_alpha_check (uiWidgetBase *wtb, const bool alpha_check) |
| static void | widgetbase_set_uniform_discard_factor (uiWidgetBase *wtb, const float discard_factor) |
| static void | widgetbase_set_uniform_colors_ubv (uiWidgetBase *wtb, const uchar *col1, const uchar *col2, const uchar *outline, const uchar *emboss, const uchar *tria, const bool alpha_check) |
Widget State Management | |
Adjust widget display based on animated, driven, overridden ... etc. | |
| static void | ui_widget_color_disabled (uiWidgetType *wt, const int state) |
| static void | widget_active_color (uiWidgetColors *wcol) |
| static const uchar * | widget_color_blend_from_flags (const uiWidgetStateColors *wcol_state, int state, int drawflag, const eUIEmbossType emboss) |
| static void | widget_state (uiWidgetType *wt, int state, int drawflag, eUIEmbossType emboss) |
Widget Types | |
| static void | widget_state_numslider (uiWidgetType *wt, int state, int drawflag, eUIEmbossType emboss) |
| static void | widget_state_option_menu (uiWidgetType *wt, int state, int drawflag, eUIEmbossType emboss) |
| static void | widget_state_nothing (uiWidgetType *wt, int UNUSED(state), int UNUSED(drawflag), eUIEmbossType UNUSED(emboss)) |
| static void | widget_state_pulldown (uiWidgetType *wt, int UNUSED(state), int UNUSED(drawflag), eUIEmbossType UNUSED(emboss)) |
| static void | widget_state_pie_menu_item (uiWidgetType *wt, int state, int UNUSED(drawflag), eUIEmbossType UNUSED(emboss)) |
| static void | widget_state_menu_item (uiWidgetType *wt, int state, int UNUSED(drawflag), eUIEmbossType UNUSED(emboss)) |
Draw Menu Backdrop | |
| static void | widget_softshadow (const rcti *rect, int roundboxalign, const float radin) |
| static void | widget_menu_back (uiWidgetColors *wcol, rcti *rect, int flag, int direction) |
| static void | ui_hsv_cursor (float x, float y) |
| void | ui_hsvcircle_vals_from_pos (const rcti *rect, const float mx, const float my, float *r_val_rad, float *r_val_dist) |
| void | ui_hsvcircle_pos_from_vals (const ColorPicker *cpicker, const rcti *rect, const float *hsv, float *r_xpos, float *r_ypos) |
| static void | ui_draw_but_HSVCIRCLE (uiBut *but, const uiWidgetColors *wcol, const rcti *rect) |
Draw Custom Buttons | |
| void | ui_draw_gradient (const rcti *rect, const float hsv[3], const eButGradientType type, const float alpha) |
| void | ui_hsvcube_pos_from_vals (const uiButHSVCube *hsv_but, const rcti *rect, const float *hsv, float *r_xp, float *r_yp) |
| static void | ui_draw_but_HSVCUBE (uiBut *but, const rcti *rect) |
| static void | ui_draw_but_HSV_v (uiBut *but, const rcti *rect) |
| static void | ui_draw_separator (const rcti *rect, const uiWidgetColors *wcol) |
Public API | |
| void | ui_draw_but (const bContext *C, struct ARegion *region, uiStyle *style, uiBut *but, rcti *rect) |
| static void | ui_draw_clip_tri (uiBlock *block, rcti *rect, uiWidgetType *wt) |
| void | ui_draw_menu_back (uiStyle *UNUSED(style), uiBlock *block, rcti *rect) |
| void | ui_draw_box_opaque (rcti *rect, int roundboxalign) |
| static void | ui_draw_popover_back_impl (const uiWidgetColors *wcol, rcti *rect, int direction, const float unit_size, const float mval_origin[2]) |
| void | ui_draw_popover_back (struct ARegion *region, uiStyle *UNUSED(style), uiBlock *block, rcti *rect) |
| static void | draw_disk_shaded (float start, float angle, float radius_int, float radius_ext, int subd, const uchar col1[4], const uchar col2[4], bool shaded) |
| void | ui_draw_pie_center (uiBlock *block) |
| const uiWidgetColors * | ui_tooltip_get_theme (void) |
| static void | ui_draw_widget_back_color (uiWidgetTypeEnum type, bool use_shadow, const rcti *rect, const float color[4]) |
| void | ui_draw_widget_menu_back_color (const rcti *rect, bool use_shadow, const float color[4]) |
| void | ui_draw_widget_menu_back (const rcti *rect, bool use_shadow) |
| void | ui_draw_tooltip_background (const uiStyle *UNUSED(style), uiBlock *UNUSED(block), rcti *rect) |
| void | ui_draw_menu_item (const uiFontStyle *fstyle, rcti *rect, const char *name, int iconid, int state, uiMenuItemSeparatorType separator_type, int *r_xmax) |
| void | ui_draw_preview_item (const uiFontStyle *fstyle, rcti *rect, const char *name, int iconid, int state) |
Widget Base Type | |
| #define | WIDGET_CURVE_RESOLU 9 |
| #define | WIDGET_SIZE_MAX (WIDGET_CURVE_RESOLU * 4) |
| typedef struct uiWidgetTrias | uiWidgetTrias |
| typedef struct uiWidgetBase | uiWidgetBase |
| typedef struct uiWidgetType | uiWidgetType |
Shape Preset Data | |
| #define | WIDGET_AA_JITTER UI_PIXEL_AA_JITTER |
| #define | jit ui_pixel_jitter |
| #define | OY (-0.2 / 2) |
| #define | SC (0.35 * 2) |
| static const float | cornervec [WIDGET_CURVE_RESOLU][2] |
| const float | ui_pixel_jitter [UI_PIXEL_AA_JITTER][2] |
| static const float | g_shape_preset_number_arrow_vert [3][2] |
| static const uint | g_shape_preset_number_arrow_face [1][3] |
| static const float | g_shape_preset_scroll_circle_vert [16][2] |
| static const uint | g_shape_preset_scroll_circle_face [14][3] |
| static const float | g_shape_preset_menu_arrow_vert [6][2] |
| static const uint | g_shape_preset_menu_arrow_face [2][3] = {{2, 0, 1}, {3, 5, 4}} |
| static const float | g_shape_preset_checkmark_vert [6][2] |
| static const uint | g_shape_preset_checkmark_face [4][3] |
| static const float | g_shape_preset_hold_action_vert [6][2] |
| static const uint | g_shape_preset_hold_action_face [2][3] = {{2, 0, 1}, {3, 5, 4}} |
#GPUBatch Creation | |
In order to speed up UI drawing we create some batches that are then modified by specialized shaders to draw certain elements really fast. TODO: find a better place. Maybe its own file? | |
| #define | INNER 0 |
| #define | OUTLINE 1 |
| #define | EMBOSS 2 |
| #define | NO_AA 0 |
| struct { | |
| GPUBatch * roundbox_widget | |
| GPUBatch * roundbox_shadow | |
| GPUVertFormat format | |
| uint vflag_id | |
| } | g_ui_batch_cache = {0} |
| static GPUVertFormat * | vflag_format (void) |
| static void | set_roundbox_vertex_data (GPUVertBufRaw *vflag_step, uint32_t d) |
| static uint32_t | set_roundbox_vertex (GPUVertBufRaw *vflag_step, int corner_id, int corner_v, int jit_v, bool inner, bool emboss, int color) |
| GPUBatch * | ui_batch_roundbox_widget_get (void) |
| GPUBatch * | ui_batch_roundbox_shadow_get (void) |
Widget Base Drawing #GPUBatch Cache | |
| #define | MAX_WIDGET_BASE_BATCH 6 |
| #define | MAX_WIDGET_PARAMETERS 12 |
| struct { | |
| uiWidgetBaseParameters params [MAX_WIDGET_BASE_BATCH] | |
| int count | |
| bool enabled | |
| } | g_widget_base_batch = {{{{0}}}} |
| void | UI_widgetbase_draw_cache_flush (void) |
| void | UI_widgetbase_draw_cache_begin (void) |
| void | UI_widgetbase_draw_cache_end (void) |
| static bool | draw_widgetbase_batch_skip_draw_cache (void) |
| static void | draw_widgetbase_batch (uiWidgetBase *wtb) |
| static void | widgetbase_draw_ex (uiWidgetBase *wtb, const uiWidgetColors *wcol, bool show_alpha_checkers) |
| static void | widgetbase_draw (uiWidgetBase *wtb, const uiWidgetColors *wcol) |
Text/Icon Drawing | |
| #define | UI_TEXT_CLIP_MARGIN (0.25f * U.widget_unit / but->block->aspect) |
| #define | PREVIEW_PAD 4 |
| static float | widget_alpha_factor (const int state) |
| static void | widget_draw_preview (BIFIconID icon, float alpha, const rcti *rect) |
| static int | ui_but_draw_menu_icon (const uiBut *but) |
| static void | widget_draw_icon (const uiBut *but, BIFIconID icon, float alpha, const rcti *rect, const uchar mono_color[4]) |
| static void | widget_draw_submenu_tria (const uiBut *but, const rcti *rect, const uiWidgetColors *wcol) |
| static void | ui_text_clip_give_prev_off (uiBut *but, const char *str) |
| static void | ui_text_clip_give_next_off (uiBut *but, const char *str) |
| static void | ui_text_clip_right_ex (const uiFontStyle *fstyle, char *str, const size_t max_len, const float okwidth, const char *sep, const int sep_len, const float sep_strwidth, size_t *r_final_len) |
| float | UI_text_clip_middle_ex (const uiFontStyle *fstyle, char *str, float okwidth, const float minwidth, const size_t max_len, const char rpart_sep) |
| static void | ui_text_clip_middle (const uiFontStyle *fstyle, uiBut *but, const rcti *rect) |
| static void | ui_text_clip_middle_protect_right (const uiFontStyle *fstyle, uiBut *but, const rcti *rect, const char rsep) |
| static void | ui_text_clip_cursor (const uiFontStyle *fstyle, uiBut *but, const rcti *rect) |
| static void | ui_text_clip_right_label (const uiFontStyle *fstyle, uiBut *but, const rcti *rect) |
| static bool | widget_draw_text_underline_calc_center_x (const char *UNUSED(str), const size_t str_step_ofs, const rcti *glyph_step_bounds, const int UNUSED(glyph_advance_x), const rctf *glyph_bounds, const int glyph_bearing[2], void *user_data) |
| static void | widget_draw_text (const uiFontStyle *fstyle, const uiWidgetColors *wcol, uiBut *but, rcti *rect) |
| static void | widget_draw_extra_icons (const uiWidgetColors *wcol, uiBut *but, rcti *rect, float alpha) |
| static void | widget_draw_node_link_socket (const uiWidgetColors *wcol, const rcti *rect, uiBut *but, float alpha) |
| static void | widget_draw_text_icon (const uiFontStyle *fstyle, const uiWidgetColors *wcol, uiBut *but, rcti *rect) |
Button Draw Callbacks | |
| #define | SWATCH_KEYED_BORDER 3 |
| static void | widget_numbut_draw (uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign, bool emboss) |
| static void | widget_numbut (uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_menubut (uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int roundboxalign) |
| static void | widget_menubut_embossn (uiBut *UNUSED(but), uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign)) |
| static void | widget_numbut_embossn (uiBut *UNUSED(but), uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| void | UI_draw_widget_scroll (uiWidgetColors *wcol, const rcti *rect, const rcti *slider, int state) |
| static void | widget_scroll (uiBut *but, uiWidgetColors *wcol, rcti *rect, int state, int UNUSED(roundboxalign)) |
| static void | widget_progressbar (uiBut *but, uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int roundboxalign) |
| static void | widget_nodesocket (uiBut *but, uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign)) |
| static void | widget_numslider (uiBut *but, uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_swatch (uiBut *but, uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_unitvec (uiBut *but, uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign)) |
| static void | widget_icon_has_anim (uiBut *but, uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_textbut (uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_menuiconbut (uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int roundboxalign) |
| static void | widget_pulldownbut (uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_menu_itembut (uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign)) |
| static void | widget_menu_radial_itembut (uiBut *but, uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign)) |
| static void | widget_list_itembut (uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign)) |
| static void | widget_optionbut (uiWidgetColors *wcol, rcti *rect, int state, int UNUSED(roundboxalign)) |
| static void | widget_state_label (uiWidgetType *wt, int state, int drawflag, eUIEmbossType emboss) |
| static void | widget_radiobut (uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int roundboxalign) |
| static void | widget_box (uiBut *but, uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int roundboxalign) |
| static void | widget_but (uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int roundboxalign) |
| static void | widget_roundbut_exec (uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_tab (uiWidgetColors *wcol, rcti *rect, int state, int roundboxalign) |
| static void | widget_draw_extra_mask (const bContext *C, uiBut *but, uiWidgetType *wt, rcti *rect) |
| static uiWidgetType * | widget_type (uiWidgetTypeEnum type) |
| static int | widget_roundbox_set (uiBut *but, rcti *rect) |
| #define EMBOSS 2 |
Definition at line 418 of file interface_widgets.c.
| #define ICON_SIZE_FROM_BUTRECT | ( | rect | ) | (0.8f * BLI_rcti_size_y(rect)) |
Definition at line 68 of file interface_widgets.c.
| #define INNER 0 |
Definition at line 416 of file interface_widgets.c.
| #define jit ui_pixel_jitter |
Definition at line 303 of file interface_widgets.c.
| #define MAX_WIDGET_BASE_BATCH 6 |
Definition at line 1160 of file interface_widgets.c.
| #define MAX_WIDGET_PARAMETERS 12 |
Definition at line 1161 of file interface_widgets.c.
| #define NO_AA 0 |
Definition at line 419 of file interface_widgets.c.
| #define OUTLINE 1 |
Definition at line 417 of file interface_widgets.c.
| #define OY (-0.2 / 2) |
Definition at line 375 of file interface_widgets.c.
| #define PREVIEW_PAD 4 |
Definition at line 1333 of file interface_widgets.c.
| #define SC (0.35 * 2) |
Definition at line 376 of file interface_widgets.c.
| #define SWATCH_KEYED_BORDER 3 |
Definition at line 3808 of file interface_widgets.c.
| #define UI_BUT_UNDO ((void)0) |
Definition at line 133 of file interface_widgets.c.
| #define UI_BUT_UPDATE_DELAY ((void)0) |
Definition at line 132 of file interface_widgets.c.
| #define UI_TEXT_CLIP_MARGIN (0.25f * U.widget_unit / but->block->aspect) |
Definition at line 1331 of file interface_widgets.c.
| #define WIDGET_AA_JITTER UI_PIXEL_AA_JITTER |
Definition at line 302 of file interface_widgets.c.
| #define WIDGET_CURVE_RESOLU 9 |
Definition at line 235 of file interface_widgets.c.
| #define WIDGET_SIZE_MAX (WIDGET_CURVE_RESOLU * 4) |
Definition at line 236 of file interface_widgets.c.
| typedef struct uiWidgetBase uiWidgetBase |
| typedef struct uiWidgetTrias uiWidgetTrias |
[size][2][x, y] points, the edges of the roundbox, + UV coords| typedef struct uiWidgetType uiWidgetType |
For time being only for visual appearance, later, a handling callback can be added too.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_STATE_HOLD_ACTION | |
| UI_STATE_TEXT_INPUT | |
| UI_STATE_ACTIVE_LEFT | |
| UI_STATE_ACTIVE_RIGHT | |
| UI_STATE_TEXT_BEFORE_WIDGET | |
| UI_STATE_FLAGS_ALL | |
Definition at line 120 of file interface_widgets.c.
| enum uiWidgetTypeEnum |
Definition at line 72 of file interface_widgets.c.
|
static |
Definition at line 164 of file interface_widgets.c.
References clamp_i().
Referenced by color_ensure_contrast_v3().
Definition at line 141 of file interface_widgets.c.
Referenced by widget_state(), widget_state_label(), widget_state_menu_item(), widget_state_numslider(), and widget_state_pie_menu_item().
|
static |
Definition at line 150 of file interface_widgets.c.
References unit_float_to_uchar_clamp().
Referenced by draw_disk_shaded().
Definition at line 171 of file interface_widgets.c.
References BLI_assert, color_add_v3_i(), and rgb_to_grayscale_byte().
Referenced by widget_state_numslider().
Definition at line 189 of file interface_widgets.c.
References hsl_to_rgb_v(), rgb_float_to_uchar(), rgb_to_hsl_v(), and rgb_uchar_to_float().
Referenced by widget_active_color().
|
static |
Definition at line 5010 of file interface_widgets.c.
References Freestyle::a, angle(), Freestyle::c, col, color_blend_v4_v4v4(), cosf, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_TRI_STRIP, GPU_SHADER_2D_SMOOTH_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immAttr4ubv(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ubv(), immVertex2f(), immVertexFormat(), pos, sinf, and y1.
Referenced by ui_draw_pie_center().
|
static |
Definition at line 1231 of file interface_widgets.c.
References batch, uiWidgetTrias::center, copy_v2_v2(), draw_widgetbase_batch_skip_draw_cache(), g_widget_base_batch, GPU_batch_draw(), GPU_batch_program_set_builtin(), GPU_batch_uniform_3fv, GPU_batch_uniform_4fv_array, GPU_SHADER_2D_WIDGET_BASE, GPUBatch, MAX_WIDGET_BASE_BATCH, MAX_WIDGET_PARAMETERS, uiWidgetTrias::size, uiWidgetBase::tria1, uiWidgetBaseParameters::tria1_center, uiWidgetBaseParameters::tria1_size, uiWidgetBase::tria2, uiWidgetBaseParameters::tria2_center, uiWidgetBaseParameters::tria2_size, uiWidgetBaseParameters::tria_type, uiWidgetTrias::type, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, ui_batch_roundbox_widget_get(), UI_widgetbase_draw_cache_flush(), and uiWidgetBase::uniform_params.
Referenced by widgetbase_draw_ex().
|
static |
Definition at line 1220 of file interface_widgets.c.
References GPU_DEVICE_INTEL, GPU_DRIVER_ANY, GPU_OS_MAC, and GPU_type_matches().
Referenced by draw_widgetbase_batch().
|
static |
Definition at line 723 of file interface_widgets.c.
References Freestyle::a, BLI_assert, BLI_rctf_init(), BLI_rctf_rcti_copy(), BLI_rcti_size_x(), BLI_rcti_size_y(), cornervec, uiWidgetBaseParameters::facxi, uiWidgetBaseParameters::facyi, uiWidgetBase::halfwayvert, uiWidgetBase::inner_uv, uiWidgetBase::inner_v, min_ii(), uiWidgetBase::outer_v, uiWidgetBaseParameters::rad, uiWidgetBaseParameters::radi, uiWidgetBaseParameters::rect, uiWidgetBaseParameters::recti, uiWidgetBaseParameters::round_corners, uiWidgetBase::totvert, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, uiWidgetBase::uniform_params, WIDGET_CURVE_RESOLU, WIDGET_SIZE_MAX, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by round_box_edges(), and widget_draw_extra_mask().
|
static |
Definition at line 889 of file interface_widgets.c.
References round_box__edges().
Referenced by ui_draw_but_HSV_v(), ui_draw_popover_back_impl(), UI_draw_widget_scroll(), widget_box(), widget_but(), widget_draw_extra_mask(), widget_icon_has_anim(), widget_list_itembut(), widget_menu_back(), widget_menu_itembut(), widget_menu_radial_itembut(), widget_menubut(), widget_menuiconbut(), widget_nodesocket(), widget_numbut_draw(), widget_numslider(), widget_optionbut(), widget_progressbar(), widget_pulldownbut(), widget_radiobut(), widget_roundbut_exec(), widget_swatch(), widget_tab(), and widget_textbut().
|
static |
Definition at line 644 of file interface_widgets.c.
References Freestyle::a, BLI_rcti_size_y(), cornervec, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, WIDGET_CURVE_RESOLU, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_softshadow().
|
static |
Definition at line 427 of file interface_widgets.c.
References data, and GPU_vertbuf_raw_step().
Referenced by ui_batch_roundbox_shadow_get().
|
static |
Definition at line 421 of file interface_widgets.c.
References data, and GPU_vertbuf_raw_step().
Referenced by ui_batch_roundbox_shadow_get().
|
static |
Definition at line 1075 of file interface_widgets.c.
References CLAMPIS.
Referenced by ui_draw_pie_center(), and widgetbase_draw_ex().
|
static |
Definition at line 967 of file interface_widgets.c.
References ARRAY_SIZE, g_shape_preset_hold_action_face, g_shape_preset_hold_action_vert, ROUNDBOX_TRIA_HOLD_ACTION_ARROW, shape_preset_init_trias_ex(), and uiWidgetTrias::type.
Referenced by widget_roundbut_exec().
|
static |
Definition at line 951 of file interface_widgets.c.
References ARRAY_SIZE, g_shape_preset_number_arrow_face, g_shape_preset_number_arrow_vert, ROUNDBOX_TRIA_ARROWS, shape_preset_init_trias_ex(), and uiWidgetTrias::type.
Referenced by widget_numbut_draw().
|
static |
Definition at line 988 of file interface_widgets.c.
References ARRAY_SIZE, g_shape_preset_scroll_circle_face, g_shape_preset_scroll_circle_vert, ROUNDBOX_TRIA_SCROLL, shape_preset_init_trias_ex(), and uiWidgetTrias::type.
Referenced by UI_draw_widget_scroll().
|
static |
Definition at line 901 of file interface_widgets.c.
References Freestyle::a, BLI_rcti_size_x(), BLI_rcti_size_y(), uiWidgetTrias::center, ELEM, float(), i1, uiWidgetTrias::index, uiWidgetTrias::size, uiWidgetTrias::tot, uiWidgetTrias::vec, verts, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by shape_preset_init_hold_action(), shape_preset_init_number_arrows(), and shape_preset_init_scroll_circle().
|
static |
Definition at line 1048 of file interface_widgets.c.
References Freestyle::a, BLI_rcti_size_y(), uiWidgetTrias::center, g_shape_preset_checkmark_face, g_shape_preset_checkmark_vert, uiWidgetTrias::index, ROUNDBOX_TRIA_CHECK, size(), uiWidgetTrias::size, uiWidgetTrias::tot, uiWidgetTrias::type, uiWidgetTrias::vec, rcti::xmin, and rcti::ymin.
Referenced by widget_optionbut().
|
static |
Definition at line 1021 of file interface_widgets.c.
References Freestyle::a, BLI_rcti_size_x(), BLI_rcti_size_y(), uiWidgetTrias::center, g_shape_preset_menu_arrow_face, g_shape_preset_menu_arrow_vert, height, uiWidgetTrias::index, ROUNDBOX_TRIA_MENU, size(), uiWidgetTrias::size, uiWidgetTrias::tot, uiWidgetTrias::type, uiWidgetTrias::vec, width, rcti::xmax, rcti::xmin, and rcti::ymin.
Referenced by widget_menubut(), and widget_menubut_embossn().
| GPUBatch* ui_batch_roundbox_shadow_get | ( | void | ) |
Definition at line 471 of file interface_widgets.c.
References Freestyle::a, Freestyle::c, g_ui_batch_cache, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, gpu_batch_presets_register(), GPU_PRIM_TRI_STRIP, GPU_vertbuf_attr_get_raw_data(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), INNER, NO_AA, NULL, set_roundbox_vertex(), set_roundbox_vertex_data(), vflag_format(), WIDGET_CURVE_RESOLU, and WIDGET_SIZE_MAX.
Referenced by ui_draw_dropshadow().
| GPUBatch* ui_batch_roundbox_widget_get | ( | void | ) |
Definition at line 445 of file interface_widgets.c.
References g_ui_batch_cache, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, gpu_batch_presets_register(), GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, and vflag_format().
Referenced by draw_widgetbase_batch(), UI_draw_roundbox_4fv_ex(), and UI_widgetbase_draw_cache_flush().
|
static |
Definition at line 1369 of file interface_widgets.c.
References uiBut::emboss, uiBut::flag, UI_BUT_ICON_SUBMENU, and UI_EMBOSS_PULLDOWN.
Referenced by widget_draw_text_icon().
Definition at line 584 of file interface_widgets.c.
References copy_v4_v4(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), jit, length(), pos, and WIDGET_AA_JITTER.
| void UI_draw_anti_tria | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | x3, | ||
| float | y3, | ||
| const float | color[4] | ||
| ) |
Definition at line 518 of file interface_widgets.c.
References copy_v4_v4(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), jit, pos, WIDGET_AA_JITTER, x2, and y1.
Referenced by ui_draw_anti_tria_rect(), and UI_draw_icon_tri().
Definition at line 570 of file interface_widgets.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), UI_draw_anti_tria(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by panel_draw_aligned_widgets(), and widget_draw_submenu_tria().
| void ui_draw_box_opaque | ( | rcti * | rect, |
| int | roundboxalign | ||
| ) |
Uses the widget base drawing and colors from from the box widget, but ensures an opaque inner color.
Definition at line 4895 of file interface_widgets.c.
References uiWidgetType::custom, uiWidgetColors::inner, NULL, rgba_float_to_uchar(), rgba_uchar_to_float(), uiWidgetType::state, TH_BACK, UI_EMBOSS_UNDEFINED, UI_GetThemeColor4fv(), UI_WTYPE_BOX, uiWidgetType::wcol, and widget_type().
Referenced by panel_draw_aligned_backdrop().
| void ui_draw_but | ( | const bContext * | C, |
| struct ARegion * | region, | ||
| uiStyle * | style, | ||
| uiBut * | but, | ||
| rcti * | rect | ||
| ) |
Definition at line 4523 of file interface_widgets.c.
References BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, C, uiWidgetType::custom, uiWidgetType::draw, uiBut::drawflag, uiBut::editstr, ELEM, uiBut::emboss, uiBut::flag, uiBlock::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiButHSVCube::gradient_type, uiBut::hold_func, uiBut::icon, NULL, uiWidgetType::state, state, uiBut::str, uiWidgetType::text, uiBlock::theme_style, bTheme::tui, uiBut::type, UI_ACTIVE, UI_BLOCK_POPOVER_ONCE, UI_BLOCK_THEME_STYLE_POPUP, UI_BTYPE_BLOCK, UI_BTYPE_BUT, UI_BTYPE_BUT_MENU, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_DECORATOR, UI_BTYPE_EXTRA, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_IMAGE, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_LISTROW, UI_BTYPE_MENU, UI_BTYPE_NODE_SOCKET, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_POPOVER, UI_BTYPE_PROGRESS_BAR, UI_BTYPE_PULLDOWN, UI_BTYPE_ROUNDBOX, UI_BTYPE_ROW, UI_BTYPE_SCROLL, UI_BTYPE_SEARCH_MENU, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_SEPR_SPACER, UI_BTYPE_TAB, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BTYPE_TRACK_PREVIEW, UI_BTYPE_UNITVEC, UI_BTYPE_VECTORSCOPE, UI_BTYPE_WAVEFORM, UI_BUT_ACTIVE_DEFAULT, UI_BUT_ACTIVE_LEFT, UI_BUT_ACTIVE_RIGHT, UI_BUT_BOX_ITEM, UI_BUT_DISABLED, UI_BUT_DRAG_MULTI, ui_but_drag_multi_edit_get(), UI_BUT_ICON_PREVIEW, UI_BUT_INACTIVE, ui_but_is_popover_once_compat(), UI_but_is_tool(), UI_BUT_NO_TEXT_PADDING, UI_BUT_NODE_LINK, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, ui_draw_but_COLORBAND(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_draw_but_IMAGE(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_draw_separator(), UI_EMBOSS, UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, UI_EMBOSS_PULLDOWN, UI_EMBOSS_RADIAL, UI_GetTheme(), UI_GRAD_L_ALT, UI_GRAD_V_ALT, UI_HAS_ICON, UI_SEARCH_FILTER_NO_MATCH, UI_SELECT, UI_SELECT_DRAW, UI_STATE_ACTIVE_LEFT, UI_STATE_ACTIVE_RIGHT, UI_STATE_FLAGS_ALL, UI_STATE_HOLD_ACTION, UI_STATE_TEXT_BEFORE_WIDGET, UI_STATE_TEXT_INPUT, UI_UNIT_X, ui_widget_color_disabled(), UI_WTYPE_BOX, UI_WTYPE_CHECKBOX, UI_WTYPE_EXEC, UI_WTYPE_ICON, UI_WTYPE_ICON_LABEL, UI_WTYPE_LABEL, UI_WTYPE_LISTITEM, UI_WTYPE_MENU_ICON_RADIO, UI_WTYPE_MENU_ITEM, UI_WTYPE_MENU_ITEM_RADIAL, UI_WTYPE_MENU_NODE_LINK, UI_WTYPE_MENU_RADIO, UI_WTYPE_NAME, UI_WTYPE_NODESOCKET, UI_WTYPE_NUMBER, UI_WTYPE_PROGRESSBAR, UI_WTYPE_PULLDOWN, UI_WTYPE_RADIO, UI_WTYPE_REGULAR, UI_WTYPE_SCROLL, UI_WTYPE_SLIDER, UI_WTYPE_SWATCH, UI_WTYPE_TAB, UI_WTYPE_TOGGLE, UI_WTYPE_TOOLBAR_ITEM, UI_WTYPE_UNITVEC, UNLIKELY, uiWidgetType::wcol, ThemeUI::wcol_box, ThemeUI::wcol_menu_back, ThemeUI::wcol_menu_item, ThemeUI::wcol_regular, uiWidgetType::wcol_theme, uiStyle::widget, widget_draw_extra_mask(), widget_draw_text_icon(), widget_roundbox_set(), widget_state(), widget_state_option_menu(), widget_type(), uiStyle::widgetlabel, rcti::xmax, and rcti::xmin.
Definition at line 3260 of file interface_widgets.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), CLAMP, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiButHSVCube::gradient_type, max, min, rgb_to_hsl_v(), rgb_to_hsv_v(), round_box_edges(), uiWidgetColors::roundness, uiBut::softmax, uiBut::softmin, bTheme::tui, ui_but_v3_get(), UI_CNR_ALL, UI_GetTheme(), UI_GRAD_L_ALT, UI_GRAD_V_ALT, ui_hsv_cursor(), ui_scene_linear_to_perceptual_space(), UI_widgetbase_draw_cache_flush(), v, ThemeUI::wcol_numslider, widget_init(), widgetbase_draw(), x, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but().
|
static |
Definition at line 2911 of file interface_widgets.c.
References Freestyle::a, BLI_rcti_cent_x_fl(), BLI_rcti_cent_y_fl(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, CLAMP, copy_v3_v3(), cosf, uiBut::custom_data, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_PRIM_TRI_FAN, GPU_SHADER_2D_SMOOTH_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), ColorPicker::hsv_perceptual, imm_draw_circle_wire_2d(), immAttr3fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3ubv(), immVertex2f(), immVertexFormat(), M_PI, min_ii(), uiWidgetColors::outline, pos, sinf, ui_block_cm_to_display_space_v3(), ui_but_is_color_gamma(), ui_but_v3_get(), ui_color_picker_hsv_to_rgb(), ui_color_picker_rgb_to_hsv_compat(), ui_hsv_cursor(), ui_hsvcircle_pos_from_vals(), ui_hsvcircle_vals_from_pos(), ui_perceptual_to_scene_linear_space(), ui_scene_linear_to_perceptual_space(), ColorPicker::use_color_lock, and USER_CP_CIRCLE_HSV.
Referenced by ui_draw_but().
Definition at line 3226 of file interface_widgets.c.
References CLAMP, copy_v3_v3(), uiBut::custom_data, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), uiButHSVCube::gradient_type, ColorPicker::hsv_perceptual, imm_draw_box_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor3ub(), immVertexFormat(), pos, rgb_to_hsv_compat_v(), ui_but_v3_get(), ui_draw_gradient(), ui_hsv_cursor(), ui_hsvcube_pos_from_vals(), ui_scene_linear_to_perceptual_space(), x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but().
|
static |
Definition at line 4854 of file interface_widgets.c.
References BLI_rcti_cent_x(), uiBlock::flag, float(), uiWidgetColors::text, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, UI_draw_icon_tri(), uiWidgetType::wcol, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_menu_back(), and ui_draw_popover_back().
| void ui_draw_gradient | ( | const rcti * | rect, |
| const float | hsv[3], | ||
| const eButGradientType | type, | ||
| const float | alpha | ||
| ) |
Definition at line 3024 of file interface_widgets.c.
References Freestyle::a, alpha, BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), col, color_step, copy_v3_v3(), float(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_2D_SMOOTH_COLOR, GPU_vertformat_attr_add(), hsv_to_rgb(), immAttr4f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, steps, type, UI_GRAD_H, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_S, UI_GRAD_SV, UI_GRAD_V, v, rcti::xmin, and rcti::ymin.
Referenced by ui_draw_but_CURVE(), and ui_draw_but_HSVCUBE().
Definition at line 552 of file interface_widgets.c.
References UI_draw_anti_tria(), x, and y.
Referenced by draw_columnheader_columns(), node_draw_basis(), node_draw_hidden(), and ui_draw_clip_tri().
Definition at line 4876 of file interface_widgets.c.
References uiBlock::direction, uiWidgetType::draw, uiBlock::flag, uiWidgetType::state, ui_draw_clip_tri(), UI_EMBOSS_UNDEFINED, UI_WTYPE_MENU_BACK, uiWidgetType::wcol, and widget_type().
| void ui_draw_menu_item | ( | const uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | state, | ||
| uiMenuItemSeparatorType | separator_type, | ||
| int * | r_xmax | ||
| ) |
Helper call to draw a menu item without a button.
| state | The state of the button, typically UI_ACTIVE, UI_BUT_DISABLED, UI_BUT_INACTIVE. |
| separator_type | The kind of separator which controls if and how the string is clipped. |
| r_xmax | The right hand position of the text, this takes into the icon, padding and text clipping when there is not enough room to display the full text. |
Definition at line 5225 of file interface_widgets.c.
References BLF_disable(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_KERNING_DEFAULT, BLF_width(), BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_strncpy(), uiWidgetType::draw, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, height, ICON_DEFAULT_HEIGHT, ICON_SIZE_FROM_BUTRECT, uiFontStyle::kerning, NULL, padding(), uiWidgetType::state, state, uiWidgetColors::text, UI_BUT_INACTIVE, UI_DPI_ICON_SIZE, UI_EMBOSS_UNDEFINED, UI_fontstyle_draw(), UI_fontstyle_draw_ex(), UI_fontstyle_set(), UI_icon_draw_ex(), UI_MAX_DRAW_STR, UI_MENU_ITEM_SEPARATOR_HINT, UI_MENU_ITEM_SEPARATOR_NONE, UI_MENU_ITEM_SEPARATOR_SHORTCUT, UI_SEP_CHAR, UI_text_clip_middle_ex(), UI_UNIT_X, UI_WTYPE_MENU_ITEM, uiFontStyle::uifont_id, uiWidgetType::wcol, widget_type(), ResultBLF::width, rcti::xmax, rcti::xmin, and rcti::ymin.
| void ui_draw_pie_center | ( | uiBlock * | block | ) |
Definition at line 5062 of file interface_widgets.c.
References angle(), atan2f, col, draw_disk_shaded(), PieMenuData::flags, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), imm_draw_circle_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor4ubv(), immVertexFormat(), uiWidgetColors::inner, uiWidgetColors::inner_sel, M_PI, M_PI_2, M_PI_4, NULL, uiWidgetColors::outline, PieMenuData::pie_center_spawned, uiBlock::pie_data, PieMenuData::pie_dir, pos, shadecolors4(), uiWidgetColors::shaded, uiWidgetColors::shadedown, uiWidgetColors::shadetop, uiWidgetColors::text_sel, bTheme::tui, UI_GetTheme(), UI_PIE_CLICK_STYLE, UI_PIE_DEGREES_RANGE_LARGE, UI_PIE_INVALID_DIR, UNPACK3, and ThemeUI::wcol_pie_menu.
Referenced by UI_block_draw().
| void ui_draw_popover_back | ( | struct ARegion * | region, |
| uiStyle * | UNUSEDstyle, | ||
| uiBlock * | block, | ||
| rcti * | rect | ||
| ) |
Definition at line 4989 of file interface_widgets.c.
References uiBlock::aspect, uiBlock::bounds_offset, uiBlock::direction, uiWidgetType::draw, uiWidgetType::state, ui_draw_clip_tri(), ui_draw_popover_back_impl(), UI_EMBOSS_UNDEFINED, ui_window_to_block_fl(), UI_WTYPE_MENU_BACK, UNPACK2, uiWidgetType::wcol, uiWidgetType::wcol_theme, and widget_type().
|
static |
Similar to 'widget_menu_back', however we can't use the widget preset system because we need to pass in the original location so we know where to show the arrow.
Definition at line 4919 of file interface_widgets.c.
References BLI_rcti_cent_x(), CLAMPIS, uiWidgetBase::draw_emboss, ELEM, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ub(), immUniformColor4ubv(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, uiWidgetColors::outline, pos, round_box_edges(), uiWidgetColors::roundness, KDL::sign(), UI_CNR_ALL, UI_DIR_DOWN, UI_DIR_UP, widget_init(), widget_softshadow(), widgetbase_draw(), rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_popover_back().
| void ui_draw_preview_item | ( | const uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | state | ||
| ) |
Definition at line 5372 of file interface_widgets.c.
References BLF_DRAW_STR_DUMMY_MAX, BLF_width_and_height(), BLI_rcti_size_x(), BLI_strncpy(), uiWidgetType::draw, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, PREVIEW_PAD, uiWidgetType::state, state, uiWidgetColors::text, UI_DPI_ICON_SIZE, UI_EMBOSS_UNDEFINED, UI_fontstyle_draw(), UI_MAX_DRAW_STR, UI_text_clip_middle_ex(), UI_UNIT_Y, UI_WTYPE_MENU_ITEM, uiFontStyle::uifont_id, uiWidgetType::wcol, widget_draw_preview(), widget_type(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
|
static |
Separator for menus.
Definition at line 3316 of file interface_widgets.c.
References BLI_rcti_size_y(), col, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ubv(), immVertex2f(), immVertexFormat(), pos, uiWidgetColors::text, rcti::xmax, rcti::xmin, y, and rcti::ymin.
Referenced by ui_draw_but().
Definition at line 5208 of file interface_widgets.c.
References uiWidgetType::draw, uiWidgetType::state, UI_EMBOSS_UNDEFINED, UI_WTYPE_TOOLTIP, uiWidgetType::wcol, and widget_type().
|
static |
Generic drawing for background.
Definition at line 5178 of file interface_widgets.c.
References uiWidgetType::draw, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiWidgetColors::inner, rect_copy(), rgba_float_to_uchar(), uiWidgetType::state, type, UI_CNR_ALL, UI_EMBOSS_UNDEFINED, uiWidgetType::wcol, widget_softshadow(), and widget_type().
Referenced by ui_draw_widget_menu_back(), and ui_draw_widget_menu_back_color().
| void ui_draw_widget_menu_back | ( | const rcti * | rect, |
| bool | use_shadow | ||
| ) |
Definition at line 5203 of file interface_widgets.c.
References NULL, ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
Referenced by ui_searchbox_region_draw_cb(), and ui_searchbox_region_draw_cb__operator().
Definition at line 5198 of file interface_widgets.c.
References ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
| void UI_draw_widget_scroll | ( | uiWidgetColors * | wcol, |
| const rcti * | rect, | ||
| const rcti * | slider, | ||
| int | state | ||
| ) |
Definition at line 3508 of file interface_widgets.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), copy_v4_v4_uchar(), uiWidgetBase::draw_emboss, uiWidgetBase::draw_outline, uiWidgetColors::inner, uiWidgetColors::item, round_box_edges(), uiWidgetColors::roundness, uiWidgetBaseParameters::shade_dir, uiWidgetColors::shadedown, uiWidgetColors::shadetop, shape_preset_init_scroll_circle(), state, SWAP, uiWidgetBase::tria1, uiWidgetBase::tria2, UI_CNR_ALL, UI_SCROLL_ARROWS, UI_SCROLL_NO_OUTLINE, UI_SCROLL_PRESSED, uiWidgetBase::uniform_params, widget_init(), widgetbase_draw(), rcti::xmax, and rcti::xmin.
Referenced by widget_scroll().
Definition at line 2853 of file interface_widgets.c.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), imm_draw_circle_fill_2d(), imm_draw_circle_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor3f(), immVertexFormat(), pos, x, and y.
Referenced by ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), and ui_draw_but_HSVCUBE().
| void ui_hsvcircle_pos_from_vals | ( | const ColorPicker * | cpicker, |
| const rcti * | rect, | ||
| const float * | hsv, | ||
| float * | r_xpos, | ||
| float * | r_ypos | ||
| ) |
Definition at line 2888 of file interface_widgets.c.
References BLI_rcti_cent_x_fl(), BLI_rcti_cent_y_fl(), BLI_rcti_size_x(), BLI_rcti_size_y(), clamp_f(), cosf, float(), M_PI, M_PI_2, min_ii(), pow3f(), sinf, ColorPicker::use_color_cubic, and USER_CP_CIRCLE_HSV.
Referenced by ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
| void ui_hsvcircle_vals_from_pos | ( | const rcti * | rect, |
| const float | mx, | ||
| const float | my, | ||
| float * | r_val_rad, | ||
| float * | r_val_dist | ||
| ) |
Definition at line 2873 of file interface_widgets.c.
References atan2f, BLI_rcti_cent_x_fl(), BLI_rcti_cent_y_fl(), BLI_rcti_size_x(), BLI_rcti_size_y(), float(), len_squared_v2(), m_delta, M_PI, min_ii(), and sqrtf.
Referenced by ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
| void ui_hsvcube_pos_from_vals | ( | const uiButHSVCube * | hsv_but, |
| const rcti * | rect, | ||
| const float * | hsv, | ||
| float * | r_xp, | ||
| float * | r_yp | ||
| ) |
Definition at line 3179 of file interface_widgets.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), uiButHSVCube::but, uiButHSVCube::gradient_type, uiBut::softmax, uiBut::softmin, UI_GRAD_H, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_S, UI_GRAD_SV, UI_GRAD_V, UI_GRAD_V_ALT, x, rcti::xmin, y, and rcti::ymin.
Referenced by ui_draw_but_HSVCUBE().
|
static |
Cut off the text, taking into account the cursor location (text display while editing).
Definition at line 1728 of file interface_widgets.c.
References BLF_disable(), BLF_enable(), BLF_KERNING_DEFAULT, BLF_width(), BLI_assert, BLI_rcti_size_x(), BLI_str_find_prev_char_utf8(), BLI_str_utf8_size(), border, uiBut::editstr, uiFontStyle::kerning, len, max_ii(), uiBut::ofs, uiBut::pos, uiBut::strwidth, UI_fontstyle_set(), ui_text_clip_give_next_off(), ui_text_clip_give_prev_off(), UI_TEXT_CLIP_MARGIN, uiFontStyle::uifont_id, and width.
Referenced by widget_draw_text_icon().
|
static |
Definition at line 1506 of file interface_widgets.c.
References BLI_str_find_next_char_utf8(), NULL, uiBut::ofs, and str.
Referenced by ui_text_clip_cursor(), and ui_text_clip_right_label().
|
static |
Definition at line 1498 of file interface_widgets.c.
References BLI_str_find_prev_char_utf8(), uiBut::ofs, and str.
Referenced by ui_text_clip_cursor().
|
static |
Wrapper around UI_text_clip_middle_ex.
Definition at line 1688 of file interface_widgets.c.
References uiBlock::aspect, BLI_rcti_size_x(), uiBut::block, border, uiBut::drawstr, ELEM, float(), max_ii(), uiBut::ofs, uiBut::strwidth, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_DPI_ICON_SIZE, UI_TEXT_CLIP_MARGIN, and UI_text_clip_middle_ex().
Referenced by widget_draw_text_icon().
| float UI_text_clip_middle_ex | ( | const uiFontStyle * | fstyle, |
| char * | str, | ||
| float | okwidth, | ||
| const float | minwidth, | ||
| const size_t | max_len, | ||
| const char | rpart_sep | ||
| ) |
Cut off the middle of the text to fit into the given width.
If rpart_sep is not Null, the part of str starting to first occurrence of rpart_sep is preserved at all cost. Useful for strings with shortcuts (like 'AVeryLongFooBarLabelForMenuEntry|Ctrl O' -> 'AVeryLong...MenuEntry|Ctrl O').
Definition at line 1561 of file interface_widgets.c.
References BLF_disable(), BLF_enable(), BLF_KERNING_DEFAULT, BLF_width(), BLF_width_to_rstrlen(), BLF_width_to_strlen(), BLI_assert, Freestyle::c, uiFontStyle::kerning, min_ff(), NULL, str, UI_DPI_FAC, UI_fontstyle_set(), UI_MAX_DRAW_STR, ui_text_clip_right_ex(), and uiFontStyle::uifont_id.
Referenced by ui_draw_menu_item(), ui_draw_preview_item(), ui_text_clip_middle(), and ui_text_clip_middle_protect_right().
|
static |
Like ui_text_clip_middle(), but protect/preserve at all cost the right part of the string after sep. Useful for strings with shortcuts (like 'AVeryLongFooBarLabelForMenuEntry|Ctrl O' -> 'AVeryLong...MenuEntry|Ctrl O').
Definition at line 1708 of file interface_widgets.c.
References uiBlock::aspect, BLI_rcti_size_x(), uiBut::block, border, uiBut::drawstr, ELEM, float(), max_ii(), uiBut::ofs, uiBut::strwidth, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_DPI_ICON_SIZE, UI_TEXT_CLIP_MARGIN, and UI_text_clip_middle_ex().
Referenced by widget_draw_text_icon().
|
static |
Helper. This func assumes things like kerning handling have already been handled! Return the length of modified (right-clipped + ellipsis) string.
Definition at line 1519 of file interface_widgets.c.
References BLF_width_to_strlen(), BLI_assert, NULL, str, and uiFontStyle::uifont_id.
Referenced by UI_text_clip_middle_ex().
|
static |
Cut off the end of text to fit into the width of rect.
Definition at line 1798 of file interface_widgets.c.
References BLF_disable(), BLF_enable(), BLF_KERNING_DEFAULT, BLF_width(), BLF_width_to_strlen(), BLI_rcti_size_x(), BLI_str_find_prev_char_utf8(), border, uiBut::drawstr, uiFontStyle::kerning, max_ii(), uiBut::ofs, uiBut::strwidth, UI_fontstyle_set(), ui_text_clip_give_next_off(), UI_TEXT_CLIP_MARGIN, and uiFontStyle::uifont_id.
Referenced by widget_draw_text_icon().
| const uiWidgetColors* ui_tooltip_get_theme | ( | void | ) |
Definition at line 5169 of file interface_widgets.c.
References UI_WTYPE_TOOLTIP, uiWidgetType::wcol_theme, and widget_type().
Referenced by ui_tooltip_region_draw_cb().
|
static |
Definition at line 2503 of file interface_widgets.c.
References uiWidgetColors::inner, uiWidgetColors::inner_sel, uiWidgetColors::item, uiWidgetColors::outline, state, uiWidgetColors::text, uiWidgetColors::text_sel, uiWidgetType::wcol_theme, and widget_alpha_factor().
Referenced by ui_draw_but(), and widget_state().
| void UI_widgetbase_draw_cache_begin | ( | void | ) |
Definition at line 1199 of file interface_widgets.c.
References BLI_assert, and g_widget_base_batch.
Referenced by UI_block_draw().
| void UI_widgetbase_draw_cache_end | ( | void | ) |
Definition at line 1205 of file interface_widgets.c.
References BLI_assert, g_widget_base_batch, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, and UI_widgetbase_draw_cache_flush().
Referenced by UI_block_draw().
| void UI_widgetbase_draw_cache_flush | ( | void | ) |
Definition at line 1169 of file interface_widgets.c.
References batch, g_widget_base_batch, GPU_batch_draw(), GPU_batch_draw_instanced(), GPU_batch_program_set_builtin(), GPU_batch_uniform_3fv, GPU_batch_uniform_4fv_array, GPU_SHADER_2D_WIDGET_BASE, GPU_SHADER_2D_WIDGET_BASE_INST, GPUBatch, MAX_WIDGET_BASE_BATCH, MAX_WIDGET_PARAMETERS, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, and ui_batch_roundbox_widget_get().
Referenced by blf_batch_draw(), draw_widgetbase_batch(), icon_draw_cache_flush_ex(), icon_draw_size(), icon_draw_texture(), ui_draw_but_HSV_v(), UI_widgetbase_draw_cache_end(), widget_draw_node_link_socket(), widget_draw_submenu_tria(), widget_draw_text(), widget_swatch(), and widget_tab().
|
static |
Definition at line 406 of file interface_widgets.c.
References g_ui_batch_cache, GPU_COMP_U32, GPU_FETCH_INT, and GPU_vertformat_attr_add().
Referenced by ui_batch_roundbox_shadow_get(), and ui_batch_roundbox_widget_get().
|
static |
Definition at line 2521 of file interface_widgets.c.
References color_mul_hsl_v3(), uiWidgetColors::inner, uiWidgetColors::outline, rgb_to_grayscale_byte(), and uiWidgetColors::text.
Referenced by widget_numbut_draw(), and widget_state().
|
static |
Definition at line 1335 of file interface_widgets.c.
References state, UI_BUT_DISABLED, UI_BUT_INACTIVE, and UI_SEARCH_FILTER_NO_MATCH.
Referenced by ui_widget_color_disabled(), widget_draw_icon(), and widget_swatch().
|
static |
Definition at line 4121 of file interface_widgets.c.
References uiBut::col, copy_v3_v3_uchar(), uiWidgetColors::inner, NULL, round_box_edges(), uiWidgetColors::roundness, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 4146 of file interface_widgets.c.
References round_box_edges(), uiWidgetColors::roundness, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 2529 of file interface_widgets.c.
References uiWidgetStateColors::inner_anim_sel, uiWidgetStateColors::inner_changed_sel, uiWidgetStateColors::inner_driven_sel, uiWidgetStateColors::inner_key_sel, uiWidgetStateColors::inner_overridden_sel, NULL, state, UI_BUT_ANIMATED, UI_BUT_ANIMATED_CHANGED, UI_BUT_ANIMATED_KEY, UI_BUT_DRIVEN, UI_BUT_OVERRIDDEN, and UI_EMBOSS_NONE.
Referenced by widget_state(), and widget_state_numslider().
|
static |
Definition at line 2246 of file interface_widgets.c.
References alpha, BLI_listbase_is_empty(), uiBut::drawflag, uiBut::extra_op_icons, uiBut::icon, ICON_SIZE_FROM_BUTRECT, LISTBASE_FOREACH_BACKWARD, uiWidgetColors::text, UI_but_drawflag_disable(), UI_BUT_ICON_LEFT, widget_draw_icon(), rcti::xmax, and rcti::xmin.
Referenced by widget_draw_text_icon().
|
static |
Definition at line 4238 of file interface_widgets.c.
References uiBut::block, C, col, uiWidgetBase::draw_inner, uiWidgetBase::draw_outline, uiBlock::drawextra, uiBlock::drawextra_arg1, uiBlock::drawextra_arg2, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor3ubv(), immVertexFormat(), uiBut::poin, pos, round_box__edges(), round_box_edges(), uiWidgetColors::roundness, TH_BACK, bTheme::tui, UI_CNR_ALL, UI_GetTheme(), UI_GetThemeColor3ubv(), uiWidgetType::wcol, ThemeUI::wcol_radio, uiWidgetType::wcol_theme, widget_init(), widgetbase_draw(), and widgetbase_outline().
Referenced by ui_draw_but().
|
static |
Definition at line 1376 of file interface_widgets.c.
References uiBut::a1, uiBut::a2, alpha, uiBlock::aspect, uiBut::block, uiBut::dragpoin, uiBut::drawflag, ELEM, uiBut::emboss, uiBut::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, height, uiBut::icon, ICON_DEFAULT_HEIGHT, ThemeUI::icon_saturation, uiBut::str, bTheme::tui, uiBut::type, UI_ACTIVE, ui_block_is_pie_menu(), UI_BTYPE_BUT, UI_BTYPE_DECORATOR, UI_BTYPE_LABEL, UI_BTYPE_LISTROW, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_ROW, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BUT_ICON_LEFT, UI_BUT_ICON_PREVIEW, UI_BUT_ICON_SUBMENU, UI_but_is_tool(), UI_EMBOSS_NONE, UI_GetTheme(), UI_icon_draw_ex(), UI_icon_get_theme_color(), UI_SELECT, UI_SELECT_DRAW, widget_alpha_factor(), widget_draw_preview(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_draw_extra_icons(), widget_draw_node_link_socket(), and widget_draw_text_icon().
|
static |
Definition at line 2281 of file interface_widgets.c.
References alpha, uiBlock::aspect, uiBut::block, uiBut::col, col, uiBut::custom_data, ED_node_socket_draw(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, rgba_uchar_to_float(), uiWidgetColors::text, UI_widgetbase_draw_cache_flush(), and widget_draw_icon().
Referenced by widget_draw_text_icon().
Definition at line 1351 of file interface_widgets.c.
References alpha, BLI_rcti_size_x(), BLI_rcti_size_y(), MIN2, PREVIEW_PAD, size(), UI_icon_draw_preview(), w(), x, rcti::xmin, y, and rcti::ymin.
Referenced by ui_draw_preview_item(), widget_draw_icon(), and widget_draw_text_icon().
|
static |
Definition at line 1474 of file interface_widgets.c.
References uiBlock::aspect, BLI_rctf_init(), BLI_rctf_scale(), uiBut::block, col, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, ICON_DEFAULT_HEIGHT, ICON_DEFAULT_WIDTH, rgba_uchar_to_float(), uiWidgetColors::text, ui_draw_anti_tria_rect(), UI_widgetbase_draw_cache_flush(), rcti::xmax, rcti::ymax, and rcti::ymin.
Referenced by widget_draw_text_icon().
|
static |
Definition at line 1952 of file interface_widgets.c.
References ARRAY_SIZE, BLF_boundbox_foreach_glyph(), BLF_color4ubv(), BLF_disable(), BLF_draw(), BLF_enable(), BLF_KERNING_DEFAULT, BLF_position(), BLF_width(), BLI_snprintf(), col, copy_v4_v4_uchar(), uiBut::drawflag, uiBut::drawstr, uiBut::editstr, ELEM, uiBut::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ubv(), immUniformThemeColor(), immVertexFormat(), uiWidgetColors::item, uiFontStyle::kerning, uiBut::menu_key, min_ii(), NULL, uiBut::ofs, uiBut::pos, pos, uiBut::selend, uiBut::selsta, t, uiWidgetColors::text, TH_WIDGET_TEXT_CURSOR, uiBut::type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BUT_DRAG_MULTI, ui_but_drag_multi_edit_get(), UI_BUT_HAS_SEP_CHAR, UI_BUT_HAS_SHORTCUT, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, UI_fontstyle_draw(), UI_fontstyle_draw_ex(), UI_fontstyle_set(), UI_MAX_DRAW_STR, UI_SEP_CHAR, UI_STYLE_TEXT_CENTER, UI_STYLE_TEXT_LEFT, UI_STYLE_TEXT_RIGHT, UI_TEXT_CLIP_MARGIN, UI_widgetbase_draw_cache_flush(), uiFontStyle::uifont_id, UNLIKELY, widget_draw_text_underline_calc_center_x(), x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by widget_draw_text_icon().
|
static |
Definition at line 2306 of file interface_widgets.c.
References alpha, uiBlock::aspect, BLF_disable(), BLF_SHADOW, BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, uiBut::col, uiBlock::content_hints, uiBut::drawflag, uiBut::drawstr, uiBut::editstr, ELEM, uiBut::emboss, uiBut::flag, uiBlock::flag, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiBut::icon, ICON_DEFAULT_HEIGHT, ICON_DEFAULT_HEIGHT_TOOLBAR, NULL, uiBut::ofs, uiBut::pos, round_fl_to_int(), size(), uiBut::strwidth, uiWidgetColors::text, uiBut::type, UI_BLOCK_CONTAINS_SUBMENU_BUT, ui_block_is_menu(), ui_block_is_pie_menu(), UI_BLOCK_POPOVER, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_POPOVER, UI_BUT_DRAG_MULTI, ui_but_drag_multi_edit_get(), ui_but_draw_menu_icon(), UI_BUT_HAS_SEP_CHAR, ui_but_icon(), UI_BUT_ICON_LEFT, UI_BUT_ICON_PREVIEW, UI_but_is_tool(), UI_BUT_NO_TEXT_PADDING, UI_BUT_NODE_LINK, UI_BUT_TEXT_LEFT, ui_but_text_password_hide(), UI_BUT_TEXT_RIGHT, UI_DPI_FAC, UI_EMBOSS_RADIAL, UI_HAS_ICON, UI_MAX_DRAW_STR, UI_MENU_SUBMENU_PADDING, UI_SEP_CHAR, ui_text_clip_cursor(), ui_text_clip_middle(), ui_text_clip_middle_protect_right(), ui_text_clip_right_label(), UI_TEXT_MARGIN_X, UI_UNIT_Y, uiFontStyle::uifont_id, widget_draw_extra_icons(), widget_draw_icon(), widget_draw_node_link_socket(), widget_draw_preview(), widget_draw_submenu_tria(), widget_draw_text(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but(), and widget_type().
|
static |
Definition at line 1933 of file interface_widgets.c.
References BLI_rctf_size_x(), user_data, and rcti::xmin.
Referenced by widget_draw_text().
|
static |
Definition at line 1004 of file interface_widgets.c.
References col, immAttr4ubv(), immBegin(), immEnd(), immVertex2fv(), and pos.
Referenced by widget_softshadow(), and widgetbase_outline().
|
static |
Definition at line 3901 of file interface_widgets.c.
References BLI_rcti_size_y(), uiWidgetBase::draw_outline, uiBut::emboss, round_box_edges(), uiWidgetColors::roundness, state, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BUT_ANIMATED, UI_BUT_ANIMATED_KEY, UI_BUT_DRIVEN, UI_BUT_REDALERT, UI_CNR_ALL, UI_EMBOSS_NONE, widget_init(), widget_menubut_embossn(), widget_numbut_embossn(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 619 of file interface_widgets.c.
References uiWidgetBaseParameters::alpha_discard, uiWidgetBase::draw_emboss, uiWidgetBase::draw_inner, uiWidgetBase::draw_outline, uiWidgetBase::halfwayvert, ROUNDBOX_TRIA_NONE, uiWidgetBaseParameters::shade_dir, uiWidgetTrias::size, uiWidgetTrias::tot, uiWidgetBase::totvert, uiWidgetBase::tria1, uiWidgetBase::tria2, uiWidgetTrias::type, and uiWidgetBase::uniform_params.
Referenced by ui_draw_but_HSV_v(), ui_draw_popover_back_impl(), UI_draw_widget_scroll(), widget_box(), widget_but(), widget_draw_extra_mask(), widget_icon_has_anim(), widget_list_itembut(), widget_menu_back(), widget_menu_itembut(), widget_menu_radial_itembut(), widget_menubut(), widget_menubut_embossn(), widget_menuiconbut(), widget_nodesocket(), widget_numbut_draw(), widget_numslider(), widget_optionbut(), widget_progressbar(), widget_pulldownbut(), widget_radiobut(), widget_roundbut_exec(), widget_swatch(), widget_tab(), and widget_textbut().
|
static |
Definition at line 4021 of file interface_widgets.c.
References uiWidgetBase::draw_outline, round_box_edges(), uiWidgetColors::roundness, UI_CNR_ALL, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 2822 of file interface_widgets.c.
References uiWidgetBase::draw_emboss, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, round_box_edges(), uiWidgetColors::roundness, UI_BLOCK_POPUP, UI_CNR_ALL, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_DIR_DOWN, UI_DIR_UP, widget_init(), widget_softshadow(), widgetbase_draw(), rcti::ymax, and rcti::ymin.
Referenced by widget_type().
|
static |
Definition at line 3983 of file interface_widgets.c.
References uiWidgetBase::draw_outline, round_box_edges(), widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 3998 of file interface_widgets.c.
References PieMenuData::alphafac, BLI_rcti_size_y(), uiBut::block, uiWidgetBase::draw_emboss, uiWidgetColors::inner, uiWidgetColors::inner_sel, uiWidgetColors::item, uiWidgetColors::outline, uiBlock::pie_data, round_box_edges(), uiWidgetColors::roundness, uiWidgetColors::text, uiWidgetColors::text_sel, UI_CNR_ALL, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 3457 of file interface_widgets.c.
References BLI_rcti_size_y(), round_box_edges(), uiWidgetColors::roundness, shape_preset_trias_from_rect_menu(), uiWidgetBase::tria1, uiWidgetBase::tria2, widget_init(), widgetbase_draw(), and rcti::xmax.
Referenced by widget_type().
|
static |
Draw menu buttons still with triangles when field is not embossed
Definition at line 3479 of file interface_widgets.c.
References uiWidgetBase::draw_inner, uiWidgetBase::draw_outline, shape_preset_trias_from_rect_menu(), uiWidgetBase::tria1, uiWidgetBase::tria2, widget_init(), and widgetbase_draw().
Referenced by widget_icon_has_anim().
|
static |
Definition at line 3940 of file interface_widgets.c.
References round_box_edges(), uiWidgetColors::roundness, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 3688 of file interface_widgets.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), uiBut::col, copy_v3_v3_uchar(), uiWidgetBase::draw_outline, uiWidgetColors::inner, uiWidgetColors::outline, round_box_edges(), UI_CNR_ALL, widget_init(), widgetbase_draw(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_type().
|
static |
Definition at line 3452 of file interface_widgets.c.
References state, and widget_numbut_draw().
Referenced by widget_type().
|
static |
Definition at line 3350 of file interface_widgets.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), copy_v3_v3_uchar(), uiWidgetBase::draw_emboss, uiWidgetBase::draw_inner, uiWidgetBase::draw_outline, uiWidgetColors::item, min_ii(), round_box_edges(), ROUNDBOX_TRIA_ARROWS, uiWidgetColors::roundness, uiWidgetColors::shadedown, uiWidgetColors::shadetop, shape_preset_init_number_arrows(), state, SWAP, uiWidgetColors::text, uiWidgetBase::tria1, uiWidgetBase::tria2, uiWidgetTrias::type, UI_ACTIVE, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_SELECT, UI_STATE_ACTIVE_LEFT, UI_STATE_ACTIVE_RIGHT, UI_STATE_TEXT_INPUT, widget_active_color(), widget_init(), widgetbase_draw(), rcti::xmax, and rcti::xmin.
Referenced by widget_numbut(), and widget_numbut_embossn().
|
static |
Draw number buttons still with triangles when field is not embossed
Definition at line 3501 of file interface_widgets.c.
References state, and widget_numbut_draw().
Referenced by widget_icon_has_anim().
|
static |
Definition at line 3723 of file interface_widgets.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), copy_v3_v3_uchar(), uiWidgetBase::draw_inner, uiWidgetBase::draw_outline, float(), uiWidgetColors::inner, uiWidgetColors::item, uiWidgetColors::outline, PROP_PERCENTAGE, RNA_property_subtype(), uiBut::rnaprop, round_box_edges(), uiWidgetColors::roundness, uiWidgetColors::shadedown, uiWidgetColors::shadetop, uiBut::softmax, uiBut::softmin, state, SWAP, ui_but_value_get(), UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_RIGHT, UI_SELECT, UI_STATE_TEXT_INPUT, widget_init(), widgetbase_draw(), widgetbase_set_uniform_discard_factor(), width, rcti::xmax, and rcti::xmin.
Referenced by widget_type().
|
static |
Definition at line 4037 of file interface_widgets.c.
References BLI_rcti_resize(), BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_rcti_translate(), round_box_edges(), uiWidgetColors::roundness, shape_preset_trias_from_rect_checkmark(), state, uiWidgetBase::tria1, UI_CNR_ALL, UI_SELECT, UI_STATE_TEXT_BEFORE_WIDGET, widget_init(), widgetbase_draw(), rcti::xmax, and rcti::xmin.
Referenced by widget_type().
|
static |
Definition at line 3653 of file interface_widgets.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), copy_v3_v3_uchar(), uiWidgetBase::draw_outline, uiWidgetColors::inner, uiWidgetColors::item, MAX2, uiButProgressbar::progress, round_box_edges(), uiWidgetColors::roundness, w(), widget_init(), widgetbase_draw(), rcti::xmax, and rcti::xmin.
Referenced by widget_type().
|
static |
Definition at line 3955 of file interface_widgets.c.
References copy_v3_v3_uchar(), copy_v4_v4_uchar(), uiWidgetColors::inner, uiWidgetColors::inner_sel, uiWidgetColors::outline, round_box_edges(), uiWidgetColors::roundness, state, uiWidgetColors::text, uiWidgetColors::text_sel, TH_BACK, UI_ACTIVE, UI_GetThemeColor4fv(), widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 4110 of file interface_widgets.c.
References round_box_edges(), uiWidgetColors::roundness, widget_init(), and widgetbase_draw().
Referenced by widget_type().
Definition at line 4451 of file interface_widgets.c.
References uiBut::active, uiBut::drawflag, uiBut::type, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_BUT_ALIGN, UI_BUT_ALIGN_DOWN, UI_BUT_ALIGN_LEFT, UI_BUT_ALIGN_RIGHT, UI_BUT_ALIGN_STITCH_LEFT, UI_BUT_ALIGN_STITCH_TOP, UI_BUT_ALIGN_TOP, ui_but_menu_direction(), ui_but_menu_draw_as_popover(), UI_CNR_ALL, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_DIR_DOWN, UI_DIR_LEFT, UI_DIR_RIGHT, UI_DIR_UP, rcti::xmin, and rcti::ymax.
Referenced by ui_draw_but().
|
static |
Definition at line 4172 of file interface_widgets.c.
References round_box_edges(), uiWidgetColors::roundness, shape_preset_init_hold_action(), state, uiWidgetBase::tria1, UI_STATE_HOLD_ACTION, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 3595 of file interface_widgets.c.
References uiBut::a1, BLI_rcti_size_x(), BLI_rcti_size_y(), ceilf, float(), max_ff(), max_ii(), min, size(), uiBut::softmax, uiBut::softmin, state, ui_but_value_get(), UI_draw_widget_scroll(), UI_SCROLL_PRESSED, UI_SELECT, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_type().
Definition at line 2770 of file interface_widgets.c.
References BLI_rcti_size_y(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_STRIP, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor4f(), immVertexFormat(), uiWidgetBase::inner_v, ThemeUI::menu_shadow_fac, NULL, uiWidgetBase::outer_v, pos, round_box_shadow_edges(), sqrtf, bTheme::tui, UI_CNR_ALL, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_GetTheme(), UI_ThemeMenuShadowWidth(), widget_draw_vertex_buffer(), WIDGET_SIZE_MAX, widget_verts_to_triangle_strip(), and rcti::ymax.
Referenced by ui_draw_popover_back_impl(), ui_draw_widget_back_color(), and widget_menu_back().
|
static |
Definition at line 2558 of file interface_widgets.c.
References uiWidgetStateColors::blend, blue, color_blend_v3_v3(), copy_v3_v3_uchar(), copy_v4_v4_uchar(), uiWidgetType::draw, uiWidgetColors::inner, uiWidgetColors::inner_sel, NULL, uiWidgetColors::shadedown, uiWidgetColors::shadetop, state, SWAP, uiWidgetColors::text, uiWidgetColors::text_sel, bTheme::tui, UI_ACTIVE, UI_BUT_ACTIVE_DEFAULT, UI_BUT_DISABLED, UI_BUT_DRAG_MULTI, UI_BUT_INACTIVE, UI_BUT_LIST_ITEM, UI_BUT_NODE_ACTIVE, UI_BUT_REDALERT, UI_EMBOSS_NONE, UI_GetTheme(), UI_SEARCH_FILTER_NO_MATCH, UI_SELECT, UI_STATE_TEXT_INPUT, ui_widget_color_disabled(), uiWidgetType::wcol, ThemeUI::wcol_list_item, uiWidgetType::wcol_state, uiWidgetType::wcol_theme, widget_active_color(), and widget_color_blend_from_flags().
Referenced by ui_draw_but(), widget_state_label(), widget_state_numslider(), widget_state_option_menu(), and widget_type().
|
static |
Definition at line 4084 of file interface_widgets.c.
References color_blend_v3_v3(), state, uiWidgetColors::text, TH_TEXT, TH_TEXT_HI, bTheme::tui, UI_BUT_LIST_ITEM, UI_BUT_REDALERT, UI_GetTheme(), UI_GetThemeColor3ubv(), UI_SELECT, uiWidgetType::wcol, ThemeUI::wcol_list_item, uiWidgetType::wcol_theme, and widget_state().
Referenced by widget_type().
|
static |
Definition at line 2732 of file interface_widgets.c.
References color_blend_v3_v3(), copy_v3_v3_uchar(), copy_v4_v4_uchar(), uiWidgetColors::inner, uiWidgetColors::inner_sel, state, uiWidgetColors::text, uiWidgetColors::text_sel, UI_ACTIVE, UI_BUT_DISABLED, UI_BUT_INACTIVE, uiWidgetType::wcol, and uiWidgetType::wcol_theme.
Referenced by widget_type().
|
static |
Definition at line 2679 of file interface_widgets.c.
References uiWidgetType::wcol, and uiWidgetType::wcol_theme.
Referenced by widget_type().
|
static |
Definition at line 2636 of file interface_widgets.c.
References uiWidgetStateColors::blend, color_blend_v3_v3(), color_ensure_contrast_v3(), uiWidgetColors::inner, uiWidgetColors::item, NULL, rgb_to_grayscale_byte(), uiWidgetColors::shadedown, uiWidgetColors::shadetop, state, SWAP, UI_SELECT, uiWidgetType::wcol, uiWidgetType::wcol_state, widget_color_blend_from_flags(), and widget_state().
Referenced by widget_type().
|
static |
Definition at line 2659 of file interface_widgets.c.
References copy_v3_v3_uchar(), state, uiWidgetColors::text, uiWidgetColors::text_sel, bTheme::tui, UI_GetTheme(), ThemeUI::wcol_menu_back, uiWidgetType::wcol_theme, and widget_state().
Referenced by ui_draw_but().
|
static |
Definition at line 2697 of file interface_widgets.c.
References color_blend_v3_v3(), copy_v3_v3_uchar(), copy_v4_v4_uchar(), uiWidgetColors::inner, uiWidgetColors::inner_sel, uiWidgetColors::item, state, uiWidgetColors::text, uiWidgetColors::text_sel, UI_ACTIVE, UI_BUT_DISABLED, UI_BUT_INACTIVE, UI_SELECT, uiWidgetType::wcol, and uiWidgetType::wcol_theme.
Referenced by widget_type().
|
static |
Definition at line 2688 of file interface_widgets.c.
References uiWidgetType::wcol, and uiWidgetType::wcol_theme.
Referenced by widget_type().
|
static |
Definition at line 3810 of file interface_widgets.c.
References BLI_assert, uiBut::block, col, uiBut::drawflag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), height, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3f(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, uiButColor::is_pallete_color, PointerRNA::owner_id, uiButColor::palette_color_index, pos, rgb_to_grayscale(), rgba_float_to_uchar(), RNA_property_array_length(), RNA_property_float_get_index(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, round_box_edges(), uiWidgetColors::roundness, uiWidgetColors::shaded, state, SWATCH_KEYED_BORDER, uiBut::type, ui_block_cm_to_display_space_v3(), UI_BTYPE_COLOR, UI_BUT_ANIMATED, UI_BUT_ANIMATED_CHANGED, UI_BUT_ANIMATED_KEY, UI_BUT_DRIVEN, ui_but_is_color_gamma(), UI_BUT_OVERRIDDEN, UI_BUT_REDALERT, ui_but_v3_get(), UI_widgetbase_draw_cache_flush(), widget_alpha_factor(), widget_init(), widgetbase_draw(), widgetbase_draw_ex(), width, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_type().
|
static |
Definition at line 4190 of file interface_widgets.c.
References uiWidgetBase::draw_outline, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiWidgetColors::inner, uiWidgetColors::inner_sel, interp_v3_v3v3_uchar(), uiWidgetColors::outline, round_box_edges(), uiWidgetColors::roundness, state, ui_draw_but_TAB_outline(), UI_SELECT, UI_widgetbase_draw_cache_flush(), UNUSED_VARS, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 3925 of file interface_widgets.c.
References round_box_edges(), uiWidgetColors::roundness, uiWidgetColors::shadedown, uiWidgetColors::shadetop, state, SWAP, UI_SELECT, widget_init(), and widgetbase_draw().
Referenced by widget_type().
|
static |
Definition at line 4277 of file interface_widgets.c.
References uiWidgetType::custom, uiWidgetType::draw, NULL, uiWidgetType::state, uiWidgetType::text, bTheme::tui, type, UI_GetTheme(), UI_WTYPE_BOX, UI_WTYPE_CHECKBOX, UI_WTYPE_EXEC, UI_WTYPE_FILENAME, UI_WTYPE_ICON, UI_WTYPE_ICON_LABEL, UI_WTYPE_LABEL, UI_WTYPE_LISTITEM, UI_WTYPE_MENU_BACK, UI_WTYPE_MENU_ICON_RADIO, UI_WTYPE_MENU_ITEM, UI_WTYPE_MENU_ITEM_RADIAL, UI_WTYPE_MENU_NODE_LINK, UI_WTYPE_MENU_POINTER_LINK, UI_WTYPE_MENU_RADIO, UI_WTYPE_NAME, UI_WTYPE_NAME_LINK, UI_WTYPE_NODESOCKET, UI_WTYPE_NUMBER, UI_WTYPE_POINTER_LINK, UI_WTYPE_PROGRESSBAR, UI_WTYPE_PULLDOWN, UI_WTYPE_RADIO, UI_WTYPE_REGULAR, UI_WTYPE_RGB_PICKER, UI_WTYPE_SCROLL, UI_WTYPE_SLIDER, UI_WTYPE_SWATCH, UI_WTYPE_TAB, UI_WTYPE_TOGGLE, UI_WTYPE_TOOLBAR_ITEM, UI_WTYPE_TOOLTIP, UI_WTYPE_UNITVEC, ThemeUI::wcol_box, ThemeUI::wcol_list_item, ThemeUI::wcol_menu, ThemeUI::wcol_menu_back, ThemeUI::wcol_menu_item, ThemeUI::wcol_num, ThemeUI::wcol_numslider, ThemeUI::wcol_option, ThemeUI::wcol_pie_menu, ThemeUI::wcol_progress, ThemeUI::wcol_pulldown, ThemeUI::wcol_radio, ThemeUI::wcol_regular, ThemeUI::wcol_scroll, uiWidgetType::wcol_state, ThemeUI::wcol_state, ThemeUI::wcol_tab, ThemeUI::wcol_text, uiWidgetType::wcol_theme, ThemeUI::wcol_toggle, ThemeUI::wcol_tool, ThemeUI::wcol_toolbar_item, ThemeUI::wcol_tooltip, widget_box(), widget_but(), widget_draw_text_icon(), widget_icon_has_anim(), widget_list_itembut(), widget_menu_back(), widget_menu_itembut(), widget_menu_radial_itembut(), widget_menubut(), widget_menuiconbut(), widget_nodesocket(), widget_numbut(), widget_numslider(), widget_optionbut(), widget_progressbar(), widget_pulldownbut(), widget_radiobut(), widget_roundbut_exec(), widget_scroll(), widget_state(), widget_state_label(), widget_state_menu_item(), widget_state_nothing(), widget_state_numslider(), widget_state_pie_menu_item(), widget_state_pulldown(), widget_swatch(), widget_tab(), widget_textbut(), and widget_unitvec().
Referenced by ui_draw_box_opaque(), ui_draw_but(), ui_draw_menu_back(), ui_draw_menu_item(), ui_draw_popover_back(), ui_draw_preview_item(), ui_draw_tooltip_background(), ui_draw_widget_back_color(), and ui_tooltip_get_theme().
|
static |
Definition at line 3895 of file interface_widgets.c.
References ui_draw_but_UNITVEC().
Referenced by widget_type().
|
static |
Definition at line 1089 of file interface_widgets.c.
References Freestyle::a, copy_v2_v2(), uiWidgetBase::inner_v, and uiWidgetBase::outer_v.
Referenced by widget_softshadow(), and widgetbase_outline().
|
static |
Definition at line 1320 of file interface_widgets.c.
References widgetbase_draw_ex().
Referenced by ui_draw_but_HSV_v(), ui_draw_popover_back_impl(), UI_draw_widget_scroll(), widget_box(), widget_but(), widget_draw_extra_mask(), widget_icon_has_anim(), widget_list_itembut(), widget_menu_back(), widget_menu_itembut(), widget_menu_radial_itembut(), widget_menubut(), widget_menubut_embossn(), widget_menuiconbut(), widget_nodesocket(), widget_numbut_draw(), widget_numslider(), widget_optionbut(), widget_progressbar(), widget_pulldownbut(), widget_radiobut(), widget_roundbut_exec(), widget_swatch(), widget_tab(), and widget_textbut().
|
static |
Definition at line 1260 of file interface_widgets.c.
References uiWidgetBase::draw_emboss, uiWidgetBase::draw_inner, uiWidgetBase::draw_outline, draw_widgetbase_batch(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiWidgetColors::inner, uiWidgetColors::item, uiWidgetColors::outline, ROUNDBOX_TRIA_NONE, shadecolors4(), uiWidgetColors::shaded, uiWidgetColors::shadedown, uiWidgetColors::shadetop, TH_WIDGET_EMBOSS, uiWidgetBase::tria1, uiWidgetTrias::type, UI_GetThemeColor4ubv(), and widgetbase_set_uniform_colors_ubv().
Referenced by widget_swatch(), and widgetbase_draw().
|
static |
Definition at line 1102 of file interface_widgets.c.
References GPU_PRIM_TRI_STRIP, NULL, pos, uiWidgetBase::totvert, widget_draw_vertex_buffer(), WIDGET_SIZE_MAX, and widget_verts_to_triangle_strip().
Referenced by widget_draw_extra_mask().
|
static |
Definition at line 1123 of file interface_widgets.c.
References uiWidgetBaseParameters::alpha_discard, fabs(), uiWidgetBase::uniform_params, and widgetbase_set_uniform_alpha_discard().
Referenced by widgetbase_set_uniform_colors_ubv().
|
static |
Definition at line 1111 of file interface_widgets.c.
References uiWidgetBaseParameters::alpha_discard, and uiWidgetBase::uniform_params.
Referenced by widgetbase_set_uniform_alpha_check(), and widgetbase_set_uniform_discard_factor().
|
static |
Definition at line 1135 of file interface_widgets.c.
References uiWidgetBaseParameters::color_emboss, uiWidgetBaseParameters::color_inner1, uiWidgetBaseParameters::color_inner2, uiWidgetBaseParameters::color_outline, uiWidgetBaseParameters::color_tria, rgba_float_args_set_ch, uiWidgetBase::uniform_params, and widgetbase_set_uniform_alpha_check().
Referenced by widgetbase_draw_ex().
|
static |
Definition at line 1129 of file interface_widgets.c.
References uiWidgetBaseParameters::alpha_discard, uiWidgetBase::uniform_params, and widgetbase_set_uniform_alpha_discard().
Referenced by widget_numslider().
|
static |
Definition at line 280 of file interface_widgets.c.
Referenced by round_box__edges(), and round_box_shadow_edges().
| int count |
Definition at line 1165 of file interface_widgets.c.
Referenced by Freestyle::__recursiveSplit(), _bli_buffer_append_array(), KDL::_EatSpace(), KDL::_EatUntilEndOfComment(), KDL::_EatUntilEndOfLine(), allocate_arrays(), armature_fill_bones_exec(), arrayModifier_doArray(), bezier_handle_calc_smooth_fcurve(), bezier_relax_direction(), BKE_animsys_nla_remap_keyframe_values(), BKE_defvert_blend_read(), BKE_defvert_blend_write(), BKE_gpencil_stroke_sample(), BKE_mask_layer_shape_changed_remove(), BKE_mesh_from_metaball(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_nurb_handle_smooth_fcurve(), BKE_packedfile_count_all(), BKE_texpaint_slot_refresh_cache(), BKE_view_layer_verify_aov(), blend_read_mdisps(), blend_read_paint_mask(), BLF_dir_free(), BLF_dir_get(), BLI_array_frand(), BLI_bvhtree_overlap_ex(), BLI_ghash_calc_quality_ex(), BLI_listbase_count(), BLI_listbase_count_at_most(), BLI_STATIC_ASSERT(), BLI_tridiagonal_solve(), BLI_tridiagonal_solve_cyclic(), BM_edge_face_count(), BM_edge_face_count_at_most(), bm_edge_flagged_radial_count(), bm_edge_info_average_length_fallback(), bm_edge_rotate_is_boundary(), BM_face_share_edge_count(), BM_face_share_face_count(), BM_face_share_vert_count(), bm_face_split_edgenet_find_loop_pair(), bm_face_split_edgenet_find_loop_pair_exists(), BM_iter_elem_count_flag(), BM_iter_mesh_count(), BM_iter_mesh_count_flag(), bm_loop_build(), bm_loop_region_count__clear(), bm_loop_region_count__recursive(), BM_loop_region_loops_count_at_most(), BM_mesh_edgeloops_find(), BM_mesh_intersect_edges(), BM_vert_edge_count_nonwire(), BM_vert_is_manifold_region(), bm_vert_other_tag(), BM_verts_in_face_count(), bm_verts_tag_count(), bmesh_disk_count(), bmesh_disk_count_at_most(), bmesh_disk_facevert_count(), bmesh_disk_facevert_count_at_most(), bmesh_radial_facevert_count(), bmesh_radial_facevert_count_at_most(), bmesh_topology_rake(), bmiter__elem_of_mesh_step(), bmiter__face_of_vert_begin(), bmiter__face_of_vert_step(), bmiter__loop_of_vert_begin(), bmiter__loop_of_vert_step(), bmiter__vert_of_edge_step(), bmo_bridge_loops_exec(), bmo_collapse_exec(), bmo_edgenet_prepare_exec(), bmo_grid_fill_exec(), BMO_iter_as_arrayN(), BMO_iter_elem_count_flag(), bmo_subdivide_edgering_exec(), bone_looper(), bottomup(), bounds(), boxsample(), bpy_bmeditselseq_subscript_slice(), bpy_bmelemseq_subscript_slice(), bpy_bmlayercollection_subscript_slice(), BPy_IDArray_slice(), btPoolAllocator::btPoolAllocator(), Buffer_ass_slice(), Buffer_slice(), build_edge_mats(), build_frames(), build_leaf(), build_pict_list_ex(), build_sub(), bvh_reference_sort(), bvh_reference_sort_threaded(), BVHObjectBinning::BVHObjectBinning(), check_point_in_stroke(), clipx_rctf_swap(), clipy_rctf_swap(), clone_window(), blender::bke::collection_instance_attribute_foreach(), collection_object_active_itemf(), btDbvtBroadphase::collide(), btDbvt::collideKDOP(), btDbvt::collideOCL(), Color_slice(), compressrow(), btConvexHullComputer::compute(), btConvexHullInternal::compute(), Freestyle::computeCumulativeVisibility(), convert_include(), btMatrixX< T >::copyLowerToUpperTriangle(), count_fcurve_keys(), count_gplayer_frames(), count_masklayer_frames(), count_mutli_input_socket_links(), count_utf_16_from_8(), count_utf_8_from_16(), coverage_from_count(), blender::nodes::create_line_mesh(), createTransActionData(), createTransCurveVerts(), createTransEdge(), createTransLatticeVerts(), createTransMaskingData(), createTransMBallVerts(), createTransNlaData(), createTransParticleVerts(), createTransSeqData(), createTransUVs(), CustomData_blend_read(), CustomData_blend_write(), CustomData_bmesh_interp(), CustomData_bmesh_interp_n(), CustomData_copy_data(), CustomData_copy_data_layer(), CustomData_copy_data_named(), CustomData_copy_elements(), CustomData_copy_layer_type_data(), customdata_data_transfer_interp_generic(), customdata_data_transfer_interp_normal_normals(), CustomData_free_elem(), CustomData_interp(), customdata_weld(), data_transfer_interp_char(), decodetarga(), delete_exec(), delete_feather_points(), displayed_layer_count(), DM_copy_vert_data(), DM_interp_vert_data(), blender::io::alembic::ABCNurbsWriter::do_write(), docube(), btSoftBodyHelpers::Draw(), draw_fcurve_curve_samples(), draw_select_buffer(), draw_track_path(), draw_tracking_tracks(), drw_command_draw_instance(), drw_command_draw_intance_range(), drw_command_draw_range(), drw_debug_draw_lines(), drw_debug_draw_spheres(), DRW_shgroup_call_instances(), duplicateStroke(), KDL::Eat(), KDL::EatWord(), ED_curve_beztcpy(), ED_curve_bpcpy(), ed_editcurve_extrude(), ED_fsmenu_get_nentries(), ED_mesh_edges_add(), ED_mesh_edges_remove(), ED_mesh_loops_add(), ED_mesh_loops_remove(), ED_mesh_polys_add(), ED_mesh_polys_remove(), ED_mesh_verts_add(), ED_mesh_verts_remove(), edbm_average_normals_exec(), edbm_fill_grid_prepare(), edbm_remove_doubles_exec(), EEVEE_shadows_caster_register(), end_node_frames(), Euler_slice(), blender::compositor::KeyingBlurOperation::executePixel(), blender::compositor::KeyingClipOperation::executePixel(), blender::compositor::ScreenLensDistortionOperation::executePixel(), expandrow(), expandrow2(), fcurve_is_changed(), InternalNode::fill_children(), blender::nodes::geo_node_mesh_primitive_line_exec(), blender::bke::geometry_set_instances_attribute_foreach(), InternalNode::get_child(), InternalNode::get_child_index(), DocumentImporter::get_import_version(), get_limit_motor_info2(), ArmatureImporter::get_rna_path_for_joint(), Freestyle::Functions0D::getFEdges(), GHOST_SystemWin32::getMilliSeconds(), GHOST_DisplayManagerCocoa::getNumDisplays(), getSingleCoordinate(), getSurroundingVerts(), GHOST_SystemPathsCocoa::getSystemDir(), GHOST_SystemPathsCocoa::getUserDir(), GHOST_SystemPathsCocoa::getUserSpecialDir(), GHOST_WindowX11::GHOST_WindowX11(), give_parvert(), gpencil_bone_looper(), gpencil_editcurve_subdivide_count(), gpencil_snap_cursor_to_sel(), GPLayerToTransData(), GHOST_SystemCocoa::handleOpenDocumentRequest(), hide_pose_bone_fn(), imb_exr_get_multiView_id(), imb_loadpng(), imb_loadtarga(), immUniformArray4fv(), btHashMap< Key, Value >::insert(), blender::bke::instances_attribute_foreach_recursive(), interp_poly_area(), is_track_clean(), itasc_initialize_tree(), keyIndex_updateBezt(), keyIndex_updateBP(), keyIndex_updateCV(), layerCopy_bmesh_elem_py_ptr(), layerCopy_grid_paint_mask(), layerCopy_mdeformvert(), layerCopy_mdisps(), layerCopy_mvert_skin(), layerCopy_origspace_face(), layerCopy_propFloat(), layerCopy_propInt(), layerCopy_propString(), layerCopy_tface(), layerDefault_fmap(), layerDefault_mcol(), layerDefault_mloopcol(), layerDefault_mvert_skin(), layerDefault_origindex(), layerDefault_origspace_face(), layerDefault_propcol(), layerDefault_tface(), layerFilesize_mdisps(), layerFree_bmesh_elem_py_ptr(), layerFree_grid_paint_mask(), layerFree_mdeformvert(), layerFree_mdisps(), layerInterp_bweight(), layerInterp_mcol(), layerInterp_mdeformvert(), layerInterp_mloop_origspace(), layerInterp_mloopcol(), layerInterp_mloopuv(), layerInterp_mvert_skin(), layerInterp_normal(), layerInterp_origspace_face(), layerInterp_paint_mask(), layerInterp_propcol(), layerInterp_propFloat(), layerInterp_propfloat2(), layerInterp_propfloat3(), layerInterp_shapekey(), layerInterp_tface(), layerRead_mdisps(), layerWrite_mdisps(), leaf_needs_material_split(), lineart_gpencil_generate(), logimage_fread(), logimage_fwrite(), loop_find_regions(), MaskLayerToTransData(), Matrix_slice(), MatrixAccess_slice(), maxdirfiltered(), maxdirsterid(), mesh_island_to_astar_graph_edge_process(), metadata_box_height_get(), MOD_lineart_chain_count(), modifier_skin_armature_create(), multires_reshape_apply_base_refit_base_mesh(), new_adj_vmesh(), node_count_links(), blender::bke::object_instance_attribute_foreach(), Freestyle::Functions0D::Curvature2DAngleF0D::operator()(), KDL::Rotation::operator=(), paint_2d_lift_soften(), parse_alloc_ops(), pbvh_bmesh_node_vert_use_count_at_most(), plConvexHullCompute(), plConvexHullGetFaceSize(), plConvexHullGetFaceVertices(), btSoftColliders::CollideCL_SS::Process(), ptcache_add_extra_data(), pygpu_buffer_ass_slice(), pygpu_buffer_slice(), pygpu_shader_uniform_vector_float(), pygpu_shader_uniform_vector_int(), pyrna_prop_array_subscript_slice(), pyrna_prop_collection_subscript_slice(), Quaternion_slice(), RB_shape_new_convex_hull(), recount_totsels(), region_quadview_exec(), region_rect_recursive(), rna_def_effect_inputs(), rna_function_arg_count(), rotl(), SCULPT_smooth(), seq_prefetch_do_skip_frame(), SEQ_render_give_ibuf(), seq_render_strip_stack(), SeqToTransData_Recursive(), SeqTransCount(), SeqTransDataBounds(), InternalNode::set_child(), InternalNode::set_internal_child(), InternalNode::set_leaf_child(), DDSHeader::setMipmapCount(), GHOST_WindowCocoa::setOrder(), show_pose_bone_cb(), sig_handle_blender_esc(), singularValueDecomposition(), snap_curs_to_sel_ex(), split(), sss_calculate_offsets(), stroke_defvert_create_nr_list(), stroke_defvert_new_count(), system_cpu_thread_count_fallback(), task_listbase_heavy_membarrier_iter_func(), task_listbase_iter_func(), task_listbase_light_membarrier_iter_func(), task_mempool_iter_func(), blender::tests::TEST(), test_polyfill_winding(), timeline_cache_segments_count(), topdown(), track_to_path_segment(), ui_handle_menu_event(), unpack_all_invoke(), unsubdivide_is_all_quads(), update_vb(), CCL_NAMESPACE_BEGIN::util_image_downscale_sample(), uv_rip_pairs_loop_count_on_side(), Vector_slice(), vgroup_fix(), vgroups_datatransfer_interp(), weldModifier_doWeld(), write_grid_paint_mask(), and write_mdisps().
| bool enabled |
Definition at line 1166 of file interface_widgets.c.
Definition at line 402 of file interface_widgets.c.
|
static |
Definition at line 368 of file interface_widgets.c.
Referenced by shape_preset_trias_from_rect_checkmark().
|
static |
Definition at line 359 of file interface_widgets.c.
Referenced by shape_preset_trias_from_rect_checkmark().
|
static |
Definition at line 382 of file interface_widgets.c.
Referenced by shape_preset_init_hold_action().
|
static |
Definition at line 377 of file interface_widgets.c.
Referenced by shape_preset_init_hold_action().
|
static |
Definition at line 357 of file interface_widgets.c.
Referenced by shape_preset_trias_from_rect_menu().
|
static |
Definition at line 349 of file interface_widgets.c.
Referenced by shape_preset_trias_from_rect_menu().
|
static |
Definition at line 310 of file interface_widgets.c.
Referenced by shape_preset_init_number_arrows().
|
static |
Definition at line 305 of file interface_widgets.c.
Referenced by shape_preset_init_number_arrows().
|
static |
Definition at line 332 of file interface_widgets.c.
Referenced by shape_preset_init_scroll_circle().
|
static |
Definition at line 314 of file interface_widgets.c.
Referenced by shape_preset_init_scroll_circle().
| struct { ... } g_ui_batch_cache |
Referenced by ui_batch_roundbox_shadow_get(), ui_batch_roundbox_widget_get(), and vflag_format().
| struct { ... } g_widget_base_batch |
Definition at line 1164 of file interface_widgets.c.
Referenced by ABC_export(), blender::io::alembic::ABCArchive::ABCArchive(), action_channel_region_listener(), action_header_region_listener(), action_listener(), action_main_region_listener(), action_region_listener(), blender::fn::mf_network_optimization::add_constant_folded_sockets(), ImageManager::add_image(), blender::nodes::add_instances_from_geometry_component(), blender::nodes::align_rotations_on_component(), PrincipledHairClosure::alloc(), PrincipledClearcoatClosure::alloc(), MicrofacetFresnelClosure::alloc(), MicrofacetMultiClosure::alloc(), MicrofacetMultiFresnelClosure::alloc(), CBSSRDFClosure::alloc(), alter_co(), libmv::ApplyNukeDistortionModel(), arg_handle_window_geometry(), assignConstraintsToGridBatches(), AssignConstraintsToGridBatchesLoop::AssignConstraintsToGridBatchesLoop(), blender::nodes::attribute_calc_proximity(), blender::nodes::attribute_compare_calc(), blender::nodes::attribute_convert_calc(), blender::nodes::attribute_math_calc(), blender::nodes::attribute_mix_calc(), blender::nodes::attribute_vector_math_calc(), BKE_blendfile_read(), BKE_blendfile_read_from_memfile(), BKE_blendfile_read_from_memory(), BKE_blendfile_read_setup(), BKE_blendfile_read_setup_ex(), BKE_camera_multiview_params(), BKE_camera_multiview_window_matrix(), BKE_camera_params_compute_matrix(), BKE_camera_params_compute_viewplane(), BKE_camera_params_from_object(), BKE_camera_params_from_view3d(), BKE_camera_params_init(), BKE_camera_view_frame_fit_to_coords(), BKE_camera_view_frame_fit_to_scene(), BKE_kelvinlet_grab(), BKE_kelvinlet_grab_biscale(), BKE_kelvinlet_grab_triscale(), BKE_kelvinlet_init_params(), BKE_kelvinlet_scale(), BKE_kelvinlet_twist(), BKE_keyconfig_keymap_filter_item(), BKE_keyconfig_pref_filter_items(), BKE_memfile_undo_decode(), BKE_mesh_from_bmesh_nomain(), BKE_mesh_to_bmesh(), BKE_view_layer_array_from_bases_in_mode_params(), BKE_view_layer_array_from_objects_in_mode_params(), BKE_view_layer_array_selected_objects_params(), blo_filedata_from_memfile(), BLO_library_link_begin(), BLO_library_link_end(), BLO_library_link_named_part(), BLO_library_link_params_init(), BLO_library_link_params_init_with_context(), BLO_read_from_memfile(), BLO_write_file(), BM_mesh_bm_from_me(), BM_mesh_bm_to_me(), BM_mesh_calc_path_edge(), BM_mesh_calc_path_face(), BM_mesh_calc_path_uv_face(), BM_mesh_calc_path_uv_vert(), BM_mesh_calc_path_vert(), BM_mesh_create(), BM_mesh_rebuild(), bm_subdivide_edge_addvert(), bm_subdivide_multicut(), bmo_bisect_edges_exec(), bmo_subd_init_shape_info(), bmo_subdivide_edges_exec(), bookmark_add_exec(), bookmark_select_exec(), bpy_bmesh_to_mesh(), bpy_gizmo_target_get_range(), bpy_gizmo_target_get_value(), bpy_gizmo_target_set_handler(), bpy_gizmo_target_set_value(), bpy_gizmotype_target_property_def(), bsdf_principled_sheen_params(), MultiDevice::build_bvh(), buttons_area_listener(), buttons_header_region_message_subscribe(), buttons_main_region_listener(), buttons_navigation_bar_region_message_subscribe(), ObjectSocketMultiFunction::call(), RandomFloatFunction::call(), MapRangeFunction::call(), MapRangeSteppedFunction::call(), MapRangeSmoothstepFunction::call(), MapRangeSmootherstepFunction::call(), SeparateRGBFunction::call(), MF_SeparateXYZ::call(), ColorBandFunction::call(), blender::fn::CustomMF_GenericConstant::call(), blender::fn::CustomMF_GenericConstantArray::call(), blender::fn::CustomMF_DefaultOutput::call(), blender::fn::MFNetworkEvaluator::call(), blender::fn::CustomMF_SI_SO< In1, Out1 >::call(), blender::fn::CustomMF_SI_SI_SO< In1, In2, Out1 >::call(), blender::fn::CustomMF_SI_SI_SI_SO< In1, In2, In3, Out1 >::call(), blender::fn::CustomMF_SI_SI_SI_SI_SO< In1, In2, In3, In4, Out1 >::call(), blender::fn::CustomMF_SM< Mut1 >::call(), blender::fn::CustomMF_Convert< From, To >::call(), blender::fn::CustomMF_Constant< T >::call(), blender::FunctionRef< Ret(Params...)>::call_safe(), camera_frame_fit_calc_from_data(), camera_frame_fit_data_init(), CBSSRDFClosure::CBSSRDFClosure(), blender::nodes::clamp_attribute(), clip_header_region_listener(), clip_listener(), clip_main_region_listener(), clip_properties_region_listener(), clip_props_region_listener(), closure_absorption_params(), closure_background_params(), closure_bsdf_diffuse_ramp_params(), closure_bsdf_microfacet_ggx_aniso_fresnel_params(), closure_bsdf_microfacet_ggx_fresnel_params(), closure_bsdf_microfacet_multi_ggx_aniso_fresnel_params(), closure_bsdf_microfacet_multi_ggx_aniso_params(), closure_bsdf_microfacet_multi_ggx_fresnel_params(), closure_bsdf_microfacet_multi_ggx_glass_fresnel_params(), closure_bsdf_microfacet_multi_ggx_glass_params(), closure_bsdf_microfacet_multi_ggx_params(), closure_bsdf_microfacet_params(), closure_bsdf_phong_ramp_params(), closure_bsdf_principled_clearcoat_params(), closure_bsdf_principled_hair_params(), closure_bsdf_transparent_params(), closure_bssrdf_params(), closure_emission_params(), closure_henyey_greenstein_params(), closure_holdout_params(), blender::nodes::combine_attributes(), Geometry::compute_bvh(), blender::fn::mf_network_optimization::compute_constant_sockets_and_add_folded_nodes(), console_main_region_listener(), blender::nodes::create_cube_mesh(), blender::nodes::create_ico_sphere_mesh(), blender::io::alembic::create_time_sampling(), denoise_func(), do_elastic_deform_brush_task_cb_ex(), do_snake_hook_brush_task_cb_ex(), blender::ed::spreadsheet::draw_cell_contents(), draw_columnheader_columns(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), draw_details_columns(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), blender::ed::spreadsheet::draw_left_column_content(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), blender::ed::spreadsheet::draw_top_row_content(), ED_area_do_listen(), ED_area_do_mgs_subscribe_for_tool_header(), ED_area_do_mgs_subscribe_for_tool_ui(), ed_curve_select_nth(), ED_file_change_dir_ex(), ED_file_path_button(), ED_fileselect_activate_by_id(), ED_fileselect_active_asset_get(), ED_fileselect_clear(), ED_fileselect_init_layout(), ED_fileselect_params_to_userdef(), ED_fileselect_set_params_from_userdef(), ED_gizmotypes_dial_3d_draw_util(), ED_region_do_listen(), ED_region_generic_tools_region_message_subscribe(), ED_region_message_subscribe(), ED_transform_calc_gizmo_stats(), ED_transform_snap_object_project_all_view3d_ex(), ED_transform_snap_object_project_ray(), ED_transform_snap_object_project_ray_all(), ED_transform_snap_object_project_ray_ex(), ED_transform_snap_object_project_view3d(), ED_transform_snap_object_project_view3d_ex(), ED_uvedit_pack_islands_multi(), ED_view3d_clip_range_get(), ED_view3d_draw_offscreen_imbuf(), ED_view3d_draw_offscreen_imbuf_simple(), ED_view3d_from_object(), ED_view3d_radius_to_dist(), ED_view3d_viewplane_get(), edgetag_add_adjacent(), libmv::EuclideanResect(), exec(), blender::nodes::execute_on_component(), extract_edge_fac_iter_ledge_bm(), extract_edge_fac_iter_ledge_mesh(), extract_edge_fac_iter_poly_bm(), extract_edge_fac_iter_poly_mesh(), extract_edge_idx_iter_ledge_bm(), extract_edge_idx_iter_ledge_mesh(), extract_edge_idx_iter_poly_bm(), extract_edge_idx_iter_poly_mesh(), extract_edit_data_iter_ledge_bm(), extract_edit_data_iter_ledge_mesh(), extract_edit_data_iter_lvert_bm(), extract_edit_data_iter_lvert_mesh(), extract_edit_data_iter_poly_bm(), extract_edit_data_iter_poly_mesh(), extract_edituv_data_iter_poly_bm(), extract_edituv_data_iter_poly_mesh(), extract_edituv_fdots_iter_poly_bm(), extract_edituv_fdots_iter_poly_mesh(), extract_edituv_lines_iter_poly_bm(), extract_edituv_lines_iter_poly_mesh(), extract_edituv_points_iter_poly_bm(), extract_edituv_points_iter_poly_mesh(), extract_edituv_stretch_angle_iter_poly_bm(), extract_edituv_stretch_angle_iter_poly_mesh(), extract_edituv_tris_iter_looptri_bm(), extract_edituv_tris_iter_looptri_mesh(), extract_fdot_idx_iter_poly_bm(), extract_fdot_idx_iter_poly_mesh(), extract_fdots_edituv_data_iter_poly_bm(), extract_fdots_edituv_data_iter_poly_mesh(), extract_fdots_iter_poly_bm(), extract_fdots_iter_poly_mesh(), extract_fdots_pos_iter_poly_bm(), extract_fdots_pos_iter_poly_mesh(), extract_fdots_uv_iter_poly_bm(), extract_fdots_uv_iter_poly_mesh(), extract_lines_adjacency_iter_looptri_bm(), extract_lines_adjacency_iter_looptri_mesh(), extract_lines_iter_ledge_bm(), extract_lines_iter_ledge_mesh(), extract_lines_iter_poly_bm(), extract_lines_iter_poly_mesh(), extract_lines_paint_mask_iter_poly_mesh(), extract_lnor_hq_iter_poly_bm(), extract_lnor_hq_iter_poly_mesh(), extract_lnor_iter_poly_bm(), extract_lnor_iter_poly_mesh(), extract_orco_iter_poly_bm(), extract_orco_iter_poly_mesh(), extract_points_iter_ledge_bm(), extract_points_iter_ledge_mesh(), extract_points_iter_lvert_bm(), extract_points_iter_lvert_mesh(), extract_points_iter_poly_bm(), extract_points_iter_poly_mesh(), extract_poly_idx_iter_poly_bm(), extract_poly_idx_iter_poly_mesh(), extract_pos_nor_hq_iter_ledge_bm(), extract_pos_nor_hq_iter_ledge_mesh(), extract_pos_nor_hq_iter_lvert_bm(), extract_pos_nor_hq_iter_lvert_mesh(), extract_pos_nor_hq_iter_poly_bm(), extract_pos_nor_hq_iter_poly_mesh(), extract_pos_nor_iter_ledge_bm(), extract_pos_nor_iter_ledge_mesh(), extract_pos_nor_iter_lvert_bm(), extract_pos_nor_iter_lvert_mesh(), extract_pos_nor_iter_poly_bm(), extract_pos_nor_iter_poly_mesh(), extract_tris_iter_looptri_bm(), extract_tris_iter_looptri_mesh(), extract_vert_idx_iter_ledge_bm(), extract_vert_idx_iter_ledge_mesh(), extract_vert_idx_iter_lvert_bm(), extract_vert_idx_iter_lvert_mesh(), extract_vert_idx_iter_poly_bm(), extract_vert_idx_iter_poly_mesh(), extract_weights_iter_poly_bm(), extract_weights_iter_poly_mesh(), face_set_extract_modal(), facetag_add_adjacent(), facetag_add_adjacent_uv(), file_attribute_column_type_enabled(), file_attribute_column_type_find_isect(), file_attribute_columns_init(), file_attribute_columns_widths(), file_box_select_modal(), file_column_sort_ui_context_invoke(), file_context(), file_delete_exec(), file_delete_poll(), file_delete_single(), file_directory_enter_handle(), file_directory_new_exec(), file_draw_check_exists(), file_draw_list(), file_ensure_valid_region_state(), file_exec(), file_expand_directory(), file_filename_enter_handle(), file_filenum_exec(), file_filenum_poll(), file_hidedot_exec(), file_highlight_set(), file_listener(), file_main_region_draw(), file_main_region_listener(), file_main_region_message_subscribe(), file_next_exec(), file_operator_to_sfile(), file_panel_execution_buttons_draw(), file_params_renamefile_activate(), file_parent_exec(), file_previous_exec(), file_refresh(), file_rename_exec(), file_rename_invoke(), file_rename_state_activate(), file_select(), file_select_all_exec(), file_select_do(), file_select_invoke(), file_sfile_filepath_set(), file_sfile_to_operator_ex(), file_smoothscroll_invoke(), file_start_filter_exec(), file_tool_props_region_listener(), file_ui_region_listener(), file_view_selected_exec(), file_walk_select_do(), file_walk_select_invoke(), file_walk_select_selection_set(), fileselect_ensure_updated_file_params(), fileselect_file_set(), fileselect_initialize_params_common(), blender::nodes::fill_attribute(), folderlist_clear_next(), followtrack_evaluate_using_2d_position(), blender::nodes::geo_node_align_rotation_to_vector_exec(), blender::nodes::geo_node_attribute_clamp_exec(), blender::nodes::geo_node_attribute_color_ramp_exec(), blender::nodes::geo_node_attribute_combine_xyz_exec(), blender::nodes::geo_node_attribute_compare_exec(), blender::nodes::geo_node_attribute_convert_exec(), blender::nodes::geo_node_attribute_fill_exec(), blender::nodes::geo_node_attribute_map_range_exec(), blender::nodes::geo_node_attribute_math_exec(), blender::nodes::geo_node_attribute_mix_exec(), blender::nodes::geo_node_attribute_proximity_exec(), blender::nodes::geo_node_attribute_remove_exec(), blender::nodes::geo_node_attribute_sample_texture_exec(), blender::nodes::geo_node_attribute_separate_xyz_exec(), blender::nodes::geo_node_attribute_vector_math_exec(), blender::nodes::geo_node_boolean_exec(), blender::nodes::geo_node_bounding_box_exec(), blender::nodes::geo_node_collection_info_exec(), blender::nodes::geo_node_edge_split_exec(), blender::nodes::geo_node_is_viewport_exec(), blender::nodes::geo_node_join_geometry_exec(), blender::nodes::geo_node_mesh_primitive_circle_exec(), blender::nodes::geo_node_mesh_primitive_cone_exec(), blender::nodes::geo_node_mesh_primitive_cube_exec(), blender::nodes::geo_node_mesh_primitive_cylinder_exec(), blender::nodes::geo_node_mesh_primitive_grid_exec(), blender::nodes::geo_node_mesh_primitive_ico_sphere_exec(), blender::nodes::geo_node_mesh_primitive_line_exec(), blender::nodes::geo_node_mesh_primitive_uv_sphere_exec(), blender::nodes::geo_node_object_info_exec(), blender::nodes::geo_node_point_distribute_exec(), blender::nodes::geo_node_point_instance_exec(), blender::nodes::geo_node_point_rotate_exec(), blender::nodes::geo_node_point_scale_exec(), blender::nodes::geo_node_point_separate_exec(), blender::nodes::geo_node_point_translate_exec(), blender::nodes::geo_node_points_to_volume_exec(), blender::nodes::geo_node_random_attribute_exec(), blender::nodes::geo_node_subdivide_exec(), blender::nodes::geo_node_subdivision_surface_exec(), blender::nodes::geo_node_transform_exec(), blender::nodes::geo_node_triangulate_exec(), blender::nodes::geo_node_volume_to_mesh_exec(), geometry_extract_apply(), geometry_extract_tag_face_set(), geometry_extract_tag_masked_faces(), BlenderSync::get_buffer_params(), blender::nodes::get_data_type(), blender::io::alembic::get_frames(), blender::nodes::get_instanced_data(), blender::nodes::get_instanced_data__collection(), blender::nodes::get_instanced_data__object(), blender::nodes::get_result_domain(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), blender::io::alembic::get_shutter_samples(), gizmo_calc_matrix_final_no_offset(), gizmo_window_project_2d(), gizmo_window_project_3d(), GPU_link(), GPU_shader_create_from_arrays_impl(), GPU_stack_link(), graph_listener(), graph_region_listener(), graph_region_message_subscribe(), image_buttons_region_listener(), image_header_region_listener(), image_listener(), image_main_region_listener(), ImageTextureNode::image_params(), EnvironmentTextureNode::image_params(), PointDensityTextureNode::image_params(), image_tools_region_listener(), info_header_listener(), info_header_region_message_subscribe(), info_main_region_listener(), init_kelvinlet_grab(), libmv::InvertBrownDistortionModel(), libmv::InvertDivisionDistortionModel(), libmv::InvertPolynomialDistortionModel(), iter_snap_objects(), looptag_add_adjacent_uv(), blender::nodes::map_range_attribute(), blender::nodes::map_range_float(), blender::nodes::map_range_float3(), libmv::Dogleg< Function, Jacobian, Solver >::minimize(), libmv::LevenbergMarquardt< Function, Jacobian, Solver >::minimize(), BufferParams::modified(), SceneParams::modified(), SessionParams::modified(), modifyMesh(), mouse_mesh_uv_shortest_path_face(), mouse_mesh_uv_shortest_path_vert(), nla_channel_region_listener(), nla_channel_region_message_subscribe(), nla_listener(), nla_main_region_listener(), nla_main_region_message_subscribe(), nla_region_listener(), node_area_listener(), node_region_listener(), blender::FunctionRef< Ret(Params...)>::operator()(), outliner_header_region_listener(), outliner_main_region_listener(), outliner_main_region_message_subscribe(), paint_mask_extract_exec(), blender::nodes::point_rotate_on_component(), blender::io::gpencil::GpencilIO::prepare_camera_params(), blender::fn::mf_network_optimization::prepare_params_for_constant_folding(), proj_paint_state_viewport_init(), libmv::ProjectiveIntersect(), libmv::ProjectiveReconstructTwoFrames(), libmv::ProjectiveResect(), pygpu_shader__tp_new(), pygpu_shader_uniform_bool(), pygpu_shader_uniform_float(), pygpu_shader_uniform_int(), pygpu_vertbuf__tp_new(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), quad_1edge_split(), quad_2edge_split_fan(), quad_2edge_split_innervert(), quad_2edge_split_path(), quad_3edge_split(), quad_4edge_subdivide(), blender::nodes::randomize_attribute_on_component(), raycastObjects(), RE_GetCameraWindowWithOverscan(), RE_SetCamera(), register_closure(), blender::nodes::remove_attribute(), renamebutton_cb(), RNA_property_collection_add(), RNA_property_collection_remove(), saction_channel_region_message_subscribe(), saction_main_region_message_subscribe(), select_nth_bezt(), select_nth_bp(), blender::nodes::separate_attribute(), sequencer_buttons_region_listener(), sequencer_listener(), sequencer_main_region_listener(), sequencer_main_region_message_subscribe(), sequencer_preview_region_listener(), ImageManager::set_animation_frame_update(), PrincipledSheenClosure::setup(), MicrofacetClosure::setup(), VolumeHenyeyGreensteinClosure::setup(), DiffuseRampClosure::setup(), PhongRampClosure::setup(), setup_app_blend_file_data(), setup_app_data(), setupSpatialGridBatchesMt(), snapObjectsRay(), space_view3d_listener(), spreadsheet_header_region_listener(), spreadsheet_main_region_listener(), statusbar_header_region_listener(), statusbar_header_region_message_subscribe(), subdivide_edge_num(), sync_smoke_volume(), sync_volume_object(), blender::io::alembic::TEST_F(), tex_call_delegate(), tex_input(), tex_input_rgba(), tex_input_value(), tex_input_vec(), text_listener(), topbar_header_listener(), topbar_header_region_message_subscribe(), topbar_main_region_listener(), transform_snap_context_project_ray_impl(), transform_snap_context_project_view3d_mixed_impl(), blender::nodes::transform_volume(), tri_1edge_split(), tri_3edge_subdivide(), ui_block_region_popup_window_listener(), ui_layout_operator_buts_poll_property(), uiTemplateFileSelectPath(), libmv::Dogleg< Function, Jacobian, Solver >::Update(), libmv::LevenbergMarquardt< Function, Jacobian, Solver >::Update(), USD_export(), uvprojectModifier_do(), vertex_group_lock_description(), verttag_add_adjacent(), view3d_buttons_region_listener(), view3d_camera_border(), view3d_header_region_listener(), view3d_header_region_message_subscribe(), view3d_main_region_listener(), view3d_main_region_message_subscribe(), wm_context_member_from_ptr(), WM_file_read(), WM_gizmo_calc_matrix_final_params(), WM_gizmo_target_property_def_func(), WM_gizmo_target_property_def_func_ptr(), WM_gizmogroup_keymap_template_select_ex(), WM_gizmogroup_setup_keymap_generic_select(), wm_gpencil_import_svg_exec(), wm_homefile_read(), wm_keymap_item_find(), wm_keymap_item_find_handlers(), wm_keymap_item_find_in_keymap(), wm_keymap_item_find_props(), wm_msg_rna_gset_hash(), wm_msg_static_gset_hash(), and wm_open_mainfile_description().
| GPUBatch* roundbox_shadow |
Definition at line 399 of file interface_widgets.c.
| GPUBatch* roundbox_widget |
Definition at line 398 of file interface_widgets.c.
| const float ui_pixel_jitter[UI_PIXEL_AA_JITTER][2] |
Definition at line 292 of file interface_widgets.c.
| uint vflag_id |
Definition at line 403 of file interface_widgets.c.