Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface_icons.h
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * NOTE: returns unscaled by DPI. | * NOTE: returns unscaled by DPI. | ||||
| */ | */ | ||||
| int UI_icon_get_width(int icon_id); | int UI_icon_get_width(int icon_id); | ||||
| int UI_icon_get_height(int icon_id); | int UI_icon_get_height(int icon_id); | ||||
| bool UI_icon_get_theme_color(int icon_id, unsigned char color[4]); | bool UI_icon_get_theme_color(int icon_id, unsigned char color[4]); | ||||
| /** | /** | ||||
| * Render a #PreviewImage for the data block. | |||||
| * | |||||
| * Note that if an ID doesn't support jobs for preview creation, \a use_job will be ignored. | * Note that if an ID doesn't support jobs for preview creation, \a use_job will be ignored. | ||||
| */ | */ | ||||
| void UI_icon_render_id(const struct bContext *C, | void UI_icon_render_id(const struct bContext *C, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct ID *id, | struct ID *id, | ||||
| enum eIconSizes size, | enum eIconSizes size, | ||||
| bool use_job); | bool use_job); | ||||
| /** | |||||
| * Render the data block into the provided #PreviewImage. | |||||
| */ | |||||
| void UI_icon_render_id_ex(const struct bContext *C, | |||||
| struct Scene *scene, | |||||
| struct ID *id_to_render, | |||||
| const enum eIconSizes size, | |||||
| const bool use_job, | |||||
HooglyBoogly: I think the convention is to use an `r_` prefix here. | |||||
| struct PreviewImage *r_preview_image); | |||||
| /** | /** | ||||
| * Render size for preview images and icons | * Render size for preview images and icons | ||||
| */ | */ | ||||
| int UI_icon_preview_to_render_size(enum eIconSizes size); | int UI_icon_preview_to_render_size(enum eIconSizes size); | ||||
| /** | /** | ||||
| * Draws icon with dpi scale factor. | * Draws icon with dpi scale factor. | ||||
| */ | */ | ||||
| Show All 33 Lines | |||||
I think the convention is to use an r_ prefix here.