diff options
author | Ronan Collobert <ronan@collobert.com> | 2012-07-04 11:45:50 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2012-07-04 11:45:50 +0400 |
commit | bc9336278731352ab80418d4fbf7c7f8454d455b (patch) | |
tree | 72ff773b30f675be082c24cfc7bff79c955581f2 | |
parent | 5a3466c106224c8ec38ee51849b6420b9713c9f5 (diff) |
correct some dok indentation
-rw-r--r-- | packages/qtwidget/dok/index.dok | 205 |
1 files changed, 103 insertions, 102 deletions
diff --git a/packages/qtwidget/dok/index.dok b/packages/qtwidget/dok/index.dok index 19b2306..9016967 100644 --- a/packages/qtwidget/dok/index.dok +++ b/packages/qtwidget/dok/index.dok @@ -418,7 +418,8 @@ separated by a vertical bar. The fifth argument is a string containing the names of all depressed buttons separated by a vertical bar. -=== [QtLuaListener signal] sigMouseDoubleClick(int,int,QByteArray,QByteArray,QByteArray) =={{anchor:qtlualistener.sigMouseDoubleClick}} +=== [QtLuaListener signal] sigMouseDoubleClick(int,int,QByteArray,QByteArray,QByteArray) === +{{anchor:qtlualistener.sigMouseDoubleClick}} Signal ''sigMouseRelease'' is emitted whenever the underlying widget receives a [[http://doc.trolltech.com/4.4/qmouseevent.html|QMouseEvent]] @@ -520,7 +521,7 @@ accurately describes how the painter settings affects drawing operations. Function ''qt.QtLuaPainter'' constructs a new ''QtLuaPainter'' instance. -=== ''qt.QtLuaPainter(qimage)'' === +=== qt.QtLuaPainter(qimage) === {{anchor:qtluapainter}} Constructs a painter instance that targets an offscreen image. @@ -530,7 +531,7 @@ passed as argument. Painting operations do not modify the image passed as argument. Instead a copy of the current image can be accessed using expression [[#paintergrab|painter:image()]]. -=== ''qt.QtLuaPainter(filename, [format])'' === +=== qt.QtLuaPainter(filename, [format]) === {{anchor:qtluapainter}} Constructs a painter instance that targets an offscreen image @@ -540,7 +541,7 @@ The file format is determined by the optional string Use expression [[#paintergrab|painter.image()]] to obtain a copy of the offscreen image. -=== ''qt.QtLuaPainter(w,h,[monoflag])'' === +=== qt.QtLuaPainter(w,h,[monoflag]) === {{anchor:qtluapainter}} Constructs a painter instance that targets an offscreen image @@ -550,7 +551,7 @@ the image is a 32 bits RGBA image. Use expression [[#paintergrab|painter.image()]] to obtain a copy of the offscreen image. -=== ''qt.QtLuaPainter(qpixmap)'' === +=== qt.QtLuaPainter(qpixmap) === {{anchor:qtluapainter}} Constructs a painter instance that targets a @@ -564,7 +565,7 @@ the main thread, one must use [[..:qt:index#qt.qcall|qt.pcall]] to ensure that painting operations are performed from the main thread. Otherwise Qt prints a lot of warnings and behaves erratically. -=== ''qt.QtLuaPainter(qwidget,[buffered])'' === +=== qt.QtLuaPainter(qwidget,[buffered]) === {{anchor:qtluapainter}} Constructs a painter instance that targets the @@ -592,7 +593,7 @@ Unbuffered widget painters are therefore difficult to use for painting; they are mostly useful for grabbing the on-screen representation of a widget using function [[#paintergrab|painter.image()]]. -=== ''qt.QtLuaPainter(object)'' === +=== qt.QtLuaPainter(object) === {{anchor:qtluapainter}} Constructs a painter instance that target the output @@ -608,7 +609,7 @@ Class [[#qtluaprinter|qt.QtLuaPrinter]] does all this. === QtLuaPainter Properties === {{anchor:qtluapainter.properties}} -=== + painter.angleUnit === +== painter.angleUnit == {{anchor:qtluapainterangleunit}} {{anchor:qtluapainter.angleUnit}} @@ -619,7 +620,7 @@ The acceptable values are the strings ''"Degrees"'' and ''"Radians"''. The default unit is the degree. -=== + painter.background === +== painter.background == {{anchor:qtluapainterbackground}} {{anchor:qtluapainter.background}} @@ -629,7 +630,7 @@ and the zero color of bitonal images. The default background brush is an empty brush meaning that these pixels are not painted at all. -=== + painter.brush === +== painter.brush == {{anchor:qtluapainterbrush}} {{anchor:qtluapainter.painter}} @@ -639,7 +640,7 @@ that determine how function [[#painterfill|painter:fill]] fills shapes and how function [[#painterfill|painter:show]] draws text. -=== + painter.clippath === +== painter.clippath == {{anchor:qtluapainterclippath}} {{anchor:qtluapainter.clippath}} @@ -650,7 +651,7 @@ of the current clipping region. Drawing operations only modify pixels located within the clip region. An empty path means that no clipping is performed. -=== + painter.compositionMode === +== painter.compositionMode == {{anchor:qtluapaintercompositionmode}} {{anchor:qtluapainter.compositionMode}} @@ -666,7 +667,7 @@ In particular printers often support only the default composition mode. When a composition mode is not supported, the Qt library prints a warning. -=== + painter.depth === +== painter.depth == {{anchor:qtluapainterdepth}} {{anchor:qtluapainter.depth}} @@ -675,7 +676,7 @@ of the target surface for drawings. A depth of ''1'' indicates a bitonal surface. A depth of ''24'' or ''32'' indicates a true color surface. -=== + painter.font === +== painter.font == {{anchor:qtluapainterfont}} {{anchor:qtluapainter.font}} @@ -683,7 +684,7 @@ Property ''painter.font'' contient a Qt variant of class [[..:qtgui:index#qfont|qt.QFont]] representing the font settings used for drawing text. -=== + painter.height === +== painter.height == {{anchor:qtluapainterheight}} {{anchor:qtluapainter.height}} @@ -694,7 +695,7 @@ is not affected by the current transformation matrix. It corresponds to the default coordinate system set by [[#painterinitmatrix|painter:initmatrix]]. -=== + painter.matrix === +== painter.matrix == {{anchor:qtluapaintermatrix}} {{anchor:qtluapainter.matrix}} @@ -703,7 +704,7 @@ Property ''painter.font'' contient a Qt variant of class how coordinates passed to the path construction functions are transformed into device depending coordinates. -=== + painter.path === +== painter.path == {{anchor:qtluapainterpath}} {{anchor:qtluapainter.path}} @@ -717,7 +718,7 @@ and [[#painterstroke|painter:stroke]]. The current path is modified by a rich collection of path defining functions. -=== + painter.pen === +== painter.pen == {{anchor:qtluapainterpen}} {{anchor:qtluapainter.pen}} @@ -726,7 +727,7 @@ Property ''painter.pen'' contains a Qt variant of class that determine how function [[#painterfill|painter:stroke]] draws shapes. -=== + painter.point === +== painter.point == {{anchor:qtluapainterpoint}} {{anchor:qtluapainter.point}} @@ -737,7 +738,7 @@ are used and updated implicitely by the majority of the path construction functions. -=== + painter.renderHints === +== painter.renderHints == {{anchor:qtluapainterrenderhints}} {{anchor:qtluapainter.renderHints}} @@ -748,7 +749,7 @@ the names of the active rendering flags (without the prefix ''QPainter::'') separated with a vertical bar "''|''" symbolizing a boolean ''or'' operator. -=== + painter.styleSheet === +== painter.styleSheet == {{anchor:qtluapainterstylesheet}} {{anchor:qtluapainter.styleSheet}} @@ -757,7 +758,7 @@ that is used when drawing rich text with function [[#paintershow|show]]. -=== + painter.width === +== painter.width == {{anchor:qtluapainterwidth}} {{anchor:qtluapainter.width}} @@ -779,7 +780,7 @@ Additional functions provide capabilities that are unique to the Qt platform. -=== + painter:arc(x,y,r,angle1,angle2) === +== painter:arc(x,y,r,angle1,angle2) == {{anchor:qtluapainter.arc}} Expression ''painter:arc(x,y,r,angle1,angle2)'' @@ -799,7 +800,7 @@ The default angle unit is the degree. See also: PostScript operator ''arc''. -=== + painter:arcn(x,y,r,angle1,angle2) === +== painter:arcn(x,y,r,angle1,angle2) == {{anchor:qtluapainter.arcn}} Expression ''painter:arcn(x,y,r,angle1,angle2)'' @@ -818,7 +819,7 @@ The default angle unit is the degree. See also: PostScript operator ''arcn''. -=== + painter:arcto(x1,y1,x2,y2,r) === +== painter:arcto(x1,y1,x2,y2,r) == {{anchor:qtluapainter.arcto}} Expression ''painter:arcto(x1,y1,x2,y2,r)'' @@ -834,7 +835,7 @@ The second endpoint becomes the new current point. See also: PostScript operators ''arct'' and ''arcto''. -=== + painter:charpath(string) === +== painter:charpath(string) == {{anchor:qtluapainter.charpath}} Expression ''painter:charpath(string)'' @@ -850,7 +851,7 @@ After calling this function, the current point is left unset. See also: PostScript operators ''charpath''. -=== + painter:clip(optnewpath) === +== painter:clip(optnewpath) == {{anchor:painterclip}} {{anchor:qtluapainter.clip}} @@ -879,7 +880,7 @@ to restore the initial clip region. See also: PostScript operator ''clip''. -=== + painter:close() === +== painter:close() == {{anchor:painterclose}} {{anchor:qtluapainter.close}} @@ -891,7 +892,7 @@ be closed before the underlying widget or printer is destroyed. -=== + painter:closepath() === +== painter:closepath() == {{anchor:qtluapainter.closepath}} Expression ''painter:closepath()'' @@ -911,7 +912,7 @@ the current point is left unset. See also: PostScript operator ''closepath''. -=== + painter:concat(qtransform) === +== painter:concat(qtransform) == {{anchor:qtluapainter.concat}} Expression ''painter:concat(qtransform)'' @@ -926,7 +927,7 @@ It is much easier to use functions See also: PostScript operator ''concat''. -=== + painter:currentangleunit() === +== painter:currentangleunit() == {{anchor:qtluapainter.currentangleunit}} Expression ''painter:currentangleunit()'' returns the @@ -936,7 +937,7 @@ Possible values are strings ''"Degrees"'' and ''"Radians"''. The default angle unit are degrees. -=== + painter:currentbackground() === +== painter:currentbackground() == {{anchor:qtluapainter.currentbackground}} Expression ''painter:currentbackground()'' @@ -947,7 +948,7 @@ dashed line, text, or bitonal images. The default is an empty brush. -=== + painter:currentbrush() === +== painter:currentbrush() == {{anchor:qtluapainter.currentbrush}} Expression ''painter:currentbrush()'' @@ -957,14 +958,14 @@ used for filling path with [[#painterfill|painter:fill()]]. The default is an empty brush. -=== + painter:currentclip() === +== painter:currentclip() == {{anchor:qtluapainter.currentclip}} Expression ''painter:currentclip()'' returns a [[..:qtgui:index#qpainterpath|QPainterPath]] representing the [[#qtluapainterclippath|current clip region]]. -=== + painter:currentcolor() === +== painter:currentcolor() == {{anchor:qtluapainter.currentcolor}} Expression ''painter:currentcolor()'' @@ -974,7 +975,7 @@ of the color of the [[..:qtgui:index#qbrush|current brush]]. This numbers range from zero to one. -=== + painter:currentdash() === +== painter:currentdash() == {{anchor:qtluapainter.currentdash}} Expression ''painter:currentdash()'' @@ -982,7 +983,7 @@ returns the dash pattern and the dash offset of the [[#qtluapainterpen|current pen]]. -=== + painter:currentfont() === +== painter:currentfont() == {{anchor:qtluapainter.currentfont}} Expression ''painter:currentfont()'' @@ -990,7 +991,7 @@ returns a [[..:qtgui:index#qfont|QFont]] describing the [[#qtluapainterfont|current font]] for drawing text. -=== + painter:currentfontsize() === +== painter:currentfontsize() == {{anchor:qtluapainter.currentfontsize}} Expression ''painter:currentfontsize()'' @@ -998,7 +999,7 @@ returns the size in points of the [[#qtluapainterfont|current font]]. -=== + painter:currenthints() === +== painter:currenthints() == {{anchor:qtluapainter.currenthints}} Expression ''painter:currenthints()'' returns the @@ -1006,28 +1007,28 @@ Expression ''painter:currenthints()'' returns the controlling the quality of the drawings. -=== + painter:currentlinewidth() === +== painter:currentlinewidth() == {{anchor:qtluapainter.currentlinewidth}} Expression ''painter:currentlinewidth()'' returns the line width associated with the [[#qtluapainterpen|current pen]]. -=== + painter:currentmatrix() === +== painter:currentmatrix() == {{anchor:qtluapainter.currentmatrix}} Expression ''painter:currentmatrix()'' returns a Qt variant of class [[..:qtgui:index#qtransform|qt.QTransform]] representing the [[#qtluapaintermatrix|current transformation matrix]]. -=== + painter:currentmode() === +== painter:currentmode() == {{anchor:qtluapainter.currentmode}} Expression ''painter:currentmode()'' returns a string representing the [[#qtluapaintercompositionmode|current composition mode]]. -=== + painter:currentpath() === +== painter:currentpath() == {{anchor:qtluapainter.currentpath}} Expression ''painter:currentpath()'' returns a Qt variant of class @@ -1035,7 +1036,7 @@ Expression ''painter:currentpath()'' returns a Qt variant of class [[#qtluapainterpath|current path]]. -=== + painter:currentpen() === +== painter:currentpen() == {{anchor:qtluapainter.currentpen}} Expression ''painter:currentpath()'' returns a Qt variant of class @@ -1043,7 +1044,7 @@ Expression ''painter:currentpath()'' returns a Qt variant of class [[#qtluapainterpen|current pen]]. -=== + painter:currentpoint() === +== painter:currentpoint() == {{anchor:qtluapainter.currentpoint}} Expression ''painter:currentpoint()'' returns two numbers @@ -1051,7 +1052,7 @@ representing the coordinates of the [[#qtluapainterpoint|current point]]. -=== + painter:currentsize() === +== painter:currentsize() == {{anchor:paintercurrentsize}} {{anchor:qtluapainter.currentsize}} @@ -1063,7 +1064,7 @@ They correspond to the default coordinate system sets by [[#painterinitmatrix|painter:initmatrix]]. -=== + painter:currentstylesheet() === +== painter:currentstylesheet() == {{anchor:paintercurrentstylesheet}} {{anchor:qtluapainter.currentstylesheet}} @@ -1073,7 +1074,7 @@ used by function [[#paintershow|show]] for displaying rich text. -=== + painter:curveto(x1,y1,x2,y2,x3,y3) === +== painter:curveto(x1,y1,x2,y2,x3,y3) == {{anchor:paintercurveto}} {{anchor:qtluapainter.curveto}} @@ -1089,7 +1090,7 @@ when the current point is not set See also: PostScript operator ''curveto''. -=== + painter:device() === +== painter:device() == {{anchor:painterdevice}} {{anchor:qtluapainter.device}} @@ -1102,7 +1103,7 @@ is represented by a Qt variant of type =QPaintDevice*=. This is not very useful in Lua. -=== + painter:eoclip(optnewpath) === +== painter:eoclip(optnewpath) == {{anchor:paintereoclip}} {{anchor:qtluapainter.eoclip}} @@ -1114,7 +1115,7 @@ instead of the winding rule. -=== + painter:eofill(optnewpath) === +== painter:eofill(optnewpath) == {{anchor:paintereofill}} {{anchor:qtluapainter.eofill}} @@ -1126,7 +1127,7 @@ instead of the winding rule. See also: PostScript operator ''eofill''. -=== + painter:fill(optnewpath) === +== painter:fill(optnewpath) == {{anchor:painterfill}} {{anchor:qtluapainter.fill}} @@ -1145,7 +1146,7 @@ See function [[#paintereofill|painter:eofill]] for an alternative. See also: PostScript operator ''fill''. -=== + painter:gbegin() === +== painter:gbegin() == {{anchor:paintergbegin}} {{anchor:qtluapainter.gbegin}} @@ -1157,7 +1158,7 @@ usually postponed until the last call to ''painter:gend''. This is useful for implementing smooth transitions between successive drawings. -=== + painter:gend([invalidate]) === +== painter:gend([invalidate]) == {{anchor:paintergend}} {{anchor:qtluapainter.gend}} @@ -1177,7 +1178,7 @@ the underlying ''QPainter'' object without using the ''QtLuaPainter'' functions. -=== + painter:grestore() === +== painter:grestore() == {{anchor:paintergrestore}} {{anchor:qtluapainter.grestore}} @@ -1192,7 +1193,7 @@ remain unchanged. -=== + painter:gsave() === +== painter:gsave() == {{anchor:paintergsave}} {{anchor:qtluapainter.gsave}} @@ -1207,7 +1208,7 @@ to bracket code segments that perform some rendering in order to ensure that the painter settings remain unchanged. -=== + painter:image() === +== painter:image() == {{anchor:paintergrab}} {{anchor:qtluapainter.image}} @@ -1226,7 +1227,7 @@ Note that this function must be invoked without arguments. Otherwise see the documentation for [[#painterblit|painter:image(...)]]. -=== + painter:image(x,y,[w,h],image,[sx,sy,[sw,sh]]) === +== painter:image(x,y,[w,h],image,[sx,sy,[sw,sh]]) == {{anchor:painterblit}} {{anchor:qtluapainter.image}} @@ -1262,7 +1263,7 @@ Otherwise see the documentation for [[#paintergrab|painter:image()]]. See also: PostScript operator ''image''. -=== + painter:initclip() === +== painter:initclip() == {{anchor:painterinitclip}} {{anchor:qtluapainter.initclip}} @@ -1277,7 +1278,7 @@ by a subsequent drawing operation. See also: PostScript operator ''initclip''. -=== + painter:initgraphics() === +== painter:initgraphics() == {{anchor:painterinitgraphics}} {{anchor:qtluapainter.initgraphics}} @@ -1299,7 +1300,7 @@ After calling this function: See also: PostScript operator ''initgraphics''. -=== + painter:initmatrix() === +== painter:initmatrix() == {{anchor:painterinitmatrix}} {{anchor:qtluapainter.initmatrix}} @@ -1315,7 +1316,7 @@ on most devices. See also: PostScript operator ''initmatrix''. -=== + painter:lineto(x,y) === +== painter:lineto(x,y) == {{anchor:qtluapainter.lineto}} Expression ''painter:lineto(x,y)'' appends @@ -1331,7 +1332,7 @@ when the current point is not set See also: PostScript operator ''lineto''. -=== + painter:moveto(x,y) === +== painter:moveto(x,y) == {{anchor:qtluapainter.moveto}} Expression ''painter:moveto(x,y)'' terminates the @@ -1341,7 +1342,7 @@ the current point to coordinates ''(x,y)''. See also: PostScript operator ''moveto''. -=== + painter:newpath() === +== painter:newpath() == {{anchor:painternewpath }} {{anchor:qtluapainter.newpath}} @@ -1350,7 +1351,7 @@ After calling this function, the current point is left unset. See also: PostScript operator ''newpath''. -=== + painter:object() === +== painter:object() == {{anchor:painterobject}} {{anchor:qtluapainter.object}} @@ -1361,7 +1362,7 @@ Typical return values are instance of class [[#qtluaprinter|qt.QtLuaPrinter]]. -=== + painter:painter() === +== painter:painter() == {{anchor:painterpainter}} {{anchor:qtluapainter.painter}} @@ -1373,7 +1374,7 @@ is neither a Qt variant not a Qt object, this pointer is represented by a Qt variant of type =QPainter*=. -=== + painter:pixmap() === +== painter:pixmap() == {{anchor:painterpixmap}} {{anchor:qtluapainter.pixmap}} @@ -1387,7 +1388,7 @@ as a pixmap, for instance a printer, this function returns an empty pixmap for which method [[..:qt:index#qt.tobool|tobool]] returns ''false''. -=== + painter:printer() === +== painter:printer() == {{anchor:qtluapainter.printer}} Expression ''painter:printer()'' returns a pointer @@ -1399,7 +1400,7 @@ is represented by a Qt variant of type =QPrinter*=. -=== + painter:rcurveto(x1,y1,x2,y2,x3,y3) === +== painter:rcurveto(x1,y1,x2,y2,x3,y3) == {{anchor:qtluapainter.rcurveto}} This is similar to calling function @@ -1418,7 +1419,7 @@ when the current point is not set. See also: PostScript operator ''rcurveto''. -=== + painter:rect() === +== painter:rect() == {{anchor:qtluapainter.rect}} Expression ''painter:rect()'' returns a Qt variant @@ -1434,7 +1435,7 @@ or properties [[#qtluapainterwidth|painter.width]] and [[#qtluapainterheight|painter.height]]. -=== + painter:rectangle(x,y,w,h) === +== painter:rectangle(x,y,w,h) == {{anchor:qtluapainter.rectangle}} Expression ''painter:rectangle(x,y,w,h)'' @@ -1447,7 +1448,7 @@ the current point is left unset. -=== + painter:refresh() === +== painter:refresh() == {{anchor:qtluapainter.refresh}} Expression ''painter:refresh()'' immediately @@ -1458,7 +1459,7 @@ regardless of the nesting count of functions -=== + painter:rlineto(rx,ry) === +== painter:rlineto(rx,ry) == {{anchor:qtluapainter.rlineto}} Expression ''painter:lineto(x,y)'' appends a line segment @@ -1472,7 +1473,7 @@ when the current point is not set See also: PostScript operator ''rlineto''. -=== + painter:rmoveto(rx,ry) === +== painter:rmoveto(rx,ry) == {{anchor:qtluapainter.rmoveto}} Expression ''painter:moveto(x,y)'' terminates the @@ -1486,7 +1487,7 @@ when the current point is not set See also: PostScript operator ''rmoveto''. -=== + painter:rotate(angle) === +== painter:rotate(angle) == {{anchor:painterrotate}} {{anchor:qtluapainter.rotate}} @@ -1502,7 +1503,7 @@ The default angle unit is the degree. See also: PostScript operator ''rotate''. -=== + painter:scale(sx,sy) === +== painter:scale(sx,sy) == {{anchor:painterscale}} {{anchor:qtluapainter.scale}} @@ -1514,7 +1515,7 @@ the orientation of the axes are unaffected. See also: PostScript operator ''scale''. -=== + painter:setangleunit(unit) === +== painter:setangleunit(unit) == {{anchor:paintersetangleunit}} {{anchor:qtluapainter.setangleunit}} @@ -1529,7 +1530,7 @@ or ''"Radians"'' for expressing angles in radians. The default angle unit is the degree. -=== + painter:setbackground(brush) === +== painter:setbackground(brush) == {{anchor:qtluapainter.setbackground}} Expression ''painter:setbackground(brush)'' sets the @@ -1537,7 +1538,7 @@ Expression ''painter:setbackground(brush)'' sets the Argument ''brush'' must be a Qt variant of type [[..:qtgui:index#qbrush|qt.QBrush]]. -=== + painter:setbrush(brush) === +== painter:setbrush(brush) == {{anchor:qtluapainter.setbrush}} Expression ''painter:setbrush(brush)'' sets the @@ -1545,7 +1546,7 @@ Expression ''painter:setbrush(brush)'' sets the Argument ''brush'' must be a Qt variant of type [[..:qtgui:index#qbrush|qt.QBrush]]. -=== + painter:setclip(qpainterpath) === +== painter:setclip(qpainterpath) == {{anchor:qtluapainter.setclip}} Expression ''painter:setclip(qpainterpath)'' sets the @@ -1555,7 +1556,7 @@ Argument ''brush'' must be a Qt variant of type [[..:qtgui:index#qpainterpath|qt.QPainterPath]]. -=== + painter:setcolor(...) === +== painter:setcolor(...) == {{anchor:qtluapainter.setcolor}} Function ''painter:setcolor'' sets the color of both the @@ -1585,7 +1586,7 @@ representing the intensities of the red, green, blue, and alpha channels. The default value for argument ''a'' is ''1'' for a fully opaque color. -=== + painter:setdash([sizes,[offset]]) === +== painter:setdash([sizes,[offset]]) == {{anchor:qtluapainter.setdash}} Function ''painter:setdash'' changes the @@ -1607,7 +1608,7 @@ The optional argument ''offset'' is a length representing the starting position of the dash sequence. -=== + painter:setfont(qfont) === +== painter:setfont(qfont) == {{anchor:qtluapainter.setfont}} Expression ''painter:setfont(qfont)'' sets the @@ -1615,7 +1616,7 @@ Expression ''painter:setfont(qfont)'' sets the Argument ''font'' must be a Qt variant of type [[..:qtgui:index#qfont|qt.QFont]]. -=== + painter:setfontsize(size) === +== painter:setfontsize(size) == {{anchor:qtluapainter.setfontsize}} Expression ''painter:setfontsize(size)'' changes the size @@ -1623,7 +1624,7 @@ of the [[#qtluapainterfont|current font]]. Argument ''size'' must be a positive number. -=== + painter:sethints(hints) === +== painter:sethints(hints) == {{anchor:qtluapainter.sethints}} Expression ''painter:sethints(hints)'' sets the @@ -1634,14 +1635,14 @@ a concatenation of the names of the active separated with a vertical bar "''|''". -=== + painter:setlinewidth(lw) === +== painter:setlinewidth(lw) == {{anchor:qtluapainter.setlinewidth}} Expression ''painter:setlinewidth(lw)'' changes the line width of the [[#qtluapainterpen|current pen]]. Argument ''lw'' must be a positive number. -=== + painter:setmatrix(qtransform) === +== painter:setmatrix(qtransform) == {{anchor:qtluapainter.setmatrix}} Expression ''painter:setmatrix(qtransform)'' sets the @@ -1650,7 +1651,7 @@ Argument ''qtransform'' must be a Qt variant of type [[..:qtgui:index#qtransform|qt.QTransform]]. -=== + painter:setmode(compositionmode) === +== painter:setmode(compositionmode) == {{anchor:qtluapainter.setmode}} Expression ''painter:setmode(compositionmode)'' sets the @@ -1660,7 +1661,7 @@ Argument ''compositionmode'' must be a string containing the name of a [[http://doc.trolltech.com/4.4/qpainter.html#CompositionMode-enum|composition mode]]. -=== + painter:setpath(qpainterpath) === +== painter:setpath(qpainterpath) == {{anchor:qtluapainter.setpath}} Expression ''painter:setpath(qpainterpath)'' sets the @@ -1669,7 +1670,7 @@ Argument ''qpainterpath'' must be a Qt variant of type [[..:qtgui:index#qpainterpath|qt.QPainterPath]]. -=== + painter:setpattern(pattern,[x,y]) === +== painter:setpattern(pattern,[x,y]) == {{anchor:qtluapainter.setpattern}} Expression ''painter:setpattern(pattern,[x,y])'' @@ -1689,7 +1690,7 @@ The optional arguments ''x'' and ''y'' specify the origin of the pattern in the source image. -=== + painter:setpen(qpen) === +== painter:setpen(qpen) == {{anchor:qtluapainter.setpen}} Expression ''painter:setpen(qpen)'' sets the @@ -1698,7 +1699,7 @@ Argument ''qpen'' must be a Qt variant of type [[..:qtgui:index#qpen|qt.QPen]]. -=== + painter:setpoint(x,y) === +== painter:setpoint(x,y) == {{anchor:qtluapainter.setpoint}} Expression ''painter:setpoint(x,y)'' sets the @@ -1706,7 +1707,7 @@ Expression ''painter:setpoint(x,y)'' sets the Arguments ''x'' and ''y'' must be valid numbers. -=== + painter:setstylesheet(s) === +== painter:setstylesheet(s) == {{anchor:qtluapainter.setstylesheet}} Expression ''painter:setstylesheet(s)'' sets the @@ -1716,7 +1717,7 @@ displaying rich text. -=== + painter:show(string,[x,y,w,h,textflags]) === +== painter:show(string,[x,y,w,h,textflags]) == {{anchor:paintershow}} {{anchor:qtluapainter.show}} @@ -1765,7 +1766,7 @@ to specify more complicated formats. See also: PostScript operator ''show''. -=== + painter:showpage() === +== painter:showpage() == {{anchor:qtluapainter.showpage}} Expression ''painter:showpage()'' @@ -1781,7 +1782,7 @@ unless some drawing operation is performed on each page. See also: PostScript operator ''showpage''. -=== + painter:size() === +== painter:size() == {{anchor:qtluapainter.size}} Expression ''painter:size()'' returns a Qt variant @@ -1796,7 +1797,7 @@ using function [[#paintercurrentsize|painter:currentsize()]] or properties [[#qtluapainterwidth|painter.width]] and [[#qtluapainterheight|painter.height]]. -=== + painter:stringrect(string,[x,y,w,h,textflags]) === +== painter:stringrect(string,[x,y,w,h,textflags]) == {{anchor:qtluapainter.stringrect}} Function ''painter:stringrect'' returns a Qt variant of type @@ -1806,7 +1807,7 @@ by calling function [[#paintershow|painter:show]] with the same arguments. -=== + painter:stringwidth(string) === +== painter:stringwidth(string) == {{anchor:qtluapainter.stringwidth}} Fonction ''painter:stringwidth'' returns @@ -1817,7 +1818,7 @@ by expression [[#paintershow|show(string)]]. See also: PostScript operator ''stringwidth''. -=== + painter:stroke(optnewpath) === +== painter:stroke(optnewpath) == {{anchor:painterstroke}} {{anchor:qtluapainter.stroke}} @@ -1832,7 +1833,7 @@ The default is to reset the current path. See also: PostScript operator ''stroke''. -=== + painter:translate(dx,dy) === +== painter:translate(dx,dy) == {{anchor:paintertranslate}} {{anchor:qtluapainter.translate}} @@ -1843,7 +1844,7 @@ the orientation of the axes are unaffected. See also: PostScript operator ''translate''. -=== + painter:widget() === +== painter:widget() == {{anchor:qtluapainter.widget}} Expression ''painter:widget()'' returns the Qt object of class @@ -1852,7 +1853,7 @@ When the painter is not associated with a widget, this expression returns ''nil''. -=== + painter:write(f,[format]) === +== painter:write(f,[format]) == {{anchor:qtluapainter.write}} Expression ''painter:write(f)'' saves the image |