Blender V5.3
interface_style.cc File Reference
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_userdef_types.h"
#include "BLI_listbase.hh"
#include "BLI_rect.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "BKE_global.hh"
#include "BLF_api.hh"
#include "CLG_log.h"
#include "interface_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui

Functions

static void blender::ui::fontstyle_set_ex (const uiFontStyle *fs, const float dpi_fac)
static uiStyle * blender::ui::style_new (ListBaseT< uiStyle > *styles, const char *name, short uifont_id)
static uiFont * blender::ui::uifont_to_blfont (int id)
void blender::ui::fontstyle_draw_ex (const uiFontStyle *fs, const rcti *rect, const char *str, size_t str_len, const uchar col[4], const FontStyleDrawParams *fs_params, int *r_xofs, int *r_yofs, ResultBLF *r_info)
void blender::ui::fontstyle_draw (const uiFontStyle *fs, const rcti *rect, const char *str, size_t str_len, const uchar col[4], const FontStyleDrawParams *fs_params)
void blender::ui::fontstyle_draw_multiline_clipped_ex (const uiFontStyle *fs, const rcti *rect, const char *str, const uchar col[4], FontStyleAlign align, int *r_xofs, int *r_yofs, ResultBLF *r_info)
void blender::ui::fontstyle_draw_multiline_clipped (const uiFontStyle *fs, const rcti *rect, const char *str, const uchar col[4], FontStyleAlign align)
void blender::ui::fontstyle_draw_rotated (const uiFontStyle *fs, const rcti *rect, const char *str, const uchar col[4])
void blender::ui::fontstyle_draw_simple (const uiFontStyle *fs, float x, float y, const char *str, const uchar col[4])
void blender::ui::fontstyle_draw_simple_backdrop (const uiFontStyle *fs, float x, float y, StringRef str, const float col_fg[4], const float col_bg[4])
const uiStyle * blender::ui::style_get ()
const uiStyle * blender::ui::style_get_dpi ()
int blender::ui::fontstyle_string_width (const uiFontStyle *fs, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int int blender::ui::fontstyle_string_width_with_block_aspect (const uiFontStyle *fs, StringRef str, float aspect) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int blender::ui::fontstyle_height_max (const uiFontStyle *fs)
void blender::ui::style_init ()
void blender::ui::fontstyle_set (const uiFontStyle *fs)

Variables

static CLG_LogRef blender::ui::LOG = {"ui.font"}