From e0e9cd0163a62e74d9837becad4e9097228ce60e Mon Sep 17 00:00:00 2001 From: Martin Felke Date: Thu, 8 Jan 2015 01:14:07 +1100 Subject: PyAPI: Call to get the pixel x,y in a text block This allows scripts to request the screen location of any (line, column) pair. --- source/blender/editors/include/ED_text.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/include/ED_text.h') diff --git a/source/blender/editors/include/ED_text.h b/source/blender/editors/include/ED_text.h index 9a36cb3d6ab..5df7d9cfaef 100644 --- a/source/blender/editors/include/ED_text.h +++ b/source/blender/editors/include/ED_text.h @@ -31,8 +31,11 @@ #define __ED_TEXT_H__ struct bContext; +struct SpaceText; +struct ARegion; void ED_text_undo_step(struct bContext *C, int step); +bool ED_text_region_location_from_cursor(struct SpaceText *st, struct ARegion *ar, const int cursor_co[2], int r_pixel_co[2]); #endif /* __ED_TEXT_H__ */ -- cgit v1.2.3