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/html/t14-cannon-cpp.html | |
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/html/t14-cannon-cpp.html')
-rw-r--r-- | doc/html/t14-cannon-cpp.html | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/t14-cannon-cpp.html b/doc/html/t14-cannon-cpp.html index e51955539..f9849a2d6 100644 --- a/doc/html/t14-cannon-cpp.html +++ b/doc/html/t14-cannon-cpp.html @@ -40,7 +40,7 @@ body { background: #ffffff; color: black; } #include "cannon.h" #include <<a href="tqtimer-h.html">tqtimer.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> #include <<a href="tqdatetime-h.html">tqdatetime.h</a>> @@ -191,15 +191,15 @@ void CannonField::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a } -void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e ) +void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> *e ) { - <a href="ntqrect.html">TQRect</a> updateR = e-><a href="qpaintevent.html#rect">rect</a>(); - <a href="ntqpainter.html">TQPainter</a> p( this ); + <a href="ntqrect.html">TQRect</a> updateR = e-><a href="tqpaintevent.html#rect">rect</a>(); + <a href="tqpainter.html">TQPainter</a> p( this ); if ( gameEnded ) { - p.<a href="ntqpainter.html#setPen">setPen</a>( black ); - p.<a href="ntqpainter.html#setFont">setFont</a>( TQFont( "Courier", 48, TQFont::Bold ) ); - p.<a href="ntqpainter.html#drawText">drawText</a>( <a href="tqwidget.html#rect">rect</a>(), AlignCenter, "Game Over" ); + p.<a href="tqpainter.html#setPen">setPen</a>( black ); + p.<a href="tqpainter.html#setFont">setFont</a>( TQFont( "Courier", 48, TQFont::Bold ) ); + p.<a href="tqpainter.html#drawText">drawText</a>( <a href="tqwidget.html#rect">rect</a>(), AlignCenter, "Game Over" ); } if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( cannonRect() ) ) paintCannon( &p ); @@ -211,47 +211,47 @@ void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qp paintTarget( &p ); } -void <a name="f129"></a>CannonField::paintShot( <a href="ntqpainter.html">TQPainter</a> *p ) +void <a name="f129"></a>CannonField::paintShot( <a href="tqpainter.html">TQPainter</a> *p ) { - p-><a href="ntqpainter.html#setBrush">setBrush</a>( black ); - p-><a href="ntqpainter.html#setPen">setPen</a>( NoPen ); - p-><a href="ntqpainter.html#drawRect">drawRect</a>( shotRect() ); + p-><a href="tqpainter.html#setBrush">setBrush</a>( black ); + p-><a href="tqpainter.html#setPen">setPen</a>( NoPen ); + p-><a href="tqpainter.html#drawRect">drawRect</a>( shotRect() ); } -void <a name="f130"></a>CannonField::paintTarget( <a href="ntqpainter.html">TQPainter</a> *p ) +void <a name="f130"></a>CannonField::paintTarget( <a href="tqpainter.html">TQPainter</a> *p ) { - p-><a href="ntqpainter.html#setBrush">setBrush</a>( red ); - p-><a href="ntqpainter.html#setPen">setPen</a>( black ); - p-><a href="ntqpainter.html#drawRect">drawRect</a>( targetRect() ); + p-><a href="tqpainter.html#setBrush">setBrush</a>( red ); + p-><a href="tqpainter.html#setPen">setPen</a>( black ); + p-><a href="tqpainter.html#drawRect">drawRect</a>( targetRect() ); } -void <a name="f131"></a>CannonField::paintBarrier( <a href="ntqpainter.html">TQPainter</a> *p ) +void <a name="f131"></a>CannonField::paintBarrier( <a href="tqpainter.html">TQPainter</a> *p ) { - p-><a href="ntqpainter.html#setBrush">setBrush</a>( yellow ); - p-><a href="ntqpainter.html#setPen">setPen</a>( black ); - p-><a href="ntqpainter.html#drawRect">drawRect</a>( barrierRect() ); + p-><a href="tqpainter.html#setBrush">setBrush</a>( yellow ); + p-><a href="tqpainter.html#setPen">setPen</a>( black ); + p-><a href="tqpainter.html#drawRect">drawRect</a>( barrierRect() ); } const <a href="ntqrect.html">TQRect</a> barrelRect(33, -4, 15, 8); -void <a name="f132"></a>CannonField::paintCannon( <a href="ntqpainter.html">TQPainter</a> *p ) +void <a name="f132"></a>CannonField::paintCannon( <a href="tqpainter.html">TQPainter</a> *p ) { <a href="ntqrect.html">TQRect</a> cr = cannonRect(); <a href="ntqpixmap.html">TQPixmap</a> pix( cr.<a href="ntqrect.html#size">size</a>() ); pix.<a href="ntqpixmap.html#fill">fill</a>( this, cr.<a href="ntqrect.html#topLeft">topLeft</a>() ); - <a href="ntqpainter.html">TQPainter</a> tmp( &pix ); - tmp.<a href="ntqpainter.html#setBrush">setBrush</a>( blue ); - tmp.<a href="ntqpainter.html#setPen">setPen</a>( NoPen ); + <a href="tqpainter.html">TQPainter</a> tmp( &pix ); + tmp.<a href="tqpainter.html#setBrush">setBrush</a>( blue ); + tmp.<a href="tqpainter.html#setPen">setPen</a>( NoPen ); - tmp.<a href="ntqpainter.html#translate">translate</a>( 0, pix.<a href="ntqpixmap.html#height">height</a>() - 1 ); - tmp.<a href="ntqpainter.html#drawPie">drawPie</a>( TQRect( -35,-35, 70, 70 ), 0, 90*16 ); - tmp.<a href="ntqpainter.html#rotate">rotate</a>( -ang ); - tmp.<a href="ntqpainter.html#drawRect">drawRect</a>( barrelRect ); - tmp.<a href="ntqpainter.html#end">end</a>(); + tmp.<a href="tqpainter.html#translate">translate</a>( 0, pix.<a href="ntqpixmap.html#height">height</a>() - 1 ); + tmp.<a href="tqpainter.html#drawPie">drawPie</a>( TQRect( -35,-35, 70, 70 ), 0, 90*16 ); + tmp.<a href="tqpainter.html#rotate">rotate</a>( -ang ); + tmp.<a href="tqpainter.html#drawRect">drawRect</a>( barrelRect ); + tmp.<a href="tqpainter.html#end">end</a>(); - p-><a href="ntqpainter.html#drawPixmap">drawPixmap</a>( cr.<a href="ntqrect.html#topLeft">topLeft</a>(), pix ); + p-><a href="tqpainter.html#drawPixmap">drawPixmap</a>( cr.<a href="ntqrect.html#topLeft">topLeft</a>(), pix ); } |