diff options
author | Michele Calgaro <[email protected]> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/man/man3/tqcanvasitem.3qt | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/man/man3/tqcanvasitem.3qt')
-rw-r--r-- | doc/man/man3/tqcanvasitem.3qt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/man/man3/tqcanvasitem.3qt b/doc/man/man3/tqcanvasitem.3qt index 75406891c..cb1147a8c 100644 --- a/doc/man/man3/tqcanvasitem.3qt +++ b/doc/man/man3/tqcanvasitem.3qt @@ -81,7 +81,7 @@ Inherited by TQCanvasSprite, TQCanvasPolygonalItem, and TQCanvasText. .BI "virtual void \fBsetCanvas\fR ( TQCanvas * c )" .br .ti -1c -.BI "virtual void \fBdraw\fR ( QPainter & painter ) = 0" +.BI "virtual void \fBdraw\fR ( TQPainter & painter ) = 0" .br .ti -1c .BI "void \fBshow\fR ()" @@ -250,10 +250,10 @@ The returned list is a list of TQCanvasItems, but often you will need to cast th Note that a canvas item may be `on' a canvas, e.g. it was created with the canvas as parameter, even though its coordinates place it beyond the edge of the canvas's area. Collision detection only works for canvas items which are wholly or partly within the canvas's area. .PP Note that if items have a velocity (see setVelocity()), then collision testing is done based on where the item \fIwill\fR be when it moves, not its current location. For example, a "ball" item doesn't need to actually embed into a "wall" item before a collision is detected. For items without velocity, plain intersection is used. -.SH "void TQCanvasItem::draw ( QPainter & painter )\fC [pure virtual]\fR" +.SH "void TQCanvasItem::draw ( TQPainter & painter )\fC [pure virtual]\fR" This abstract virtual function draws the canvas item using \fIpainter\fR. .PP -\fBWarning:\fR When you reimplement this function, make sure that you leave the painter in the same state as you found it. For example, if you start by calling QPainter::translate(50, 50), end your code by calling QPainter::translate(-50, -50). Be also aware that the painter might already have some transformations set (i.e., don't call QPainter::resetXForm() when you're done). +\fBWarning:\fR When you reimplement this function, make sure that you leave the painter in the same state as you found it. For example, if you start by calling TQPainter::translate(50, 50), end your code by calling TQPainter::translate(-50, -50). Be also aware that the painter might already have some transformations set (i.e., don't call TQPainter::resetXForm() when you're done). .PP Reimplemented in TQCanvasSprite, TQCanvasPolygonalItem, and TQCanvasText. .SH "bool TQCanvasItem::enabled () const" |