Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_text/text_intern.h
| Show All 33 Lines | |||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| /* text_draw.c */ | /* text_draw.c */ | ||||
| void draw_text_main(struct SpaceText *st, struct ARegion *region); | void draw_text_main(struct SpaceText *st, struct ARegion *region); | ||||
| void text_update_line_edited(struct TextLine *line); | void text_update_line_edited(struct TextLine *line); | ||||
| void text_update_edited(struct Text *text); | void text_update_edited(struct Text *text); | ||||
| void text_update_character_width(struct SpaceText *st); | void text_update_character_width(struct SpaceText *st); | ||||
| void text_scroll_to_cursor(struct SpaceText *st, struct ARegion *region, const bool center); | |||||
| void text_scroll_to_cursor__area(struct SpaceText *st, struct ScrArea *area, const bool center); | void text_scroll_to_cursor__area(struct SpaceText *st, struct ScrArea *area, const bool center); | ||||
| void text_update_cursor_moved(struct bContext *C); | void text_update_cursor_moved(struct bContext *C); | ||||
| /* Padding around line numbers in character widths. */ | /* Padding around line numbers in character widths. */ | ||||
| #define TXT_NUMCOL_PAD 1.0f | #define TXT_NUMCOL_PAD 1.0f | ||||
| /* Total width of the optional line numbers column. */ | /* Total width of the optional line numbers column. */ | ||||
| #define TXT_NUMCOL_WIDTH(st) \ | #define TXT_NUMCOL_WIDTH(st) \ | ||||
| ((st)->runtime.cwidth_px * ((st)->runtime.line_number_display_digits + (2 * TXT_NUMCOL_PAD))) | ((st)->runtime.cwidth_px * ((st)->runtime.line_number_display_digits + (2 * TXT_NUMCOL_PAD))) | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||