Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface_icons.h
| Show All 21 Lines | |||||
| struct bContext; | struct bContext; | ||||
| typedef struct IconFile { | typedef struct IconFile { | ||||
| struct IconFile *next, *prev; | struct IconFile *next, *prev; | ||||
| char filename[256]; /* FILE_MAXFILE size */ | char filename[256]; /* FILE_MAXFILE size */ | ||||
| int index; | int index; | ||||
| } IconFile; | } IconFile; | ||||
| typedef struct IconTextOverlay { | |||||
| char text[5]; | |||||
| } IconTextOverlay; | |||||
| #define UI_NO_ICON_OVERLAY_TEXT NULL | |||||
| #define ICON_DEFAULT_HEIGHT 16 | #define ICON_DEFAULT_HEIGHT 16 | ||||
| #define ICON_DEFAULT_WIDTH 16 | #define ICON_DEFAULT_WIDTH 16 | ||||
| #define ICON_DEFAULT_HEIGHT_TOOLBAR 32 | #define ICON_DEFAULT_HEIGHT_TOOLBAR 32 | ||||
| #define ICON_DEFAULT_HEIGHT_SCALE ((int)(UI_UNIT_Y * 0.8f)) | #define ICON_DEFAULT_HEIGHT_SCALE ((int)(UI_UNIT_Y * 0.8f)) | ||||
| #define ICON_DEFAULT_WIDTH_SCALE ((int)(UI_UNIT_X * 0.8f)) | #define ICON_DEFAULT_WIDTH_SCALE ((int)(UI_UNIT_X * 0.8f)) | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| void UI_icon_draw_ex(float x, | void UI_icon_draw_ex(float x, | ||||
| float y, | float y, | ||||
| int icon_id, | int icon_id, | ||||
| float aspect, | float aspect, | ||||
| float alpha, | float alpha, | ||||
| float desaturate, | float desaturate, | ||||
| const uchar mono_color[4], | const uchar mono_color[4], | ||||
| bool mono_border); | bool mono_border, | ||||
| const struct IconTextOverlay *text_overlay); | |||||
| void UI_icons_free(void); | void UI_icons_free(void); | ||||
| void UI_icons_free_drawinfo(void *drawinfo); | void UI_icons_free_drawinfo(void *drawinfo); | ||||
| void UI_icon_draw_cache_begin(void); | void UI_icon_draw_cache_begin(void); | ||||
| void UI_icon_draw_cache_end(void); | void UI_icon_draw_cache_end(void); | ||||
| struct ListBase *UI_iconfile_list(void); | struct ListBase *UI_iconfile_list(void); | ||||
| int UI_iconfile_get_index(const char *filename); | int UI_iconfile_get_index(const char *filename); | ||||
| struct PreviewImage *UI_icon_to_preview(int icon_id); | struct PreviewImage *UI_icon_to_preview(int icon_id); | ||||
| int UI_icon_from_rnaptr(const struct bContext *C, struct PointerRNA *ptr, int rnaicon, bool big); | int UI_icon_from_rnaptr(const struct bContext *C, struct PointerRNA *ptr, int rnaicon, bool big); | ||||
| int UI_icon_from_idcode(int idcode); | int UI_icon_from_idcode(int idcode); | ||||
| int UI_icon_from_library(const struct ID *id); | int UI_icon_from_library(const struct ID *id); | ||||
| int UI_icon_from_object_mode(int mode); | int UI_icon_from_object_mode(int mode); | ||||
| int UI_icon_color_from_collection(const struct Collection *collection); | int UI_icon_color_from_collection(const struct Collection *collection); | ||||
| void UI_icon_text_overlay_init_from_count(struct IconTextOverlay *text_overlay, | |||||
| const int icon_indicator_number); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||