|
Blender V4.3
|
#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) |
Definition at line 44 of file text_draw.cc.
References SpaceText::runtime.
|
static |
Definition at line 124 of file text_draw.cc.
References FMT_TYPE_COMMENT, FMT_TYPE_DEFAULT, FMT_TYPE_DIRECTIVE, FMT_TYPE_KEYWORD, FMT_TYPE_NUMERAL, FMT_TYPE_RESERVED, FMT_TYPE_SPECIAL, FMT_TYPE_STRING, FMT_TYPE_SYMBOL, FMT_TYPE_WHITESPACE, TextDrawContext::font_id, TH_SYNTAX_B, TH_SYNTAX_C, TH_SYNTAX_D, TH_SYNTAX_L, TH_SYNTAX_N, TH_SYNTAX_R, TH_SYNTAX_S, TH_SYNTAX_V, TH_TEXT, and UI_FontThemeColor().
|
static |
Definition at line 62 of file text_draw.cc.
References blf_mono_font, TextDrawContext::cwidth_px, ED_text_is_syntax_highlight_supported(), TextDrawContext::font_id, TextDrawContext::lheight_px, SpaceText::runtime, SpaceText::showsyntax, TextDrawContext::syntax_highlight, and SpaceText::text.
|
static |
Definition at line 70 of file text_draw.cc.
References BLF_size(), TextDrawContext::font_id, and TextDrawContext::lheight_px.
|
static |
Definition at line 77 of file text_draw.cc.
References BLF_draw_mono(), BLF_DRAW_STR_DUMMY_MAX, BLF_position(), TextDrawContext::cwidth_px, TextDrawContext::font_id, and str.
|
static |
Definition at line 87 of file text_draw.cc.
References BLF_draw_mono(), BLF_position(), TextDrawContext::cwidth_px, and TextDrawContext::font_id.
|
static |
Definition at line 96 of file text_draw.cc.
References BLF_draw_mono(), BLF_position(), BLI_assert, BLI_str_utf8_size_safe(), TextDrawContext::cwidth_px, and TextDrawContext::font_id.
|
static |
Definition at line 75 of file text_draw.cc.