Blender
V3.3
|
#include "BLI_fileops.h"
#include "BLI_hash_md5.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_thumbs.h"
#include "../../blenfont/BLF_api.h"
#include "../../blentranslation/BLT_translation.h"
Go to the source code of this file.
Macros | |
#define | THUMB_TXT_ITEMS N_("AaBbCc"), N_("The quick"), N_("brown fox"), N_("jumps over"), N_("the lazy dog"), |
Functions | |
void | IMB_thumb_clear_translations (void) |
void | IMB_thumb_ensure_translations (void) |
struct ImBuf * | IMB_thumb_load_font (const char *filepath, unsigned int x, unsigned int y) |
bool | IMB_thumb_load_font_get_hash (char *r_hash) |
Variables | |
static const char * | thumb_str [] = {THUMB_TXT_ITEMS} |
static const char * | i18n_thumb_str [] = {THUMB_TXT_ITEMS} |
#define THUMB_TXT_ITEMS N_("AaBbCc"), N_("The quick"), N_("brown fox"), N_("jumps over"), N_("the lazy dog"), |
Definition at line 21 of file thumbs_font.c.
Definition at line 30 of file thumbs_font.c.
References ARRAY_SIZE, i18n_thumb_str, NULL, and thumb_str.
Referenced by BLT_lang_set(), and WM_init().
Definition at line 37 of file thumbs_font.c.
References ARRAY_SIZE, BLT_I18NCONTEXT_DEFAULT, BLT_translate_do(), i18n_thumb_str, and thumb_str.
Referenced by filelist_cache_init().
struct ImBuf* IMB_thumb_load_font | ( | const char * | filepath, |
unsigned int | x, | ||
unsigned int | y | ||
) |
Special function for previewing fonts.
Definition at line 44 of file thumbs_font.c.
References ARRAY_SIZE, BLF_thumb_preview(), ImBuf::channels, i18n_thumb_str, IB_metadata, IB_rect, IMB_allocImBuf(), IMB_rectfill(), ImBuf::rect, thumb_str, x, ImBuf::x, y, and ImBuf::y.
Referenced by thumb_create_ex().
bool IMB_thumb_load_font_get_hash | ( | char * | r_hash | ) |
Definition at line 77 of file thumbs_font.c.
References ARRAY_SIZE, BLI_hash_md5_buffer(), BLI_hash_md5_to_hexdigest(), BLI_strncpy_rlen(), i18n_thumb_str, len, NULL, str, THUMB_DEFAULT_HASH, and thumb_str.
Referenced by thumbhash_from_path().
|
static |
Definition at line 26 of file thumbs_font.c.
Referenced by IMB_thumb_clear_translations(), IMB_thumb_ensure_translations(), IMB_thumb_load_font(), and IMB_thumb_load_font_get_hash().
|
static |
Definition at line 24 of file thumbs_font.c.
Referenced by IMB_thumb_clear_translations(), IMB_thumb_ensure_translations(), IMB_thumb_load_font(), and IMB_thumb_load_font_get_hash().