|
Blender
V2.93
|
Go to the source code of this file.
Macros | |
| #define | TXT_NUMCOL_PAD 1.0f |
| #define | TXT_NUMCOL_WIDTH(st) ((st)->runtime.cwidth_px * ((st)->runtime.line_number_display_digits + (2 * TXT_NUMCOL_PAD))) |
| #define | TXT_BODY_LPAD 1.0f |
| #define | TXT_BODY_LEFT(st) ((st)->showlinenrs ? TXT_NUMCOL_WIDTH(st) : 0) + (TXT_BODY_LPAD * (st)->runtime.cwidth_px) |
| #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) ((int)(TXT_LINE_VPAD * st->runtime.lheight_px)) |
| #define | TXT_LINE_HEIGHT(st) ((int)((1.0f + TXT_LINE_VPAD) * st->runtime.lheight_px)) |
| #define | SUGG_LIST_SIZE 7 |
| #define | SUGG_LIST_WIDTH 20 |
| #define | DOC_WIDTH 40 |
| #define | DOC_HEIGHT 10 |
| #define | TOOL_SUGG_LIST 0x01 |
| #define | TOOL_DOCUMENT 0x02 |
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 DOC_HEIGHT 10 |
Definition at line 70 of file text_intern.h.
| #define DOC_WIDTH 40 |
Definition at line 69 of file text_intern.h.
| #define SUGG_LIST_SIZE 7 |
Definition at line 67 of file text_intern.h.
| #define SUGG_LIST_WIDTH 20 |
Definition at line 68 of file text_intern.h.
| #define TOOL_DOCUMENT 0x02 |
Definition at line 73 of file text_intern.h.
| #define TOOL_SUGG_LIST 0x01 |
Definition at line 72 of file text_intern.h.
| #define TXT_BODY_LEFT | ( | st | ) | ((st)->showlinenrs ? TXT_NUMCOL_WIDTH(st) : 0) + (TXT_BODY_LPAD * (st)->runtime.cwidth_px) |
Definition at line 54 of file text_intern.h.
| #define TXT_BODY_LPAD 1.0f |
Definition at line 52 of file text_intern.h.
| #define TXT_LINE_HEIGHT | ( | st | ) | ((int)((1.0f + TXT_LINE_VPAD) * st->runtime.lheight_px)) |
Definition at line 65 of file text_intern.h.
| #define TXT_LINE_SPACING | ( | st | ) | ((int)(TXT_LINE_VPAD * st->runtime.lheight_px)) |
Definition at line 63 of file text_intern.h.
| #define TXT_LINE_VPAD 0.3f |
Definition at line 61 of file text_intern.h.
| #define TXT_NUMCOL_PAD 1.0f |
Definition at line 46 of file text_intern.h.
| #define TXT_NUMCOL_WIDTH | ( | st | ) | ((st)->runtime.cwidth_px * ((st)->runtime.line_number_display_digits + (2 * TXT_NUMCOL_PAD))) |
Definition at line 48 of file text_intern.h.
| #define TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit)) |
Definition at line 58 of file text_intern.h.
| #define TXT_SCROLL_WIDTH U.widget_unit |
Definition at line 57 of file text_intern.h.
| 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 104 of file text_intern.h.
| anonymous enum |
| Enumerator | |
|---|---|
| DEL_NEXT_CHAR | |
| DEL_PREV_CHAR | |
| DEL_NEXT_WORD | |
| DEL_PREV_WORD | |
Definition at line 118 of file text_intern.h.
Referenced by text_main_region_draw().
Definition at line 52 of file text_autocomplete.c.
References Text::curc, Text::curl, SpaceText_Runtime::cwidth_px, l, SpaceText::left, SuggItem::next, TextLine::prev, SpaceText::runtime, SUGG_LIST_SIZE, SUGG_LIST_WIDTH, SpaceText::text, text_update_character_width(), texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_select(), texttool_suggest_top(), texttool_text_is_active(), top, SpaceText::top, TXT_BODY_LEFT, TXT_LINE_HEIGHT, w(), ARegion::winy, x, and y.
Referenced by text_autocomplete_modal().
| void text_drawcache_tag_update | ( | struct SpaceText * | st, |
| int | full | ||
| ) |
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 text_free_caches | ( | struct SpaceText * | st | ) |
Referenced by text_free().
| int text_get_char_pos | ( | const struct SpaceText * | st, |
| const char * | line, | ||
| int | cur | ||
| ) |
Referenced by cursor_skip_find_line(), txt_wrap_move_down(), and txt_wrap_move_up().
| int text_get_span_wrap | ( | const struct SpaceText * | st, |
| struct ARegion * | region, | ||
| struct TextLine * | from, | ||
| struct TextLine * | to | ||
| ) |
Referenced by text_scroll_state_init(), and txt_screen_clamp().
| int text_get_visible_lines | ( | const struct SpaceText * | st, |
| struct ARegion * | region, | ||
| const char * | str | ||
| ) |
Referenced by cursor_skip_find_line(), get_line_pos_wrapped(), txt_wrap_move_down(), and txt_wrap_move_up().
| void TEXT_OT_autocomplete | ( | struct wmOperatorType * | ot | ) |
Definition at line 618 of file text_autocomplete.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, wmOperatorType::poll, text_autocomplete_cancel(), text_autocomplete_invoke(), text_autocomplete_modal(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_comment_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 1301 of file text_ops.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, text_comment_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_convert_whitespace | ( | struct wmOperatorType * | ot | ) |
Definition at line 1459 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_convert_whitespace_exec(), text_edit_poll(), TO_SPACES, and whitespace_type_items.
Referenced by text_operatortypes().
| void TEXT_OT_copy | ( | struct wmOperatorType * | ot | ) |
Definition at line 1028 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_copy_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cursor_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 3343 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, text_cursor_set_exec(), text_cursor_set_invoke(), and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cut | ( | struct wmOperatorType * | ot | ) |
Definition at line 1068 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_cut_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 2447 of file text_ops.c.
References DEL_NEXT_CHAR, delete_type_items, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, text_delete_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_duplicate_line | ( | struct wmOperatorType * | ot | ) |
Definition at line 982 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_duplicate_line_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find | ( | struct wmOperatorType * | ot | ) |
Definition at line 3618 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_find_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find_set_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 3730 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_find_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_indent | ( | struct wmOperatorType * | ot | ) |
Definition at line 1148 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_edit_poll(), and text_indent_exec().
Referenced by text_operatortypes().
| void TEXT_OT_indent_or_autocomplete | ( | struct wmOperatorType * | ot | ) |
Definition at line 1103 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), and text_indent_or_autocomplete_exec().
Referenced by text_operatortypes().
| void TEXT_OT_insert | ( | struct wmOperatorType * | ot | ) |
Definition at line 3509 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, text_edit_poll(), text_insert_exec(), and text_insert_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_jump | ( | struct wmOperatorType * | ot | ) |
Definition at line 2335 of file text_ops.c.
References BLT_I18NCONTEXT_ID_TEXT, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), RNA_def_property_translation_context(), wmOperatorType::srna, text_edit_poll(), text_jump_exec(), and text_jump_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_line_break | ( | struct wmOperatorType * | ot | ) |
Definition at line 1245 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_edit_poll(), and text_line_break_exec().
Referenced by text_operatortypes().
| void TEXT_OT_line_number | ( | struct wmOperatorType * | ot | ) |
Definition at line 3409 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, text_line_number_invoke(), and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_make_internal | ( | struct wmOperatorType * | ot | ) |
Definition at line 558 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_edit_poll(), and text_make_internal_exec().
Referenced by text_operatortypes().
| void TEXT_OT_move | ( | struct wmOperatorType * | ot | ) |
Definition at line 2254 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_type_items, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), and text_move_exec().
Referenced by text_operatortypes().
| void TEXT_OT_move_lines | ( | struct wmOperatorType * | ot | ) |
Definition at line 1601 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, move_lines_exec(), wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), TXT_MOVE_LINE_DOWN, and TXT_MOVE_LINE_UP.
Referenced by text_operatortypes().
| void TEXT_OT_move_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 2282 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_type_items, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_move_select_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_new | ( | struct wmOperatorType * | ot | ) |
Definition at line 292 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_new_exec(), and text_new_poll().
Referenced by text_operatortypes().
| void TEXT_OT_open | ( | struct wmOperatorType * | ot | ) |
Definition at line 392 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_new_poll(), text_open_cancel(), text_open_exec(), text_open_invoke(), WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_overwrite_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 2489 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_space_edit_poll(), and text_toggle_overwrite_exec().
Referenced by text_operatortypes().
| void TEXT_OT_paste | ( | struct wmOperatorType * | ot | ) |
Definition at line 936 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_edit_poll(), and text_paste_exec().
Referenced by text_operatortypes().
| void TEXT_OT_refresh_pyconstraints | ( | struct wmOperatorType * | ot | ) |
Definition at line 878 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), and text_refresh_pyconstraints_exec().
Referenced by text_operatortypes().
| void TEXT_OT_reload | ( | struct wmOperatorType * | ot | ) |
Definition at line 471 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), text_reload_exec(), and WM_operator_confirm().
Referenced by text_operatortypes().
| void TEXT_OT_replace | ( | struct wmOperatorType * | ot | ) |
Definition at line 3687 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, text_replace_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_replace_set_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 3761 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_replace_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_resolve_conflict | ( | struct wmOperatorType * | ot | ) |
Definition at line 3883 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, resolution_items, RESOLVE_IGNORE, RNA_def_enum(), wmOperatorType::srna, text_resolve_conflict_exec(), text_resolve_conflict_invoke(), and text_resolve_conflict_poll().
Referenced by text_operatortypes().
| void TEXT_OT_run_script | ( | struct wmOperatorType * | ot | ) |
Definition at line 810 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, text_data_poll(), and text_run_script_exec().
Referenced by text_operatortypes().
| void TEXT_OT_save | ( | struct wmOperatorType * | ot | ) |
Definition at line 658 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), text_save_exec(), and text_save_invoke().
Referenced by text_operatortypes().
| void TEXT_OT_save_as | ( | struct wmOperatorType * | ot | ) |
Definition at line 729 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 2780 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_INTERNAL, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 2887 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, text_region_scroll_poll(), text_scroll_bar_invoke(), text_scroll_cancel(), and text_scroll_modal().
Referenced by text_operatortypes().
| void TEXT_OT_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 1500 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), and text_select_all_exec().
Referenced by text_operatortypes().
| void TEXT_OT_select_line | ( | struct wmOperatorType * | ot | ) |
Definition at line 1530 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), and text_select_line_exec().
Referenced by text_operatortypes().
| void TEXT_OT_select_word | ( | struct wmOperatorType * | ot | ) |
Definition at line 1563 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_edit_poll(), and text_select_word_exec().
Referenced by text_operatortypes().
| void TEXT_OT_selection_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 3294 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 100 of file text_header.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, text_properties_poll(), and text_text_search_exec().
Referenced by text_operatortypes().
| void TEXT_OT_to_3d_object | ( | struct wmOperatorType * | ot | ) |
Definition at line 3920 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_data_poll(), and text_to_3d_object_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unindent | ( | struct wmOperatorType * | ot | ) |
Definition at line 1188 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_edit_poll(), and text_unindent_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unlink | ( | struct wmOperatorType * | ot | ) |
Definition at line 522 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, text_unlink_exec(), text_unlink_poll(), and WM_operator_confirm().
Referenced by text_operatortypes().
| void text_pop_suggest_list | ( | void | ) |
Definition at line 116 of file text_autocomplete.c.
References SuggItem::next, SUGG_LIST_SIZE, texttool_suggest_first(), texttool_suggest_selected(), texttool_suggest_top(), and top.
Referenced by text_autocomplete_modal().
| void text_scroll_to_cursor__area | ( | struct SpaceText * | st, |
| struct ScrArea * | area, | ||
| const bool | center | ||
| ) |
| bool text_space_edit_poll | ( | struct bContext * | C | ) |
Definition at line 187 of file text_ops.c.
References C, CTX_data_edit_text(), CTX_wm_space_text(), and ID_IS_LINKED.
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_character_width | ( | struct SpaceText * | st | ) |
| void text_update_cursor_moved | ( | struct bContext * | C | ) |
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 text_update_edited | ( | struct Text * | text | ) |
Definition at line 245 of file text_ops.c.
References ListBase::first, Text::lines, TextLine::next, 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 | ( | struct TextLine * | line | ) |
Definition at line 232 of file text_ops.c.
References TextLine::format, MEM_freeN, and NULL.
Referenced by text_autocomplete_invoke(), text_autocomplete_modal(), text_delete_exec(), text_insert_exec(), text_line_break_exec(), and text_update_edited().
| void wrap_offset | ( | const struct SpaceText * | st, |
| struct ARegion * | region, | ||
| struct TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc | ||
| ) |
| void wrap_offset_in_line | ( | const struct SpaceText * | st, |
| struct ARegion * | region, | ||
| struct TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc | ||
| ) |
Referenced by cursor_skip_find_line(), txt_wrap_move_down(), and txt_wrap_move_up().
|
extern |
Definition at line 235 of file space_text.c.
Referenced by text_context().