correct cursor movement after typing

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@110 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-11 00:15:23 +00:00
parent 0a69db594e
commit 725d3a536f
4 changed files with 26 additions and 11 deletions
+3 -1
View File
@@ -47,10 +47,12 @@ class TextViewer {
/** The drawing information is cached,
* before calling draw again with different text/style reset() should be called
*/
void draw(RotatedDC& dc, const String& text, const TextStyle& style, Context&, DrawWhat);
void draw(RotatedDC& dc, const TextStyle& style, DrawWhat what);
/// Draw an indicator for selected text
void drawSelection(RotatedDC& dc, const TextStyle& style, size_t sel_start, size_t sel_end);
/// Prepare the text for drawing, if it is not already prepared
void prepare(RotatedDC& dc, const String& text, const TextStyle& style, Context&);
/// Reset the cached data, at a new call to draw it will be recalculated
void reset();