diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-08-24 17:30:35 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-08-24 17:30:35 +0400 |
commit | bf0803c0c24a3db25b60b1114b30a08ee45d9d1f (patch) | |
tree | 236ab5bb04a3396037c87bf3715415bc12a77ca2 /source/blender/blenkernel/BKE_text.h | |
parent | d6a9f7f4850defeb13c994caecc6776adb782f08 (diff) |
Added better grouping for text markers with a separate group field (instead of using flags). The lower two bytes of the group are used for python scripts while the upper two (or more) are reserved for internal grouping. Plenty either way.
Diffstat (limited to 'source/blender/blenkernel/BKE_text.h')
-rw-r--r-- | source/blender/blenkernel/BKE_text.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h index a80f3cec6c1..bc687cba950 100644 --- a/source/blender/blenkernel/BKE_text.h +++ b/source/blender/blenkernel/BKE_text.h @@ -101,11 +101,11 @@ void convert_tabs (struct SpaceText *st, int tab); void txt_copy_clipboard (struct Text *text); void txt_paste_clipboard (struct Text *text); -void txt_add_marker (struct Text *text, struct TextLine *line, int start, int end, char clr[4], int flags); -short txt_clear_marker_region (struct Text *text, struct TextLine *line, int start, int end, int flags); -short txt_clear_markers (struct Text *text, int flags); -struct TextMarker *txt_find_marker (struct Text *text, struct TextLine *line, int curs, int flags); -struct TextMarker *txt_find_marker_region (struct Text *text, struct TextLine *line, int start, int end, int flags); +void txt_add_marker (struct Text *text, struct TextLine *line, int start, int end, char clr[4], int group, int flags); +short txt_clear_marker_region (struct Text *text, struct TextLine *line, int start, int end, int group, int flags); +short txt_clear_markers (struct Text *text, int group, int flags); +struct TextMarker *txt_find_marker (struct Text *text, struct TextLine *line, int curs, int group, int flags); +struct TextMarker *txt_find_marker_region (struct Text *text, struct TextLine *line, int start, int end, int group, int flags); struct TextMarker *txt_prev_marker (struct Text *text, struct TextMarker *marker); struct TextMarker *txt_next_marker (struct Text *text, struct TextMarker *marker); struct TextMarker *txt_prev_marker_color (struct Text *text, struct TextMarker *marker); |