34#define UI_NO_ICON_OVERLAY_TEXT NULL
36#define ICON_DEFAULT_HEIGHT 16
37#define ICON_DEFAULT_WIDTH 16
39#define ICON_DEFAULT_HEIGHT_TOOLBAR 32
41#define ICON_DEFAULT_HEIGHT_SCALE int(UI_UNIT_Y * 0.8f)
42#define ICON_DEFAULT_WIDTH_SCALE int(UI_UNIT_X * 0.8f)
44#define PREVIEW_DEFAULT_HEIGHT 128
46#define PREVIEW_DRAG_DRAW_SIZE 96.0f
101 const uchar mono_color[4],
103 const IconTextOverlay *text_overlay,
122 const int icon_indicator_number);
Enumerations for DNA_ID.h.
float3x3 scale(float3x3 mat, float2 scale)
ccl_device_inline float3x3 inverted(const float3x3 m)
void icon_text_overlay_init_from_count(IconTextOverlay *text_overlay, const int icon_indicator_number)
int icon_from_object_type(const Object *object)
ImBuf * icon_alert_imbuf_get(AlertIcon icon, float size)
bool icon_get_theme_color(int icon_id, unsigned char color[4])
void icons_free_drawinfo(void *drawinfo)
int icon_from_idcode(int idcode)
void 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, float scale=1.0f)
int icon_from_object_mode(int mode)
void icon_draw_preview(float x, float y, int icon_id, float aspect, float alpha, int size)
void 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 icon_from_rnaptr(const bContext *C, PointerRNA *ptr, int rnaicon, bool big)
void icon_draw(float x, float y, int icon_id)
void icon_render_id(const bContext *C, Scene *scene, ID *id, enum eIconSizes size, bool use_job)
int icon_color_from_collection(const Collection *collection)
void icon_draw_alpha(float x, float y, int icon_id, float alpha)
int icon_from_library(const ID *id)
void icon_ensure_deferred(const bContext *C, int icon_id, bool big)
int icon_preview_to_render_size(enum eIconSizes size)
ImBuf * svg_icon_bitmap(uint icon_id, float size, bool multicolor=false)
PreviewImage * icon_to_preview(int icon_id)