20#define BLF_DATAFILES_FONTS_DIR "fonts"
23#define BLF_DEFAULT_PROPORTIONAL_FONT "Inter.woff2"
26#define BLF_DEFAULT_MONOSPACED_FONT "DejaVuSansMono.woff2"
105void BLF_aspect(
int fontid,
float x,
float y,
float z);
107void BLF_size(
int fontid,
float size);
126 int fontid,
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char alpha);
127void BLF_color3ub(
int fontid,
unsigned char r,
unsigned char g,
unsigned char b);
128void BLF_color4f(
int fontid,
float r,
float g,
float b,
float a);
147int BLF_draw_mono(
int fontid, const
char *
str,
size_t str_len,
int cwidth,
int tab_columns)
154 const
float color[4] =
nullptr,
155 float outline_alpha = 1.0f,
156 bool multicolor =
false,
157 blender::FunctionRef<
void(std::
string &)> edit_source_cb =
nullptr);
164 bool multicolor =
false,
165 blender::FunctionRef<
void(std::
string &)> edit_source_cb =
nullptr);
207 int fontid, const
char *
str,
size_t str_len,
size_t str_offset,
int cursor_width);
214 int fontid, const
char *
str,
size_t str_len,
size_t sel_start,
size_t sel_length);
266 int fontid, const
char *
str,
size_t str_len,
float *r_width,
float *r_height)
ATTR_NONNULL();
284 const
int max_pixel_width);
329bool BLF_thumb_preview(const
char *filepath,
unsigned char *buf,
int w,
int h,
int channels)
393#define BLF_DRAW_STR_DUMMY_MAX 1024
bool BLF_has_glyph(int fontid, unsigned int unicode) ATTR_WARN_UNUSED_RESULT
void BLF_draw_svg_icon(uint icon_id, float x, float y, float size, const float color[4]=nullptr, float outline_alpha=1.0f, bool multicolor=false, blender::FunctionRef< void(std::string &)> edit_source_cb=nullptr)
void BLF_state_print(int fontid)
int BLF_load_mem_unique(const char *name, const unsigned char *mem, int mem_size) ATTR_NONNULL(1
void BLF_size(int fontid, float size)
void BLF_default_set(int fontid)
int BLF_descender(int fontid) ATTR_WARN_UNUSED_RESULT
void BLF_shadow(int fontid, FontShadowType type, const float rgba[4]=nullptr)
void BLF_aspect(int fontid, float x, float y, float z)
size_t BLF_width_to_strlen(int fontid, const char *str, size_t str_len, float width, float *r_width) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
blender::Vector< blender::Bounds< int > > BLF_str_selection_boxes(int fontid, const char *str, size_t str_len, size_t sel_start, size_t sel_length)
void BLF_color3ubv(int fontid, const unsigned char rgb[3])
int BLF_width_max(int fontid) ATTR_WARN_UNUSED_RESULT
float BLF_height(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
void BLF_clipping(int fontid, int xmin, int ymin, int xmax, int ymax)
int BLF_load_default(bool unique)
void BLF_draw_buffer(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_NONNULL(2)
blender::Vector< blender::StringRef > BLF_string_wrap(int fontid, blender::StringRef str, const int max_pixel_width)
void BLF_width_and_height(int fontid, const char *str, size_t str_len, float *r_width, float *r_height) ATTR_NONNULL()
void BLF_metrics_attach(int fontid, const unsigned char *mem, int mem_size) ATTR_NONNULL(2)
void BLF_cache_flush_set_fn(void(*cache_flush_fn)())
void BLF_color3f(int fontid, float r, float g, float b)
char * BLF_display_name_from_id(int fontid)
void BLF_color3fv_alpha(int fontid, const float rgb[3], float alpha)
void BLF_color4fv(int fontid, const float rgba[4])
blender::Array< uchar > BLF_svg_icon_bitmap(uint icon_id, float size, int *r_width, int *r_height, bool multicolor=false, blender::FunctionRef< void(std::string &)> edit_source_cb=nullptr)
bool int BLF_str_offset_to_cursor(int fontid, const char *str, size_t str_len, size_t str_offset, int cursor_width)
bool BLF_get_vfont_metrics(int fontid, float *ascend_ratio, float *em_ratio, float *scale)
int BLF_default_weight(int fontid) ATTR_WARN_UNUSED_RESULT
void BLF_shadow_offset(int fontid, int x, int y)
void BLF_batch_draw_begin()
void BLF_boundbox(int fontid, const char *str, size_t str_len, rcti *r_box, ResultBLF *r_info=nullptr) ATTR_NONNULL(2)
float BLF_fixed_width(int fontid) ATTR_WARN_UNUSED_RESULT
bool BLF_str_offset_to_glyph_bounds(int fontid, const char *str, size_t str_offset, rcti *r_glyph_bounds) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2
void BLF_disable(int fontid, int option)
void BLF_rotation(int fontid, float angle)
void BLF_buffer_col(int fontid, const float rgba[4]) ATTR_NONNULL(2)
void BLF_buffer(int fontid, float *fbuf, unsigned char *cbuf, int w, int h, ColorManagedDisplay *display)
void BLF_draw(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_NONNULL(2)
void BLF_batch_draw_end()
void BLF_boundbox_foreach_glyph(int fontid, const char *str, size_t str_len, BLF_GlyphBoundsFn user_fn, void *user_data) ATTR_NONNULL(2)
void BLF_default_size(float size)
void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char alpha)
int BLF_load_mono_default(bool unique)
void BLF_unload_id(int fontid)
int BLF_load(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
float BLF_character_to_curves(int fontid, unsigned int unicode, ListBase *nurbsbase, const float scale)
bool BLF_is_loaded_mem(const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLF_load_unique(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int bool BLF_is_loaded(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLF_batch_draw_flush()
void BLF_load_font_stack()
void BLF_enable(int fontid, int option)
float BLF_width(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
int BLF_load_mem(const char *name, const unsigned char *mem, int mem_size) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
bool(* BLF_GlyphBoundsFn)(const char *str, size_t str_step_ofs, const rcti *bounds, void *user_data)
bool BLF_has_variable_weight(int fontid) ATTR_WARN_UNUSED_RESULT
void BLF_color3ub(int fontid, unsigned char r, unsigned char g, unsigned char b)
int BLF_height_max(int fontid) ATTR_WARN_UNUSED_RESULT
char * BLF_display_name_from_file(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLF_color4f(int fontid, float r, float g, float b, float a)
size_t BLF_str_offset_from_cursor_position(int fontid, const char *str, size_t str_len, int location_x) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
void BLF_color4ubv(int fontid, const unsigned char rgba[4])
int void BLF_unload(const char *filepath) ATTR_NONNULL(1)
int BLF_ascender(int fontid) ATTR_WARN_UNUSED_RESULT
void BLF_draw_default(float x, float y, float z, const char *str, size_t str_len) ATTR_NONNULL()
bool BLF_thumb_preview(const char *filepath, unsigned char *buf, int w, int h, int channels) ATTR_NONNULL()
void BLF_character_weight(int fontid, int weight)
void BLF_color4ub(int fontid, unsigned char r, unsigned char g, unsigned char b, unsigned char alpha)
void BLF_wordwrap(int fontid, int wrap_width)
void BLF_position(int fontid, float x, float y, float z)
int BLF_draw_mono(int fontid, const char *str, size_t str_len, int cwidth, int tab_columns) ATTR_NONNULL(2)
size_t BLF_width_to_rstrlen(int fontid, const char *str, size_t str_len, float width, float *r_width) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
local_group_size(16, 16) .push_constant(Type b