Class QtLuaPainter provides a broad array of painting functions that closely resemble the well-known PostScript operators. Additional functions provide capabilities that are unique to the Qt platform.

Subsections

  1. painter:arc(x,y,r,angle1,angle2)
  2. painter:arcn(x,y,r,angle1,angle2)
  3. painter:arcto(x1,y1,x2,y2,r)
  4. painter:charpath(string)
  5. painter:clip(optnewpath)
  6. painter:close()
  7. painter:closepath()
  8. painter:concat(qtransform)
  9. painter:currentangleunit()
  10. painter:currentbackground()
  11. painter:currentbrush()
  12. painter:currentclip()
  13. painter:currentcolor()
  14. painter:currentdash()
  15. painter:currentfont()
  16. painter:currentfontsize()
  17. painter:currenthints()
  18. painter:currentlinewidth()
  19. painter:currentmatrix()
  20. painter:currentmode()
  21. painter:currentpath()
  22. painter:currentpen()
  23. painter:currentpoint()
  24. painter:currentsize()
  25. painter:curveto(x1,y1,x2,y2,x3,y3)
  26. painter:device()
  27. painter:eoclip(optnewpath)
  28. painter:eofill(optnewpath)
  29. painter:fill(optnewpath)
  30. painter:gbegin()
  31. painter:gend()
  32. painter:grestore()
  33. painter:gsave()
  34. painter:image()
  35. painter:image(x,y,[w,h],image,[sx,sy,[sw,sh]])
  36. painter:initclip()
  37. painter:initgraphics()
  38. painter:initmatrix()
  39. painter:lineto(x,y)
  40. painter:moveto(x,y)
  41. painter:newpath()
  42. painter:painter()
  43. painter:pixmap()
  44. painter:printer()
  45. painter:rcurveto(x1,y1,x2,y2,x3,y3)
  46. painter:rect()
  47. painter:rectangle(x,y,w,h)
  48. painter:refresh()
  49. painter:rlineto(rx,ry)
  50. painter:rmoveto(rx,ry)
  51. painter:rotate(angle)
  52. painter:scale(sx,sy)
  53. painter:setangleunit(unit)
  54. painter:setbackground(brush)
  55. painter:setbrush(brush)
  56. painter:setclip(qpainterpath)
  57. painter:setcolor(...)
  58. painter:setdash([sizes,[offset]])
  59. painter:setfont(qfont)
  60. painter:setfontsize(size)
  61. painter:sethints(hints)
  62. painter:setlinewidth(lw)
  63. painter:setmatrix(qtransform)
  64. painter:setmode(compositionmode)
  65. painter:setpath(qpainterpath)
  66. painter:setpattern(pattern,[x,y])
  67. painter:setpen(qpen)
  68. painter:setpoint(x,y)
  69. painter:show(string,[x,y,w,h,textflags])
  70. painter:showpage()
  71. painter:size()
  72. painter:stringrect(string,[x,y,w,h,textflags])
  73. painter:stringwidth(string)
  74. painter:stroke(optnewpath)
  75. painter:translate(dx,dy)
  76. painter:widget()
  77. painter:write(f,[format])