Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenfont/BLF_api.h
| Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | |||||
| /* blf_thumbs.c */ | /* blf_thumbs.c */ | ||||
| /** | /** | ||||
| * This function is used for generating thumbnail previews. | * This function is used for generating thumbnail previews. | ||||
| * | * | ||||
| * \note called from a thread, so it bypasses the normal BLF_* api (which isn't thread-safe). | * \note called from a thread, so it bypasses the normal BLF_* api (which isn't thread-safe). | ||||
| */ | */ | ||||
| void BLF_thumb_preview(const char *filepath, | bool BLF_thumb_preview(const char *filename, unsigned char *buf, int w, int h, int channels) | ||||
| const char **draw_str, | ATTR_NONNULL(); | ||||
| const char **i18n_draw_str, | |||||
| unsigned char draw_str_lines, | |||||
| const float font_color[4], | |||||
| int font_size, | |||||
| unsigned char *buf, | |||||
| int w, | |||||
| int h, | |||||
| int channels) ATTR_NONNULL(); | |||||
| /* blf_default.c */ | /* blf_default.c */ | ||||
| void BLF_default_size(float size); | void BLF_default_size(float size); | ||||
| void BLF_default_set(int fontid); | void BLF_default_set(int fontid); | ||||
| /** | /** | ||||
| * Get default font ID so we can pass it to other functions. | * Get default font ID so we can pass it to other functions. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||