29#define UI_NO_ICON_OVERLAY_TEXT NULL
31#define ICON_DEFAULT_HEIGHT 16
32#define ICON_DEFAULT_WIDTH 16
34#define ICON_DEFAULT_HEIGHT_TOOLBAR 32
36#define ICON_DEFAULT_HEIGHT_SCALE ((int)(UI_UNIT_Y * 0.8f))
37#define ICON_DEFAULT_WIDTH_SCALE ((int)(UI_UNIT_X * 0.8f))
39#define PREVIEW_DEFAULT_HEIGHT 128
95 const uchar mono_color[4],
98 const bool inverted =
false);
114 const int icon_indicator_number);
Enumerations for DNA_ID.h.
void UI_icons_free_drawinfo(void *drawinfo)
PreviewImage * UI_icon_to_preview(int icon_id)
void UI_icon_text_overlay_init_from_count(IconTextOverlay *text_overlay, const int icon_indicator_number)
bool UI_icon_get_theme_color(int icon_id, unsigned char color[4])
void UI_icon_draw_alpha(float x, float y, int icon_id, float alpha)
void UI_icon_draw(float x, float y, int icon_id)
int UI_icon_from_idcode(int idcode)
int UI_icon_from_rnaptr(const bContext *C, PointerRNA *ptr, int rnaicon, bool big)
void UI_icon_render_id(const bContext *C, Scene *scene, ID *id, enum eIconSizes size, bool use_job)
void UI_icon_render_id_ex(const bContext *C, Scene *scene, ID *id_to_render, const enum eIconSizes size, const bool use_job, PreviewImage *r_preview_image)
int UI_icon_from_library(const ID *id)
int UI_icon_from_object_mode(int mode)
ImBuf * UI_svg_icon_bitmap(uint icon_id, float size, bool multicolor=false)
void UI_icon_draw_ex(float x, float y, int icon_id, float aspect, float alpha, float desaturate, const uchar mono_color[4], bool mono_border, const IconTextOverlay *text_overlay, const bool inverted=false)
int UI_icon_color_from_collection(const Collection *collection)
void UI_icon_draw_preview(float x, float y, int icon_id, float aspect, float alpha, int size)
int UI_icon_preview_to_render_size(enum eIconSizes size)
ImBuf * UI_icon_alert_imbuf_get(eAlertIcon icon, float size)