Blender
V3.3
|
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 58 of file text_intern.h.
#define DOC_WIDTH 40 |
Definition at line 57 of file text_intern.h.
#define SUGG_LIST_SIZE 7 |
Definition at line 55 of file text_intern.h.
#define SUGG_LIST_WIDTH 20 |
Definition at line 56 of file text_intern.h.
#define TOOL_DOCUMENT 0x02 |
Definition at line 61 of file text_intern.h.
#define TOOL_SUGG_LIST 0x01 |
Definition at line 60 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 42 of file text_intern.h.
#define TXT_BODY_LPAD 1.0f |
Definition at line 40 of file text_intern.h.
#define TXT_LINE_HEIGHT | ( | st | ) | ((int)((1.0f + TXT_LINE_VPAD) * st->runtime.lheight_px)) |
Definition at line 53 of file text_intern.h.
#define TXT_LINE_SPACING | ( | st | ) | ((int)(TXT_LINE_VPAD * st->runtime.lheight_px)) |
Definition at line 51 of file text_intern.h.
#define TXT_LINE_VPAD 0.3f |
Definition at line 49 of file text_intern.h.
#define TXT_NUMCOL_PAD 1.0f |
Definition at line 34 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 36 of file text_intern.h.
#define TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit)) |
Definition at line 46 of file text_intern.h.
#define TXT_SCROLL_WIDTH U.widget_unit |
Definition at line 45 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 99 of file text_intern.h.
anonymous enum |
Enumerator | |
---|---|
DEL_NEXT_CHAR | |
DEL_PREV_CHAR | |
DEL_NEXT_WORD | |
DEL_PREV_WORD |
Definition at line 113 of file text_intern.h.
Referenced by text_main_region_draw().
Definition at line 38 of file text_autocomplete.c.
References l, SuggItem::next, TextLine::prev, usdtokens::st(), SUGG_LIST_SIZE, SUGG_LIST_WIDTH, text_update_character_width(), texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_select(), texttool_suggest_top(), texttool_text_is_active(), top, TXT_BODY_LEFT, TXT_LINE_HEIGHT, w(), ARegion::winy, x, and y.
Referenced by text_autocomplete_modal().
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().
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 604 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 1307 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 1465 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 1034 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 3354 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 1074 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 2463 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 988 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 3637 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 3749 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 1154 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 1109 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 3528 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 2341 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 1251 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 3421 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 566 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 2260 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 1607 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 2288 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 300 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 400 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 2505 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 942 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 884 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 479 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 3706 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 3780 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 3902 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 816 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 666 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 737 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 2793 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 2899 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 1506 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 1536 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 1569 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 3305 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 84 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 3939 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 1194 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 530 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().
Definition at line 102 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().
Takes an area instead of a region, use for listeners.
Definition at line 198 of file text_ops.c.
References BKE_id_is_editable(), C, CTX_data_edit_text(), CTX_data_main(), CTX_wm_space_text(), Text::id, and usdtokens::st().
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().
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().
Definition at line 253 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().
Definition at line 243 of file text_ops.c.
References TextLine::format, and MEM_SAFE_FREE.
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 | ||
) |
Sets (offl, offc) for transforming (line, curs) to its wrapped position.
void wrap_offset_in_line | ( | const struct SpaceText * | st, |
struct ARegion * | region, | ||
struct TextLine * | linein, | ||
int | cursin, | ||
int * | offl, | ||
int * | offc | ||
) |
cursin - mem, offc - view.
Referenced by cursor_skip_find_line(), txt_wrap_move_down(), and txt_wrap_move_up().
|
extern |
Definition at line 221 of file space_text.c.
Referenced by bpy_context_members(), and text_context().