38#define TXT_NUMCOL_PAD 1.0f
40#define TXT_NUMCOL_WIDTH(st) \
41 ((st)->runtime->cwidth_px * ((st)->runtime->line_number_display_digits + (2 * TXT_NUMCOL_PAD)))
44#define TXT_BODY_LPAD 1.0f
46#define TXT_BODY_LEFT(st) \
47 ((st)->showlinenrs ? TXT_NUMCOL_WIDTH(st) : 0) + (TXT_BODY_LPAD * (st)->runtime->cwidth_px)
49#define TXT_SCROLL_WIDTH U.widget_unit
50#define TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit))
53#define TXT_LINE_VPAD 0.3f
55#define TXT_LINE_SPACING(st) ((int)(TXT_LINE_VPAD * st->runtime->lheight_px))
57#define TXT_LINE_HEIGHT(st) ((int)((1.0f + TXT_LINE_VPAD) * st->runtime->lheight_px))
59#define SUGG_LIST_SIZE 7
60#define SUGG_LIST_WIDTH 20
62#define TOOL_SUGG_LIST 0x01
rcti scroll_region_select
int line_number_display_digits
rcti scroll_region_handle
void TEXT_OT_replace_set_selected(wmOperatorType *ot)
void space_text_drawcache_tag_update(SpaceText *st, bool full)
const char * text_context_dir[]
void TEXT_OT_unlink(wmOperatorType *ot)
void TEXT_OT_autocomplete(wmOperatorType *ot)
void TEXT_OT_overwrite_toggle(wmOperatorType *ot)
int space_text_wrap_width(const SpaceText *st, const ARegion *region)
void TEXT_OT_reload(wmOperatorType *ot)
void TEXT_OT_open(wmOperatorType *ot)
void text_update_edited(Text *text)
void TEXT_OT_replace(wmOperatorType *ot)
void TEXT_OT_run_script(wmOperatorType *ot)
void space_text_free_caches(SpaceText *st)
void TEXT_OT_copy(wmOperatorType *ot)
void TEXT_OT_select_line(wmOperatorType *ot)
void draw_text_main(SpaceText *st, ARegion *region)
void TEXT_OT_new(wmOperatorType *ot)
void TEXT_OT_indent_or_autocomplete(wmOperatorType *ot)
void TEXT_OT_scroll(wmOperatorType *ot)
void TEXT_OT_line_break(wmOperatorType *ot)
void TEXT_OT_save_as(wmOperatorType *ot)
void TEXT_OT_paste(wmOperatorType *ot)
void space_text_update_cursor_moved(bContext *C)
void space_text_wrap_offset(const SpaceText *st, const ARegion *region, TextLine *linein, int cursin, int *offl, int *offc)
void TEXT_OT_start_find(wmOperatorType *ot)
void TEXT_OT_make_internal(wmOperatorType *ot)
void TEXT_OT_to_3d_object(wmOperatorType *ot)
void TEXT_OT_indent(wmOperatorType *ot)
bool text_space_edit_poll(bContext *C)
void space_text_update_character_width(SpaceText *st)
void TEXT_OT_select_all(wmOperatorType *ot)
void TEXT_OT_select_word(wmOperatorType *ot)
void TEXT_OT_save(wmOperatorType *ot)
int space_text_get_visible_lines(const SpaceText *st, const ARegion *region, const char *str)
void space_text_wrap_offset_in_line(const SpaceText *st, const ARegion *region, TextLine *linein, int cursin, int *offl, int *offc)
void TEXT_OT_move_lines(wmOperatorType *ot)
void TEXT_OT_cursor_set(wmOperatorType *ot)
void TEXT_OT_scroll_bar(wmOperatorType *ot)
void TEXT_OT_find(wmOperatorType *ot)
void TEXT_OT_duplicate_line(wmOperatorType *ot)
void TEXT_OT_move_select(wmOperatorType *ot)
void TEXT_OT_jump(wmOperatorType *ot)
void TEXT_OT_delete(wmOperatorType *ot)
void space_text_scroll_to_cursor_with_area(SpaceText *st, ScrArea *area, bool center)
void TEXT_OT_selection_set(wmOperatorType *ot)
void TEXT_OT_find_set_selected(wmOperatorType *ot)
int space_text_get_span_wrap(const SpaceText *st, const ARegion *region, const TextLine *from, const TextLine *to)
void TEXT_OT_unindent(wmOperatorType *ot)
void TEXT_OT_insert(wmOperatorType *ot)
int space_text_get_total_lines(SpaceText *st, const ARegion *region)
void TEXT_OT_comment_toggle(wmOperatorType *ot)
void TEXT_OT_jump_to_file_at_point(wmOperatorType *ot)
void text_pop_suggest_list()
void TEXT_OT_resolve_conflict(wmOperatorType *ot)
void TEXT_OT_move(wmOperatorType *ot)
void TEXT_OT_line_number(wmOperatorType *ot)
void text_update_line_edited(TextLine *line)
void TEXT_OT_convert_whitespace(wmOperatorType *ot)
bool space_text_do_suggest_select(SpaceText *st, const ARegion *region, const int mval[2])
int space_text_get_char_pos(const SpaceText *st, const char *line, int cur)
void TEXT_OT_cut(wmOperatorType *ot)
void TEXT_OT_refresh_pyconstraints(wmOperatorType *ot)