Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenfont/BLF_api.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Free the data return by #BLF_dir_get. | * Free the data return by #BLF_dir_get. | ||||
| */ | */ | ||||
| void BLF_dir_free(char **dirs, int count) ATTR_NONNULL(); | void BLF_dir_free(char **dirs, int count) ATTR_NONNULL(); | ||||
| /* blf_thumbs.c */ | /* blf_thumbs.c */ | ||||
| /** | |||||
| * This function is used for drawing font preview strings. | |||||
| */ | |||||
| bool BLF_draw_font_string(const char *fontpath, | |||||
| const char *string, | |||||
| int xpos, | |||||
| int ypos, | |||||
| float width, | |||||
| int textheight, | |||||
| const uchar text_col[4]); | |||||
| /** | /** | ||||
| * 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). | ||||
| */ | */ | ||||
| bool BLF_thumb_preview(const char *filename, unsigned char *buf, int w, int h, int channels) | bool BLF_thumb_preview(const char *filename, unsigned char *buf, int w, int h, int channels) | ||||
| ATTR_NONNULL(); | ATTR_NONNULL(); | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||