Blender
V3.3
|
Go to the source code of this file.
Functions | |
bool | ED_text_activate_in_screen (struct bContext *C, struct Text *text) |
void | ED_text_scroll_to_cursor (struct SpaceText *st, struct ARegion *region, bool center) |
bool | ED_text_region_location_from_cursor (struct SpaceText *st, struct ARegion *region, const int cursor_co[2], int r_pixel_co[2]) |
void | ED_text_undosys_type (struct UndoType *ut) |
struct UndoStep * | ED_text_undo_push_init (struct bContext *C) |
bool | ED_text_is_syntax_highlight_supported (struct Text *text) |
Referenced by tree_element_text_activate().
Definition at line 202 of file text_format.c.
References BLI_path_extension(), BLI_strcasecmp(), BLI_string_is_decimal(), TextFormatType::ext, ListBase::first, Text::id, ID::name, TextFormatType::next, NULL, and tft_lb.
Referenced by text_draw_context_init().
bool ED_text_region_location_from_cursor | ( | struct SpaceText * | st, |
struct ARegion * | region, | ||
const int | cursor_co[2], | ||
int | r_pixel_co[2] | ||
) |
Takes a cursor (row, character) and returns x,y pixel coords.
Moves the view to the cursor location, also used to make sure the view isn't outside the file.
Referenced by text_cursor_set_apply().
Use operator system to finish the undo step.
Definition at line 263 of file text_undo.c.
References BKE_undosys_step_push_init_with_type(), BKE_UNDOSYS_TYPE_TEXT, C, CTX_data_main(), ED_undo_stack_get(), ListBase::first, NULL, wmWindowManager::op_undo_depth, and Main::wm.
Referenced by move_lines_exec(), text_autocomplete_invoke(), text_autocomplete_modal(), text_comment_exec(), text_cut_exec(), text_delete_exec(), text_duplicate_line_exec(), text_find_and_replace(), text_indent_exec(), text_insert_exec(), text_line_break_exec(), text_paste_exec(), text_replace_all(), and text_unindent_exec().
Export for ED_undo_sys.
Definition at line 241 of file text_undo.c.
References UndoType::flags, UndoType::name, UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_encode_init, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, text_undosys_foreach_ID_ref(), text_undosys_poll(), text_undosys_step_decode(), text_undosys_step_encode(), text_undosys_step_encode_init(), text_undosys_step_free(), UNDOTYPE_FLAG_DECODE_ACTIVE_STEP, and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by ED_undosys_type_init().