Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Show First 20 Lines • Show All 3,686 Lines • ▼ Show 20 Lines | static void widget_progressbar( | ||||
| round_box_edges(&wtb_bar, roundboxalign, &rect_bar, ofs); | round_box_edges(&wtb_bar, roundboxalign, &rect_bar, ofs); | ||||
| wtb.draw_outline = true; | wtb.draw_outline = true; | ||||
| widgetbase_draw(&wtb, wcol); | widgetbase_draw(&wtb, wcol); | ||||
| /* "slider" bar color */ | /* "slider" bar color */ | ||||
| copy_v3_v3_uchar(wcol->inner, wcol->item); | copy_v3_v3_uchar(wcol->inner, wcol->item); | ||||
| widgetbase_draw(&wtb_bar, wcol); | widgetbase_draw(&wtb_bar, wcol); | ||||
| /* raise text a bit */ | |||||
| rect->xmin += (BLI_rcti_size_x(&rect_prog) / 2); | |||||
| rect->xmax += (BLI_rcti_size_x(&rect_prog) / 2); | |||||
| } | } | ||||
| static void widget_datasetrow( | static void widget_datasetrow( | ||||
| uiBut *but, uiWidgetColors *wcol, rcti *rect, int state, int UNUSED(roundboxalign)) | uiBut *but, uiWidgetColors *wcol, rcti *rect, int state, int UNUSED(roundboxalign)) | ||||
| { | { | ||||
| uiButDatasetRow *but_componentrow = (uiButDatasetRow *)but; | uiButDatasetRow *but_componentrow = (uiButDatasetRow *)but; | ||||
| uiWidgetBase wtb; | uiWidgetBase wtb; | ||||
| widget_init(&wtb); | widget_init(&wtb); | ||||
| ▲ Show 20 Lines • Show All 1,782 Lines • Show Last 20 Lines | |||||