From: Rodrigo H. <kw...@us...> - 2004-05-29 18:05:40
|
Update of /cvsroot/aedgui/aedGUI/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12074/include Modified Files: aedFont.h Log Message: Fixed aedTextBox text scrolling past its width and caret rendering algo Index: aedFont.h =================================================================== RCS file: /cvsroot/aedgui/aedGUI/include/aedFont.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** aedFont.h 22 May 2004 19:28:08 -0000 1.15 --- aedFont.h 29 May 2004 18:05:28 -0000 1.16 *************** *** 164,167 **** --- 164,180 ---- DLLEXPORT #endif + /*! getIndexToFirstChar + returns the index to the first character from "str" that would be rendered into "s" if the whole string was rendered at x + \param s [in] Surface where the text would be blit to + \param x [in/out] X position for the blit, upon return it holds the X offset needed for the string to be rendered + \param str text to check for + \return Returns the index to the first character from "str" that would be rendered into "s" if the whole string was rendered at x, returns -1 if no text at all is rendered. + \sa aedFont::renderTextSolid,aedFont::renderTextBlended,aedFont::renderTextShaded + */ + int getIndexToFirstChar(SDL_Surface * s, Sint16& x,const char *str); + + #ifndef _MSC_VER + DLLEXPORT + #endif /*! getCharXOffset returns the Y offset the character at position "index" would be rendered on the string "str". |