From 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Dec 2021 00:55:11 +1100 Subject: Cleanup: move public doc-strings into headers for 'editors' Ref T92709 --- source/blender/editors/space_text/text_intern.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/editors/space_text/text_intern.h') diff --git a/source/blender/editors/space_text/text_intern.h b/source/blender/editors/space_text/text_intern.h index 241e0133a8a..3cae4188932 100644 --- a/source/blender/editors/space_text/text_intern.h +++ b/source/blender/editors/space_text/text_intern.h @@ -39,6 +39,9 @@ void draw_text_main(struct SpaceText *st, struct ARegion *region); void text_update_line_edited(struct TextLine *line); void text_update_edited(struct Text *text); void text_update_character_width(struct SpaceText *st); +/** + * Takes an area instead of a region, use for listeners. + */ void text_scroll_to_cursor__area(struct SpaceText *st, struct ScrArea *area, const bool center); void text_update_cursor_moved(struct bContext *C); @@ -73,12 +76,18 @@ void text_update_cursor_moved(struct bContext *C); #define TOOL_DOCUMENT 0x02 int wrap_width(const struct SpaceText *st, struct ARegion *region); +/** + * Sets (offl, offc) for transforming (line, curs) to its wrapped position. + */ void wrap_offset(const struct SpaceText *st, struct ARegion *region, struct TextLine *linein, int cursin, int *offl, int *offc); +/** + * cursin - mem, offc - view. + */ void wrap_offset_in_line(const struct SpaceText *st, struct ARegion *region, struct TextLine *linein, -- cgit v1.2.3