|
Blender
V2.59
|
Go to the source code of this file.
Definition in file text_intern.h.
| #define DOC_HEIGHT 10 |
Definition at line 70 of file text_intern.h.
Referenced by draw_documentation().
| #define DOC_WIDTH 40 |
Definition at line 69 of file text_intern.h.
Referenced by draw_documentation().
| #define SUGG_LIST_SIZE 7 |
Definition at line 67 of file text_intern.h.
Referenced by do_texttools(), draw_suggestion_list(), text_do_suggest_select(), and text_pop_suggest_list().
| #define SUGG_LIST_WIDTH 20 |
Definition at line 68 of file text_intern.h.
Referenced by draw_documentation(), draw_suggestion_list(), and text_do_suggest_select().
| #define TEXTXLOC (st->cwidth * st->linenrs_tot) |
Definition at line 65 of file text_intern.h.
Referenced by draw_brackets(), draw_cursor(), draw_documentation(), draw_markers(), draw_suggestion_list(), draw_text_main(), line_number_invoke(), set_cursor_to_pos(), text_do_suggest_select(), text_draw(), and wrap_width().
| #define TMARK_GRP_CUSTOM 0x00010000 |
Definition at line 75 of file text_intern.h.
| #define TMARK_GRP_FINDALL 0x00020000 |
Definition at line 76 of file text_intern.h.
Referenced by find_and_replace().
| #define TOOL_DOCUMENT 0x02 |
Definition at line 73 of file text_intern.h.
Referenced by do_texttools().
| #define TOOL_SUGG_LIST 0x01 |
Definition at line 72 of file text_intern.h.
Referenced by do_texttools().
| #define TXT_OFFSET 15 |
Definition at line 61 of file text_intern.h.
Referenced by draw_brackets(), draw_cursor(), draw_documentation(), draw_markers(), draw_suggestion_list(), draw_text_main(), line_number_invoke(), set_cursor_to_pos(), text_do_suggest_select(), text_draw(), and wrap_width().
| #define TXT_SCROLL_SPACE 2 |
Definition at line 63 of file text_intern.h.
Referenced by scroll_bar_invoke().
| #define TXT_SCROLL_WIDTH 20 |
Definition at line 62 of file text_intern.h.
Referenced by draw_text_main(), text_update_cursor_moved(), and wrap_width().
| typedef struct FlattenString FlattenString |
| anonymous enum |
| LINE_BEGIN | |
| LINE_END | |
| FILE_TOP | |
| FILE_BOTTOM | |
| PREV_CHAR | |
| NEXT_CHAR | |
| PREV_WORD | |
| NEXT_WORD | |
| PREV_LINE | |
| NEXT_LINE | |
| PREV_PAGE | |
| NEXT_PAGE |
Definition at line 108 of file text_intern.h.
| anonymous enum |
Definition at line 110 of file text_intern.h.
Definition at line 1682 of file text_draw.c.
References BLF_fixed_width(), calc_text_rcts(), Text::curl, SpaceText::cwidth, draw_brackets(), draw_cursor(), draw_documentation(), draw_markers(), draw_suggestion_list(), draw_textscroll(), ListBase::first, SpaceText::flags, TextLine::format, i, ListBase::last, SpaceText::left, SpaceText::lheight, SpaceText::linenrs_tot, Text::lines, SpaceText::margin_column, MAX2, mono, TextLine::next, Text::sell, SpaceText::showlinenrs, SpaceText::showsyntax, ST_SHOW_MARGIN, SpaceText::text, text_draw(), text_draw_wrapped(), text_font_begin(), text_font_draw(), text_font_end(), text_get_visible_lines_no(), text_update_drawcache(), TEXTXLOC, TH_GRID, TH_HILITE, TH_TEXT, SpaceText::top, txt_clean_text(), txt_format_line(), TXT_OFFSET, TXT_SCROLL_WIDTH, UI_ThemeColor(), SpaceText::viewlines, ARegion::winx, ARegion::winy, and SpaceText::wordwrap.
Referenced by text_main_area_draw().
| int flatten_string | ( | struct SpaceText * | st, |
| FlattenString * | fs, | ||
| const char * | in | ||
| ) |
Definition at line 132 of file text_draw.c.
References FlattenString::accum, FlattenString::buf, FlattenString::fixedaccum, FlattenString::fixedbuf, flatten_string_append(), i, FlattenString::pos, and SpaceText::tabnumber.
Referenced by convert_whitespace_exec(), set_cursor_to_pos(), text_draw(), text_draw_wrapped(), and txt_format_line().
| void flatten_string_free | ( | FlattenString * | fs | ) |
Definition at line 157 of file text_draw.c.
References FlattenString::accum, FlattenString::buf, FlattenString::fixedaccum, FlattenString::fixedbuf, and MEM_freeN().
Referenced by convert_whitespace_exec(), set_cursor_to_pos(), text_draw(), text_draw_wrapped(), and txt_format_line().
Definition at line 51 of file text_python.c.
References Text::curc, Text::curl, SpaceText::cwidth, i, SpaceText::left, SpaceText::lheight, SuggItem::next, TextLine::prev, SpaceText::showlinenrs, SUGG_LIST_SIZE, SUGG_LIST_WIDTH, SpaceText::text, text_update_character_width(), texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_select(), texttool_suggest_selected(), texttool_suggest_top(), texttool_text_is_active(), TEXTXLOC, SpaceText::top, TXT_OFFSET, simple_enum_gen::w, and ARegion::winy.
Referenced by do_texttools().
| void text_drawcache_tag_update | ( | struct SpaceText * | st, |
| int | full | ||
| ) |
Definition at line 908 of file text_draw.c.
References BLI_findindex(), Text::curl, SpaceText::drawcache, Text::lines, DrawCache::nlines, Text::sell, SpaceText::text, DrawCache::update_flag, DrawCache::valid_head, and DrawCache::valid_tail.
Referenced by comment_exec(), convert_whitespace_exec(), cut_exec(), delete_exec(), ED_text_undo_step(), find_and_replace(), indent_exec(), insert_exec(), line_break_exec(), new_exec(), open_exec(), paste_exec(), reload_exec(), text_listener(), uncomment_exec(), unindent_exec(), and unlink_exec().
| int text_file_modified | ( | struct Text * | text | ) |
Definition at line 3050 of file text_ops.c.
References BLI_exists(), BLI_path_abs(), BLI_strncpy(), FILE_MAXDIR, FILE_MAXFILE, G, Global::main, Text::mtime, Main::name, and Text::name.
Referenced by resolve_conflict_invoke().
| int text_font_width | ( | struct SpaceText * | st, |
| const char * | str | ||
| ) |
| int text_font_width_character | ( | struct SpaceText * | st | ) |
| void text_free_caches | ( | struct SpaceText * | st | ) |
Definition at line 947 of file text_draw.c.
References SpaceText::drawcache, DrawCache::line_height, and MEM_freeN().
Referenced by text_free().
| int text_get_char_pos | ( | struct SpaceText * | st, |
| const char * | line, | ||
| int | cur | ||
| ) |
Definition at line 653 of file text_draw.c.
References i, and SpaceText::tabnumber.
Referenced by cursor_skip_find_line(), draw_brackets(), draw_cursor(), draw_markers(), wrap_move_down(), and wrap_move_up().
| int text_get_span_wrap | ( | struct SpaceText * | st, |
| struct ARegion * | ar, | ||
| struct TextLine * | from, | ||
| struct TextLine * | to | ||
| ) |
Definition at line 1004 of file text_draw.c.
References TextLine::line, TextLine::next, text_get_visible_lines(), txt_get_span(), and SpaceText::wordwrap.
Referenced by calc_text_rcts().
Definition at line 1021 of file text_draw.c.
References SpaceText::drawcache, text_update_drawcache(), and DrawCache::total_lines.
Referenced by calc_text_rcts(), screen_skip(), and scroll_modal().
Definition at line 969 of file text_draw.c.
References i, max, SpaceText::tabnumber, and wrap_width().
Referenced by cursor_skip_find_line(), draw_cursor(), set_cursor_to_pos(), text_get_span_wrap(), text_update_drawcache(), wrap_move_down(), wrap_move_up(), and wrap_offset().
| void TEXT_OT_comment | ( | struct wmOperatorType * | ot | ) |
Definition at line 1030 of file text_ops.c.
References comment_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_convert_whitespace | ( | struct wmOperatorType * | ot | ) |
Definition at line 1204 of file text_ops.c.
References convert_whitespace_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), and TO_SPACES.
Referenced by text_operatortypes().
| void TEXT_OT_copy | ( | struct wmOperatorType * | ot | ) |
Definition at line 847 of file text_ops.c.
References copy_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cursor_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 2678 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), set_cursor_exec(), set_cursor_invoke(), wmOperatorType::srna, and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cut | ( | struct wmOperatorType * | ot | ) |
Definition at line 880 of file text_ops.c.
References cut_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 2016 of file text_ops.c.
References DEL_NEXT_CHAR, delete_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find | ( | struct wmOperatorType * | ot | ) |
Definition at line 2928 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, find_exec(), wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find_set_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 2996 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, find_set_selected_exec(), wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_indent | ( | struct wmOperatorType * | ot | ) |
Definition at line 915 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, indent_exec(), wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_insert | ( | struct wmOperatorType * | ot | ) |
Definition at line 2809 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, insert_exec(), insert_invoke(), wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_string(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_jump | ( | struct wmOperatorType * | ot | ) |
Definition at line 1963 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, jump_exec(), jump_invoke(), wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_line_break | ( | struct wmOperatorType * | ot | ) |
Definition at line 997 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, line_break_exec(), wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_line_number | ( | struct wmOperatorType * | ot | ) |
Definition at line 2734 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, line_number_invoke(), wmOperatorType::name, wmOperatorType::poll, and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_make_internal | ( | struct wmOperatorType * | ot | ) |
Definition at line 421 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, make_internal_exec(), wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_mark_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 2966 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, mark_all_exec(), wmOperatorType::name, wmOperatorType::poll, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_markers_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 1384 of file text_ops.c.
References clear_all_markers_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_move | ( | struct wmOperatorType * | ot | ) |
Definition at line 1897 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_exec(), wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_move_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 1921 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_select_exec(), wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_new | ( | struct wmOperatorType * | ot | ) |
Definition at line 192 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_exec(), OPTYPE_UNDO, wmOperatorType::poll, and text_new_poll().
Referenced by text_operatortypes().
| void TEXT_OT_next_marker | ( | struct wmOperatorType * | ot | ) |
Definition at line 1358 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, next_marker_exec(), wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_open | ( | struct wmOperatorType * | ot | ) |
Definition at line 291 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, open_cancel(), open_exec(), open_invoke(), OPTYPE_UNDO, wmOperatorType::poll, PYSCRIPTFILE, RNA_def_boolean(), wmOperatorType::srna, text_new_poll(), TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_overwrite_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 2044 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_space_edit_poll(), and toggle_overwrite_exec().
Referenced by text_operatortypes().
| void TEXT_OT_paste | ( | struct wmOperatorType * | ot | ) |
Definition at line 809 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, paste_exec(), wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_previous_marker | ( | struct wmOperatorType * | ot | ) |
Definition at line 1322 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, previous_marker_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_properties | ( | struct wmOperatorType * | ot | ) |
Definition at line 119 of file text_header.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, properties_exec(), and properties_poll().
Referenced by text_operatortypes().
| void TEXT_OT_refresh_pyconstraints | ( | struct wmOperatorType * | ot | ) |
Definition at line 685 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, refresh_pyconstraints_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_reload | ( | struct wmOperatorType * | ot | ) |
Definition at line 336 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, reload_exec(), text_edit_poll(), and WM_operator_confirm().
Referenced by text_operatortypes().
| void TEXT_OT_replace | ( | struct wmOperatorType * | ot | ) |
Definition at line 2947 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, replace_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_replace_set_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 3023 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, replace_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_resolve_conflict | ( | struct wmOperatorType * | ot | ) |
Definition at line 3158 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, resolve_conflict_exec(), resolve_conflict_invoke(), RESOLVE_IGNORE, RNA_def_enum(), save_poll(), and wmOperatorType::srna.
Referenced by text_operatortypes().
| void TEXT_OT_run_script | ( | struct wmOperatorType * | ot | ) |
Definition at line 625 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, run_script_exec(), and run_script_poll().
Referenced by text_operatortypes().
| void TEXT_OT_save | ( | struct wmOperatorType * | ot | ) |
Definition at line 498 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, save_exec(), and save_poll().
Referenced by text_operatortypes().
| void TEXT_OT_save_as | ( | struct wmOperatorType * | ot | ) |
Definition at line 555 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_SAVE, FILE_SPECIAL, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, PYSCRIPTFILE, save_as_exec(), save_as_invoke(), text_edit_poll(), TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_scroll | ( | struct wmOperatorType * | ot | ) |
Definition at line 2244 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_POINTER, wmOperatorType::poll, RNA_def_int(), scroll_cancel(), scroll_exec(), scroll_invoke(), scroll_modal(), wmOperatorType::srna, and text_scroll_poll().
Referenced by text_operatortypes().
| void TEXT_OT_scroll_bar | ( | struct wmOperatorType * | ot | ) |
Definition at line 2327 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, wmOperatorType::poll, RNA_def_int(), scroll_bar_invoke(), scroll_cancel(), scroll_modal(), wmOperatorType::srna, and text_region_scroll_poll().
Referenced by text_operatortypes().
| void TEXT_OT_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 1233 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, select_all_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_select_line | ( | struct wmOperatorType * | ot | ) |
Definition at line 1259 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, select_line_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_select_word | ( | struct wmOperatorType * | ot | ) |
Definition at line 1286 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, select_word_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_selection_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 2624 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), set_selection_cancel(), set_selection_invoke(), set_selection_modal(), wmOperatorType::srna, and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_to_3d_object | ( | struct wmOperatorType * | ot | ) |
Definition at line 3186 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_edit_poll(), and to_3d_object_exec().
Referenced by text_operatortypes().
| void TEXT_OT_uncomment | ( | struct wmOperatorType * | ot | ) |
Definition at line 1064 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and uncomment_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unindent | ( | struct wmOperatorType * | ot | ) |
Definition at line 950 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and unindent_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unlink | ( | struct wmOperatorType * | ot | ) |
Definition at line 386 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_unlink_poll(), unlink_exec(), and WM_operator_confirm().
Referenced by text_operatortypes().
| void text_pop_suggest_list | ( | void | ) |
Definition at line 106 of file text_python.c.
References i, SuggItem::next, SUGG_LIST_SIZE, texttool_suggest_first(), texttool_suggest_selected(), and texttool_suggest_top().
Referenced by do_texttools(), and draw_suggestion_list().
| void text_update_character_width | ( | struct SpaceText * | st | ) |
Definition at line 1811 of file text_draw.c.
References BLF_fixed_width(), SpaceText::cwidth, MAX2, mono, text_font_begin(), and text_font_end().
Referenced by line_number_invoke(), scroll_apply(), scroll_invoke(), set_cursor_to_pos(), text_do_suggest_select(), text_update_cursor_moved(), text_update_drawcache(), wrap_move_bol(), wrap_move_down(), wrap_move_eol(), and wrap_move_up().
| void text_update_cursor_moved | ( | struct bContext * | C | ) |
Definition at line 1821 of file text_draw.c.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_space_text(), Text::curc, Text::curl, SpaceText::cwidth, ELEM3, ListBase::first, i, SpaceText::left, TextLine::line, Text::lines, ARegion::next, NULL, ScrArea::regionbase, ARegion::regiontype, RGN_TYPE_WINDOW, Text::selc, Text::sell, SpaceText::text, text_draw(), text_update_character_width(), SpaceText::top, txt_get_span(), TXT_SCROLL_WIDTH, SpaceText::viewlines, ARegion::winx, SpaceText::wordwrap, and wrap_offset().
Referenced by clear_all_markers_exec(), comment_exec(), convert_whitespace_exec(), cut_exec(), delete_exec(), ED_text_undo_step(), find_and_replace(), indent_exec(), insert_exec(), jump_exec(), line_break_exec(), line_number_invoke(), make_internal_exec(), move_cursor(), next_marker_exec(), paste_exec(), previous_marker_exec(), reload_exec(), run_script(), save_as_exec(), save_exec(), select_all_exec(), select_line_exec(), select_word_exec(), set_cursor_apply(), set_cursor_exec(), set_cursor_exit(), uncomment_exec(), unindent_exec(), and unlink_exec().
| void text_update_edited | ( | struct Text * | text | ) |
Definition at line 148 of file text_ops.c.
References ListBase::first, Text::lines, TextLine::next, and text_update_line_edited().
| void text_update_line_edited | ( | struct TextLine * | line | ) |
Definition at line 136 of file text_ops.c.
References TextLine::format, MEM_freeN(), and NULL.
Referenced by delete_exec(), do_textmarkers(), do_texttools(), insert_exec(), line_break_exec(), and text_update_edited().
| void wrap_offset | ( | struct SpaceText * | st, |
| struct ARegion * | ar, | ||
| struct TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc | ||
| ) |
Definition at line 507 of file text_draw.c.
References ListBase::first, i, TextLine::line, Text::lines, max, TextLine::next, SpaceText::tabnumber, SpaceText::text, text_get_visible_lines(), SpaceText::top, SpaceText::wordwrap, and wrap_width().
Referenced by draw_brackets(), draw_cursor(), draw_markers(), and text_update_cursor_moved().
| void wrap_offset_in_line | ( | struct SpaceText * | st, |
| struct ARegion * | ar, | ||
| struct TextLine * | linep, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc | ||
| ) |
Definition at line 595 of file text_draw.c.
References i, TextLine::line, max, SpaceText::tabnumber, SpaceText::text, SpaceText::wordwrap, and wrap_width().
Referenced by cursor_skip_find_line(), draw_cursor(), wrap_move_down(), and wrap_move_up().
Definition at line 496 of file text_draw.c.
References SpaceText::cwidth, max, SpaceText::showlinenrs, TEXTXLOC, TXT_OFFSET, TXT_SCROLL_WIDTH, and ARegion::winx.
Referenced by set_cursor_to_pos(), text_get_cursor_rel(), text_get_visible_lines(), wrap_move_bol(), wrap_move_eol(), wrap_offset(), and wrap_offset_in_line().
| const char* text_context_dir[] |
Definition at line 370 of file space_text.c.