Blender
V3.3
|
#include <string.h>
#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.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "console_intern.h"
#include "../space_info/textview.h"
Go to the source code of this file.
int console_char_pick | ( | SpaceConsole * | sc, |
const ARegion * | region, | ||
const int | mval[2] | ||
) |
Definition at line 237 of file console_draw.c.
References console_textview_main__internal(), and NULL.
Referenced by console_cursor_set_to_pos(), and console_selectword_invoke().
|
static |
Definition at line 109 of file console_draw.c.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_size_safe(), col, str, and width.
Referenced by console_textview_draw_cursor().
|
static |
Definition at line 1 of file console_draw.c.
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 56 of file console_draw.c.
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_copy_exec(), console_selectword_invoke(), and console_textview_main__internal().
void console_scrollback_prompt_end | ( | SpaceConsole * | sc, |
ConsoleLine * | cl_dummy | ||
) |
Definition at line 70 of file console_draw.c.
References BLI_remlink(), ConsoleLine::line, MEM_freeN, and SpaceConsole::scrollback.
Referenced by console_copy_exec(), console_selectword_invoke(), and console_textview_main__internal().
|
static |
Definition at line 77 of file console_draw.c.
References TextViewContext::arg1, TextViewContext::iter, ListBase::last, NULL, return(), SpaceConsole::scrollback, TextViewContext::sel_end, SpaceConsole::sel_end, TextViewContext::sel_start, and SpaceConsole::sel_start.
Referenced by console_textview_main__internal().
|
static |
Definition at line 161 of file console_draw.c.
References TH_CONSOLE_SELECT, and UI_GetThemeColor4ubv().
Referenced by console_textview_main__internal().
|
static |
Definition at line 130 of file console_draw.c.
References TextViewContext::arg1, console_cursor_wrap_offset(), TextViewContext::draw_rect, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), SpaceConsole::history, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), ListBase::last, TextViewContext::lheight, NULL, pos, SpaceConsole::prompt, TH_CONSOLE_CURSOR, rcti::xmin, and rcti::ymin.
Referenced by console_textview_main__internal().
|
static |
Definition at line 166 of file console_draw.c.
References UI_DPI_FAC, V2D_SCROLL_WIDTH, ARegion::winx, ARegion::winy, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by console_textview_main__internal().
|
static |
Definition at line 89 of file console_draw.c.
References TextViewContext::arg1.
Referenced by console_textview_main__internal().
int console_textview_height | ( | SpaceConsole * | sc, |
const ARegion * | region | ||
) |
Definition at line 231 of file console_draw.c.
References console_textview_main__internal(), and NULL.
Referenced by console_textview_update_rect().
|
static |
Definition at line 100 of file console_draw.c.
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 225 of file console_draw.c.
References console_textview_main__internal(), and NULL.
Referenced by console_main_region_draw().
|
static |
Definition at line 183 of file console_draw.c.
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, TextViewContext::lheight, SpaceConsole::lheight, TextViewContext::line_data, TextViewContext::line_get, NULL, ret, TextViewContext::scroll_ymax, TextViewContext::scroll_ymin, TextViewContext::sel_end, SpaceConsole::sel_end, TextViewContext::sel_start, SpaceConsole::sel_start, TextViewContext::step, textview_draw(), UI_DPI_FAC, ARegion::v2d, rctf::ymax, and rctf::ymin.
Referenced by console_char_pick(), console_textview_height(), and console_textview_main().
|
static |
Definition at line 95 of file console_draw.c.
References TextViewContext::iter, and NULL.
Referenced by console_textview_main__internal().