diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-26 19:57:10 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-26 19:57:10 (GMT) |
| commit | ab6fed71d74371e2d38372eae71ee26a7ef214df (patch) | |
| tree | 4f139ad5501bb66dcc9c4770d1ceb7be6e159284 /src/Graphics.h | |
| parent | e26cb8ce2f69b81442194bd2310cfc3ea6bb6f5f (diff) | |
| download | powder-ab6fed71d74371e2d38372eae71ee26a7ef214df.zip powder-ab6fed71d74371e2d38372eae71ee26a7ef214df.tar.gz | |
Replace textblock with new multiline label - with text selection!!!!111!!!one!!
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); |
