Blender  V3.3
Classes
text_draw.c File Reference
#include "MEM_guardedalloc.h"
#include "BLF_api.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "BKE_text.h"
#include "BKE_text_suggestions.h"
#include "ED_text.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "text_format.h"
#include "text_intern.h"
#include "WM_api.h"
#include "WM_types.h"

Go to the source code of this file.

Classes

struct  TextDrawContext
 

Text Font Drawing

typedef struct TextDrawContext TextDrawContext
 
static void text_draw_context_init (const SpaceText *st, TextDrawContext *tdc)
 
static void text_font_begin (const TextDrawContext *tdc)
 
static void text_font_end (const TextDrawContext *UNUSED(tdc))
 
static int text_font_draw (const TextDrawContext *tdc, int x, int y, const char *str)
 
static int text_font_draw_character (const TextDrawContext *tdc, int x, int y, char c)
 
static int text_font_draw_character_utf8 (const TextDrawContext *tdc, int x, int y, const char *c, const int c_len)
 
static void format_draw_color (const TextDrawContext *tdc, char formatchar)
 

Typedef Documentation

◆ TextDrawContext

Function Documentation

◆ format_draw_color()

static void format_draw_color ( const TextDrawContext tdc,
char  formatchar 
)
static

◆ text_draw_context_init()

static void text_draw_context_init ( const SpaceText st,
TextDrawContext tdc 
)
static

◆ text_font_begin()

static void text_font_begin ( const TextDrawContext tdc)
static

Definition at line 58 of file text_draw.c.

References BLF_size(), TextDrawContext::font_id, and TextDrawContext::lheight_px.

◆ text_font_draw()

static int text_font_draw ( const TextDrawContext tdc,
int  x,
int  y,
const char *  str 
)
static

◆ text_font_draw_character()

static int text_font_draw_character ( const TextDrawContext tdc,
int  x,
int  y,
char  c 
)
static

◆ text_font_draw_character_utf8()

static int text_font_draw_character_utf8 ( const TextDrawContext tdc,
int  x,
int  y,
const char *  c,
const int  c_len 
)
static

◆ text_font_end()

static void text_font_end ( const TextDrawContext UNUSEDtdc)
static

Definition at line 63 of file text_draw.c.