Blender V4.3
text_draw.cc File Reference
#include <algorithm>
#include "MEM_guardedalloc.h"
#include "BLF_api.hh"
#include "BLI_blenlib.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "BKE_context.hh"
#include "BKE_screen.hh"
#include "BKE_text.h"
#include "BKE_text_suggestions.h"
#include "ED_text.hh"
#include "GPU_immediate.hh"
#include "GPU_state.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "text_format.hh"
#include "text_intern.hh"
#include "WM_api.hh"
#include "WM_types.hh"

Go to the source code of this file.

Classes

struct  TextDrawContext
 

Functions

Text Run-Time Access
int ED_space_text_visible_lines_get (const SpaceText *st)
 
Text Font Drawing
static void space_text_draw_context_init (const SpaceText *st, TextDrawContext *tdc)
 
static void text_font_begin (const TextDrawContext *tdc)
 
static void text_font_end (const TextDrawContext *)
 
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)
 

Function Documentation

◆ ED_space_text_visible_lines_get()

int ED_space_text_visible_lines_get ( const SpaceText * st)

Definition at line 44 of file text_draw.cc.

References SpaceText::runtime.

◆ format_draw_color()

◆ space_text_draw_context_init()

◆ text_font_begin()

static void text_font_begin ( const TextDrawContext * tdc)
static

Definition at line 70 of file text_draw.cc.

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 * )
static

Definition at line 75 of file text_draw.cc.