diff options
author | Martin Felke <martin.felke@googlemail.com> | 2015-01-07 17:14:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-07 17:22:11 +0300 |
commit | e0e9cd0163a62e74d9837becad4e9097228ce60e (patch) | |
tree | 9113d0789883de7673d81ee63cdf20b212b13bf3 /source/blender/editors/include/ED_text.h | |
parent | 14f2597d7e518be552020875e52c5d6804b48a1e (diff) |
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.
Diffstat (limited to 'source/blender/editors/include/ED_text.h')
-rw-r--r-- | source/blender/editors/include/ED_text.h | 3 |
1 files changed, 3 insertions, 0 deletions
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__ */ |