From fbc395828b2f9de1759bc3bb3094d6ee86bd9917 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sat, 9 Jun 2012 18:06:33 +0000 Subject: Update documentation for painter::drawText git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6179 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/KvsObject_painter.cpp | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'src/modules/objects/KvsObject_painter.cpp') diff --git a/src/modules/objects/KvsObject_painter.cpp b/src/modules/objects/KvsObject_painter.cpp index 284eb87f8..05bb5ed30 100644 --- a/src/modules/objects/KvsObject_painter.cpp +++ b/src/modules/objects/KvsObject_painter.cpp @@ -280,14 +280,22 @@ const char * const brushstyles_tbl[] = { !fn: $drawChord(,,,,,) Draws a chord defined by the rectangle (x, y, w, h), the start angle a and the arc length alen.[br] The angles and are 1/16th of a degree, i.e. a full circle equals 5760 (16*360). - !fn: $drawText(,,,[,]) - Draws the given at position , .[br] - If is -1 (the default) all the text is drawn, otherwise the first characters are drawn. - The text's direction is given by , valid flag are:[br] + !fn: $drawText(,,,,[,[,[,...]]]) + Draws the given within the rectangle specified by , and .[br] + The parameters may be:[br] [pre] - Auto [br] - RTL (right to left) [br] - LTR (left to right) [br] + Left[br] + Top[br] + Right[br] + Bottom[br] + HCenter[br] + VCenter[br] + Center[br] + TextSingleLine[br] + TextExpandTabs[br] + TextShowMnemonic[br] + TextWordWrap[br] + TextIncludeTrailingSpaces[br] [/pre] !fn: $drawPixmap(,,,,,,) Draws a pixmap at x,y coordinates[br] @@ -1265,6 +1273,7 @@ KVSO_CLASS_FUNCTION(painter,beginPdf) m_pPainter->begin(m_pPrinter); return true; } + KVSO_CLASS_FUNCTION(painter,drawText) { CHECK_INTERNAL_POINTER(m_pPainter) -- cgit v1.3.1-10-gc9f91