|
Blender V4.3
|
#include <cstring>#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "MEM_guardedalloc.h"#include "GPU_immediate.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "console_intern.hh"#include "../space_info/textview.hh"Go to the source code of this file.
| int console_char_pick | ( | SpaceConsole * | sc, |
| const ARegion * | region, | ||
| const int | mval[2] ) |
Definition at line 247 of file console_draw.cc.
References console_textview_main__internal().
Referenced by console_cursor_set_to_pos(), console_modal_select_invoke(), and console_selectword_invoke().
|
static |
Definition at line 110 of file console_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_size_safe(), col, str, and UNLIKELY.
Referenced by console_textview_draw_cursor().
|
static |
Definition at line 28 of file console_draw.cc.
References CONSOLE_LINE_ERROR, CONSOLE_LINE_INFO, CONSOLE_LINE_INPUT, CONSOLE_LINE_OUTPUT, TextViewContext::iter, TH_CONSOLE_ERROR, TH_CONSOLE_INFO, TH_CONSOLE_INPUT, TH_CONSOLE_OUTPUT, TH_TEXT, TVC_LINE_FG, ConsoleLine::type, and UI_GetThemeColor4ubv().
Referenced by console_textview_main__internal().
| void console_scrollback_prompt_begin | ( | SpaceConsole * | sc, |
| ConsoleLine * | cl_dummy ) |
Definition at line 57 of file console_draw.cc.
References BLI_addtail(), CONSOLE_LINE_INPUT, SpaceConsole::history, ListBase::last, ConsoleLine::len, ConsoleLine::len_alloc, ConsoleLine::line, MEM_mallocN, SpaceConsole::prompt, SpaceConsole::scrollback, and ConsoleLine::type.
Referenced by console_select_to_buffer(), console_selectword_invoke(), and console_textview_main__internal().
| void console_scrollback_prompt_end | ( | SpaceConsole * | sc, |
| ConsoleLine * | cl_dummy ) |
Definition at line 71 of file console_draw.cc.
References BLI_remlink(), ConsoleLine::line, MEM_freeN(), and SpaceConsole::scrollback.
Referenced by console_select_to_buffer(), console_selectword_invoke(), and console_textview_main__internal().
|
static |
Definition at line 78 of file console_draw.cc.
References TextViewContext::arg1, TextViewContext::iter, ListBase::last, SpaceConsole::scrollback, SpaceConsole::sel_end, TextViewContext::sel_end, SpaceConsole::sel_start, and TextViewContext::sel_start.
Referenced by console_textview_main__internal().
|
static |
Definition at line 164 of file console_draw.cc.
References TH_CONSOLE_SELECT, and UI_GetThemeColor4ubv().
Referenced by console_textview_main__internal().
|
static |
Definition at line 133 of file console_draw.cc.
References TextViewContext::arg1, console_cursor_wrap_offset(), ConsoleLine::cursor, TextViewContext::draw_rect, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), SpaceConsole::history, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), ListBase::last, TextViewContext::lheight, ConsoleLine::line, pos, SpaceConsole::prompt, TH_CONSOLE_CURSOR, rcti::xmin, and rcti::ymin.
Referenced by console_textview_main__internal().
|
static |
Definition at line 169 of file console_draw.cc.
References UI_SCALE_FAC, V2D_SCROLL_WIDTH, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by console_textview_main__internal().
|
static |
Definition at line 90 of file console_draw.cc.
References TextViewContext::arg1.
Referenced by console_textview_main__internal().
| int console_textview_height | ( | SpaceConsole * | sc, |
| const ARegion * | region ) |
Definition at line 241 of file console_draw.cc.
References console_textview_main__internal().
Referenced by console_textview_update_rect().
|
static |
Definition at line 101 of file console_draw.cc.
References BLI_assert, TextViewContext::iter, ConsoleLine::len, and ConsoleLine::line.
Referenced by console_textview_main__internal().
| void console_textview_main | ( | SpaceConsole * | sc, |
| const ARegion * | region ) |
Definition at line 235 of file console_draw.cc.
References console_textview_main__internal().
Referenced by console_main_region_draw().
|
static |
Definition at line 186 of file console_draw.cc.
References TextViewContext::arg1, TextViewContext::arg2, TextViewContext::begin, console_line_data(), console_scrollback_prompt_begin(), console_scrollback_prompt_end(), console_textview_begin(), console_textview_const_colors(), console_textview_draw_cursor(), console_textview_draw_rect_calc(), console_textview_end(), console_textview_line_get(), console_textview_step(), TextViewContext::const_colors, View2D::cur, TextViewContext::draw_cursor, TextViewContext::draw_rect, TextViewContext::draw_rect_outer, TextViewContext::end, SpaceConsole::lheight, TextViewContext::lheight, TextViewContext::line_data, TextViewContext::line_get, ret, TextViewContext::scroll_ymax, TextViewContext::scroll_ymin, SpaceConsole::sel_end, TextViewContext::sel_end, SpaceConsole::sel_start, TextViewContext::sel_start, TextViewContext::step, textview_draw(), UI_SCALE_FAC, rctf::ymax, and rctf::ymin.
Referenced by console_char_pick(), console_textview_height(), and console_textview_main().
|
static |
Definition at line 96 of file console_draw.cc.
References TextViewContext::iter.
Referenced by console_textview_main__internal().