diff options
Diffstat (limited to 'src/Graphics.h')
| -rw-r--r-- | src/Graphics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Graphics.h b/src/Graphics.h index ef72bf0..8c019e1 100644 --- a/src/Graphics.h +++ b/src/Graphics.h @@ -122,6 +122,8 @@ public: static pixel *render_packed_rgb(void *image, int width, int height, int cmp_size); //Font/text metrics + static int CharIndexAtPosition(char *s, int positionX, int positionY); + static int PositionAtCharIndex(char *s, int charIndex, int & positionX, int & positionY); static int textnwidth(char *s, int n); static void textnpos(char *s, int n, int w, int *cx, int *cy); static int textwidthx(char *s, int w); |
