|
Blender V5.0
|
#include "DNA_vec_types.h"Go to the source code of this file.
Classes | |
| struct | blender::ed::text::SpaceText_Runtime |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::text |
Macros | |
| #define | TXT_NUMCOL_PAD 1.0f |
| #define | TXT_NUMCOL_WIDTH(st) |
| #define | TXT_BODY_LPAD 1.0f |
| #define | TXT_BODY_LEFT(st) |
| #define | TXT_SCROLL_WIDTH U.widget_unit |
| #define | TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit)) |
| #define | TXT_LINE_VPAD 0.3f |
| #define | TXT_LINE_SPACING(st) |
| #define | TXT_LINE_HEIGHT(st) |
| #define | SUGG_LIST_SIZE 7 |
| #define | SUGG_LIST_WIDTH 20 |
| #define | TOOL_SUGG_LIST 0x01 |
Enumerations | |
| 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 } |
| enum | { DEL_NEXT_CHAR , DEL_PREV_CHAR , DEL_NEXT_WORD , DEL_PREV_WORD } |
Variables | |
| const char * | text_context_dir [] |
| #define SUGG_LIST_SIZE 7 |
Definition at line 59 of file text_intern.hh.
Referenced by draw_suggestion_list(), space_text_do_suggest_select(), text_autocomplete_modal(), and text_pop_suggest_list().
| #define SUGG_LIST_WIDTH 20 |
Definition at line 60 of file text_intern.hh.
Referenced by draw_suggestion_list(), and space_text_do_suggest_select().
| #define TOOL_SUGG_LIST 0x01 |
Definition at line 62 of file text_intern.hh.
Referenced by text_autocomplete_modal().
| #define TXT_BODY_LEFT | ( | st | ) |
Definition at line 46 of file text_intern.hh.
Referenced by draw_brackets(), draw_suggestion_list(), draw_text_decoration(), draw_text_main(), ED_space_text_region_location_from_cursor(), ED_space_text_scroll_to_cursor(), space_text_do_suggest_select(), and text_cursor_set_to_pos().
| #define TXT_BODY_LPAD 1.0f |
Definition at line 44 of file text_intern.hh.
Referenced by text_line_number_invoke().
| #define TXT_LINE_HEIGHT | ( | st | ) |
Definition at line 57 of file text_intern.hh.
Referenced by draw_brackets(), draw_suggestion_list(), draw_text_decoration(), draw_text_main(), ED_space_text_region_location_from_cursor(), space_text_do_suggest_select(), space_text_draw_wrapped(), text_cursor_set_to_pos(), and text_scroll_state_init().
| #define TXT_LINE_SPACING | ( | st | ) |
Definition at line 55 of file text_intern.hh.
Referenced by draw_text_decoration().
| #define TXT_LINE_VPAD 0.3f |
Definition at line 53 of file text_intern.hh.
| #define TXT_NUMCOL_PAD 1.0f |
Definition at line 38 of file text_intern.hh.
Referenced by draw_text_main().
| #define TXT_NUMCOL_WIDTH | ( | st | ) |
Definition at line 40 of file text_intern.hh.
Referenced by draw_text_main(), and text_line_number_invoke().
| #define TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit)) |
Definition at line 50 of file text_intern.hh.
Referenced by text_scroll_bar_invoke().
| #define TXT_SCROLL_WIDTH U.widget_unit |
Definition at line 49 of file text_intern.hh.
Referenced by draw_text_main(), and ED_space_text_scroll_to_cursor().
| anonymous enum |
| Enumerator | |
|---|---|
| DEL_NEXT_CHAR | |
| DEL_PREV_CHAR | |
| DEL_NEXT_WORD | |
| DEL_PREV_WORD | |
Definition at line 114 of file text_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| 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 100 of file text_intern.hh.
Definition at line 1497 of file text_draw.cc.
References BLF_fixed_width(), calc_text_rcts(), Text::curl, TextDrawContext::cwidth_px, draw_brackets(), draw_suggestion_list(), draw_text_decoration(), draw_textscroll(), ED_text_format_get(), ListBase::first, SpaceText::flags, TextDrawContext::font_id, TextLine::format, TextFormatType::format_line, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), i, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4fv(), immUniformThemeColor(), immVertexFormat(), ListBase::last, SpaceText::left, SpaceText::lheight, TextLine::line, Text::lines, SpaceText::margin_column, max_ii(), TextLine::next, pos, SpaceText::runtime, Text::sell, SpaceText::showlinenrs, SNPRINTF_UTF8, space_text_draw(), space_text_draw_context_init(), space_text_draw_wrapped(), space_text_get_visible_lines_no(), space_text_update_drawcache(), ST_SCROLL_SELECT, ST_SHOW_MARGIN, TextDrawContext::syntax_highlight, SpaceText::text, text_font_begin(), text_font_draw(), text_font_end(), TH_GRID, TH_HILITE, TH_LINENUMBERS, TH_TEXT, SpaceText::top, TXT_BODY_LEFT, txt_clean_text(), TXT_LINE_HEIGHT, TXT_NUMCOL_PAD, TXT_NUMCOL_WIDTH, TXT_SCROLL_WIDTH, U, UI_FontThemeColor(), UI_GetThemeColor4fv(), ARegion::winx, ARegion::winy, SpaceText::wordwrap, x, and y.
Referenced by text_main_region_draw().
Definition at line 40 of file text_autocomplete.cc.
References Text::curc, Text::curl, i, l, SpaceText::left, SuggItem::next, TextLine::prev, SpaceText::runtime, space_text_update_character_width(), SUGG_LIST_SIZE, SUGG_LIST_WIDTH, SpaceText::text, texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_select(), texttool_suggest_top(), texttool_text_is_active(), SpaceText::top, top, TXT_BODY_LEFT, TXT_LINE_HEIGHT, U, w(), ARegion::winy, x, and y.
Referenced by text_autocomplete_modal().
| void space_text_drawcache_tag_update | ( | SpaceText * | st, |
| bool | full ) |
Definition at line 734 of file text_draw.cc.
References BLI_findindex(), Text::curl, Text::lines, DrawCache::nlines, SpaceText::runtime, Text::sell, SpaceText::text, DrawCache::update, DrawCache::valid_head, and DrawCache::valid_tail.
Referenced by text_comment_exec(), text_convert_whitespace_exec(), text_cut_exec(), text_delete_exec(), text_find_and_replace(), text_indent_exec(), text_insert_exec(), text_line_break_exec(), text_listener(), text_new_exec(), text_open_exec(), text_paste_exec(), text_reload_exec(), text_replace_all(), text_undosys_step_decode(), text_unindent_exec(), and text_unlink_exec().
| void space_text_free_caches | ( | SpaceText * | st | ) |
Definition at line 783 of file text_draw.cc.
References DrawCache::line_height, MEM_freeN(), and SpaceText::runtime.
Referenced by text_free().
| int space_text_get_char_pos | ( | const SpaceText * | st, |
| const char * | line, | ||
| int | cur ) |
Definition at line 385 of file text_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_size_safe(), i, and SpaceText::tabnumber.
Referenced by cursor_skip_find_line(), draw_brackets(), draw_suggestion_list(), draw_text_decoration(), ED_space_text_region_location_from_cursor(), ED_space_text_scroll_to_cursor(), txt_wrap_move_down(), and txt_wrap_move_up().
| int space_text_get_span_wrap | ( | const SpaceText * | st, |
| const ARegion * | region, | ||
| const TextLine * | from, | ||
| const TextLine * | to ) |
Definition at line 849 of file text_draw.cc.
References TextLine::line, TextLine::next, ret, space_text_get_visible_lines(), txt_get_span(), and SpaceText::wordwrap.
Referenced by calc_text_rcts().
Definition at line 872 of file text_draw.cc.
References SpaceText::runtime, space_text_update_drawcache(), and DrawCache::total_lines.
Referenced by calc_text_rcts(), space_text_screen_clamp(), and text_scroll_state_init().
Definition at line 810 of file text_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_size_safe(), ELEM, i, max, space_text_wrap_width(), str, and SpaceText::tabnumber.
Referenced by cursor_skip_find_line(), draw_text_decoration(), space_text_get_line_pos_wrapped(), space_text_get_span_wrap(), space_text_update_drawcache(), txt_wrap_move_down(), txt_wrap_move_up(), and while().
Takes an area instead of a region, use for listeners.
Definition at line 1754 of file text_draw.cc.
References BKE_area_find_region_type(), Text::curl, ED_space_text_scroll_to_cursor(), ELEM, RGN_TYPE_WINDOW, and SpaceText::text.
Referenced by space_text_update_cursor_moved().
| void space_text_update_character_width | ( | SpaceText * | st | ) |
Definition at line 1661 of file text_draw.cc.
References BLF_fixed_width(), TextDrawContext::font_id, SpaceText::runtime, space_text_draw_context_init(), text_font_begin(), and text_font_end().
Referenced by ED_space_text_scroll_to_cursor(), space_text_do_suggest_select(), space_text_update_drawcache(), text_cursor_set_to_pos(), text_line_number_invoke(), text_scroll_apply(), text_scroll_invoke(), txt_wrap_move_bol(), txt_wrap_move_down(), txt_wrap_move_eol(), and txt_wrap_move_up().
| void space_text_update_cursor_moved | ( | bContext * | C | ) |
Definition at line 1769 of file text_draw.cc.
References C, CTX_wm_area(), CTX_wm_space_text(), and space_text_scroll_to_cursor_with_area().
Referenced by move_lines_exec(), text_comment_exec(), text_convert_whitespace_exec(), text_cursor_set_exec(), text_cursor_set_exit(), text_cut_exec(), text_delete_exec(), text_find_and_replace(), text_indent_exec(), text_insert_exec(), text_jump_exec(), text_line_break_exec(), text_line_number_invoke(), text_make_internal_exec(), text_move_cursor(), text_paste_exec(), text_reload_exec(), text_run_script(), text_save_as_exec(), text_save_exec(), text_select_all_exec(), text_select_line_exec(), text_select_word_exec(), text_undosys_step_decode(), text_unindent_exec(), and text_unlink_exec().
| void space_text_wrap_offset | ( | const SpaceText * | st, |
| const ARegion * | region, | ||
| TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc ) |
Sets (offl, offc) for transforming (line, curs) to its wrapped position.
Referenced by draw_brackets(), draw_suggestion_list(), draw_text_decoration(), ED_space_text_region_location_from_cursor(), and ED_space_text_scroll_to_cursor().
| void space_text_wrap_offset_in_line | ( | const SpaceText * | st, |
| const ARegion * | region, | ||
| TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc ) |
cursin - mem, offc - view.
Definition at line 313 of file text_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_offset_to_column(), BLI_str_utf8_size_safe(), cursin, ELEM, i, TextLine::len, TextLine::line, max, space_text_wrap_width(), SpaceText::tabnumber, SpaceText::text, and SpaceText::wordwrap.
Referenced by cursor_skip_find_line(), draw_text_decoration(), txt_wrap_move_down(), and txt_wrap_move_up().
| void TEXT_OT_autocomplete | ( | wmOperatorType * | ot | ) |
Definition at line 565 of file text_autocomplete.cc.
References OPTYPE_BLOCKING, ot, text_autocomplete_cancel(), text_autocomplete_invoke(), text_autocomplete_modal(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_comment_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1383 of file text_ops.cc.
References OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), text_comment_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_convert_whitespace | ( | wmOperatorType * | ot | ) |
Definition at line 1556 of file text_ops.cc.
References OPTYPE_UNDO, ot, RNA_def_enum(), text_convert_whitespace_exec(), text_edit_poll(), TO_SPACES, and whitespace_type_items.
Referenced by text_operatortypes().
| void TEXT_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1103 of file text_ops.cc.
References ot, text_copy_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cursor_set | ( | wmOperatorType * | ot | ) |
Definition at line 3471 of file text_ops.cc.
References ot, RNA_def_int(), text_cursor_set_exec(), text_cursor_set_invoke(), and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cut | ( | wmOperatorType * | ot | ) |
Definition at line 1144 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_cut_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2576 of file text_ops.cc.
References DEL_NEXT_CHAR, delete_type_items, OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), text_delete_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_duplicate_line | ( | wmOperatorType * | ot | ) |
Definition at line 1057 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_duplicate_line_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find | ( | wmOperatorType * | ot | ) |
Definition at line 3836 of file text_ops.cc.
References ot, text_find_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find_set_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3948 of file text_ops.cc.
References ot, text_find_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_indent | ( | wmOperatorType * | ot | ) |
Definition at line 1227 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_edit_poll(), and text_indent_exec().
Referenced by text_operatortypes().
| void TEXT_OT_indent_or_autocomplete | ( | wmOperatorType * | ot | ) |
Definition at line 1181 of file text_ops.cc.
References ot, text_edit_poll(), and text_indent_or_autocomplete_exec().
Referenced by text_operatortypes().
| void TEXT_OT_insert | ( | wmOperatorType * | ot | ) |
Definition at line 3725 of file text_ops.cc.
References OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), text_edit_poll(), text_insert_exec(), and text_insert_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_jump | ( | wmOperatorType * | ot | ) |
Definition at line 2454 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, ot, RNA_def_int(), RNA_def_property_translation_context(), text_edit_poll(), text_jump_exec(), and text_jump_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_jump_to_file_at_point | ( | wmOperatorType * | ot | ) |
Definition at line 4149 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, FILE_MAX, ot, PROP_FILEPATH, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), RNA_def_property_translation_context(), RNA_def_string(), and text_jump_to_file_at_point_exec().
Referenced by text_operatortypes().
| void TEXT_OT_line_break | ( | wmOperatorType * | ot | ) |
Definition at line 1325 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_edit_poll(), and text_line_break_exec().
Referenced by text_operatortypes().
| void TEXT_OT_line_number | ( | wmOperatorType * | ot | ) |
Definition at line 3541 of file text_ops.cc.
References ot, text_line_number_invoke(), and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_make_internal | ( | wmOperatorType * | ot | ) |
Definition at line 679 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_edit_poll(), and text_make_internal_exec().
Referenced by text_operatortypes().
| void TEXT_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 2371 of file text_ops.cc.
References LINE_BEGIN, move_type_items, ot, RNA_def_enum(), text_edit_poll(), and text_move_exec().
Referenced by text_operatortypes().
| void TEXT_OT_move_lines | ( | wmOperatorType * | ot | ) |
Definition at line 1702 of file text_ops.cc.
References move_lines_exec(), OPTYPE_UNDO, ot, RNA_def_enum(), text_edit_poll(), TXT_MOVE_LINE_DOWN, and TXT_MOVE_LINE_UP.
Referenced by text_operatortypes().
| void TEXT_OT_move_select | ( | wmOperatorType * | ot | ) |
Definition at line 2399 of file text_ops.cc.
References LINE_BEGIN, move_type_items, ot, RNA_def_enum(), text_move_select_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 379 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_new_exec(), and text_new_poll().
Referenced by text_operatortypes().
| void TEXT_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 491 of file text_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, OPTYPE_UNDO, ot, RNA_def_boolean(), text_new_poll(), text_open_cancel(), text_open_exec(), text_open_invoke(), WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_overwrite_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 2618 of file text_ops.cc.
References ot, text_space_edit_poll(), and text_toggle_overwrite_exec().
Referenced by text_operatortypes().
| void TEXT_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1009 of file text_ops.cc.
References OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), text_edit_poll(), and text_paste_exec().
Referenced by text_operatortypes().
| void TEXT_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 581 of file text_ops.cc.
References ot, text_edit_poll(), text_reload_exec(), and text_reload_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_replace | ( | wmOperatorType * | ot | ) |
Definition at line 3905 of file text_ops.cc.
References OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), text_replace_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_replace_set_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3979 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_replace_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_resolve_conflict | ( | wmOperatorType * | ot | ) |
Definition at line 4270 of file text_ops.cc.
References ot, resolution_items, RESOLVE_IGNORE, RNA_def_enum(), text_resolve_conflict_exec(), text_resolve_conflict_invoke(), and text_resolve_conflict_poll().
Referenced by text_operatortypes().
| void TEXT_OT_run_script | ( | wmOperatorType * | ot | ) |
Definition at line 944 of file text_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, text_data_poll(), and text_run_script_exec().
Referenced by text_operatortypes().
| void TEXT_OT_save | ( | wmOperatorType * | ot | ) |
Definition at line 784 of file text_ops.cc.
References ot, text_edit_poll(), text_save_exec(), and text_save_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 864 of file text_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, ot, text_edit_poll(), text_save_as_exec(), text_save_as_invoke(), WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_scroll | ( | wmOperatorType * | ot | ) |
Definition at line 2911 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_INTERNAL, ot, RNA_def_int(), RNA_def_property_translation_context(), text_scroll_cancel(), text_scroll_exec(), text_scroll_invoke(), text_scroll_modal(), and text_scroll_poll().
Referenced by text_operatortypes().
| void TEXT_OT_scroll_bar | ( | wmOperatorType * | ot | ) |
Definition at line 3021 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, OPTYPE_BLOCKING, OPTYPE_INTERNAL, ot, RNA_def_int(), RNA_def_property_translation_context(), text_region_scroll_poll(), text_scroll_bar_invoke(), text_scroll_cancel(), and text_scroll_modal().
Referenced by text_operatortypes().
| void TEXT_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1599 of file text_ops.cc.
References ot, text_edit_poll(), and text_select_all_exec().
Referenced by text_operatortypes().
| void TEXT_OT_select_line | ( | wmOperatorType * | ot | ) |
Definition at line 1631 of file text_ops.cc.
References ot, text_edit_poll(), and text_select_line_exec().
Referenced by text_operatortypes().
| void TEXT_OT_select_word | ( | wmOperatorType * | ot | ) |
Definition at line 1664 of file text_ops.cc.
References ot, text_edit_poll(), and text_select_word_exec().
Referenced by text_operatortypes().
| void TEXT_OT_selection_set | ( | wmOperatorType * | ot | ) |
Definition at line 3422 of file text_ops.cc.
References ot, text_region_edit_poll(), text_selection_set_cancel(), text_selection_set_invoke(), and text_selection_set_modal().
Referenced by text_operatortypes().
| void TEXT_OT_start_find | ( | wmOperatorType * | ot | ) |
Definition at line 109 of file text_header.cc.
References ot, text_properties_poll(), and text_text_search_exec().
Referenced by text_operatortypes().
| void TEXT_OT_to_3d_object | ( | wmOperatorType * | ot | ) |
Definition at line 4307 of file text_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), text_data_poll(), and text_to_3d_object_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unindent | ( | wmOperatorType * | ot | ) |
Definition at line 1268 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_edit_poll(), and text_unindent_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 643 of file text_ops.cc.
References OPTYPE_UNDO, ot, text_unlink_exec(), text_unlink_invoke(), and text_unlink_poll().
Referenced by text_operatortypes().
| void TEXT_OT_update_shader | ( | wmOperatorType * | ot | ) |
Definition at line 4422 of file text_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, text_update_shader_exec(), and text_update_shader_poll().
Referenced by text_operatortypes().
| void text_pop_suggest_list | ( | ) |
Definition at line 104 of file text_autocomplete.cc.
References i, SuggItem::next, SUGG_LIST_SIZE, texttool_suggest_first(), texttool_suggest_selected(), texttool_suggest_top(), and top.
Referenced by draw_suggestion_list(), and text_autocomplete_modal().
| bool text_space_edit_poll | ( | bContext * | C | ) |
Definition at line 279 of file text_ops.cc.
References BKE_id_is_editable(), C, CTX_data_edit_text(), CTX_data_main(), CTX_wm_space_text(), and Text::id.
Referenced by TEXT_OT_autocomplete(), TEXT_OT_find(), TEXT_OT_find_set_selected(), TEXT_OT_move_select(), TEXT_OT_overwrite_toggle(), TEXT_OT_replace(), and TEXT_OT_replace_set_selected().
| void text_update_edited | ( | Text * | text | ) |
Definition at line 334 of file text_ops.cc.
References Text::lines, LISTBASE_FOREACH, and text_update_line_edited().
Referenced by text_comment_exec(), text_convert_whitespace_exec(), text_indent_exec(), text_paste_exec(), text_reload_exec(), and text_unindent_exec().
| void text_update_line_edited | ( | TextLine * | line | ) |
Definition at line 324 of file text_ops.cc.
References TextLine::format, and MEM_SAFE_FREE.
Referenced by text_autocomplete_invoke(), text_autocomplete_modal(), text_delete_exec(), text_insert_exec(), text_insert_invoke(), text_line_break_exec(), and text_update_edited().
| const char* text_context_dir[] |
Definition at line 181 of file text_intern.hh.