summaryrefslogtreecommitdiffstats
path: root/doc/html/tqcanvasview.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tqcanvasview.html')
-rw-r--r--doc/html/tqcanvasview.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/tqcanvasview.html b/doc/html/tqcanvasview.html
index 0f53f6074..740635351 100644
--- a/doc/html/tqcanvasview.html
+++ b/doc/html/tqcanvasview.html
@@ -64,7 +64,7 @@ The TQCanvasView class provides an on-screen view of a <a href="tqcanvas.html">T
<p> If you want users to be able to interact with a canvas view,
subclass TQCanvasView. You might then reimplement
<a href="ntqscrollview.html#contentsMousePressEvent">TQScrollView::contentsMousePressEvent</a>(). For example, assuming no
-<a href="ntqwmatrix.html#TransformationMode">transformation matrix</a> is set:
+<a href="tqwmatrix.html#TransformationMode">transformation matrix</a> is set:
<p> <pre>
void MyCanvasView::contentsMousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a>* e )
{
@@ -82,11 +82,11 @@ subclass TQCanvasView. You might then reimplement
canvas in various ways, for example, zooming in or out or rotating.
For example:
<p> <pre>
- <a href="ntqwmatrix.html">TQWMatrix</a> wm;
- wm.<a href="ntqwmatrix.html#scale">scale</a>( 2, 2 ); // Zooms in by 2 times
- wm.<a href="ntqwmatrix.html#rotate">rotate</a>( 90 ); // Rotates 90 degrees counter clockwise
+ <a href="tqwmatrix.html">TQWMatrix</a> wm;
+ wm.<a href="tqwmatrix.html#scale">scale</a>( 2, 2 ); // Zooms in by 2 times
+ wm.<a href="tqwmatrix.html#rotate">rotate</a>( 90 ); // Rotates 90 degrees counter clockwise
// around the origin.
- wm.<a href="ntqwmatrix.html#translate">translate</a>( 0, -canvas-&gt;height() );
+ wm.<a href="tqwmatrix.html#translate">translate</a>( 0, -canvas-&gt;height() );
// moves the canvas down so what was visible
// before is still visible.
myCanvasView-&gt;setWorldMatrix( wm );
@@ -100,12 +100,12 @@ with <a href="#inverseWorldMatrix">inverseWorldMatrix</a>().
<p> The following code finds the part of the canvas that is visible in
this view, i.e. the bounding rectangle of the view in canvas coordinates.
<p> <pre>
- <a href="ntqrect.html">TQRect</a> rc = TQRect( myCanvasView-&gt;contentsX(), myCanvasView-&gt;contentsY(),
+ <a href="tqrect.html">TQRect</a> rc = TQRect( myCanvasView-&gt;contentsX(), myCanvasView-&gt;contentsY(),
myCanvasView-&gt;visibleWidth(), myCanvasView-&gt;visibleHeight() );
- <a href="ntqrect.html">TQRect</a> canvasRect = myCanvasView-&gt;inverseWorldMatrix().mapRect(rc);
+ <a href="tqrect.html">TQRect</a> canvasRect = myCanvasView-&gt;inverseWorldMatrix().mapRect(rc);
</pre>
-<p> <p>See also <a href="ntqwmatrix.html">TQWMatrix</a>, <a href="tqpainter.html#setWorldMatrix">TQPainter::setWorldMatrix</a>(), <a href="graphics.html">Graphics Classes</a>, and <a href="images.html">Image Processing Classes</a>.
+<p> <p>See also <a href="tqwmatrix.html">TQWMatrix</a>, <a href="tqpainter.html#setWorldMatrix">TQPainter::setWorldMatrix</a>(), <a href="graphics.html">Graphics Classes</a>, and <a href="images.html">Image Processing Classes</a>.
<p>
<hr><h2>Member Function Documentation</h2>
@@ -145,35 +145,35 @@ drawContents() is not called.
<p> <p>See also <a href="tqcanvas.html#setDoubleBuffering">TQCanvas::setDoubleBuffering</a>().
<p>Reimplemented from <a href="ntqscrollview.html#drawContents">TQScrollView</a>.
-<h3 class=fn>const&nbsp;<a href="ntqwmatrix.html">TQWMatrix</a>&nbsp;&amp; <a name="inverseWorldMatrix"></a>TQCanvasView::inverseWorldMatrix () const
+<h3 class=fn>const&nbsp;<a href="tqwmatrix.html">TQWMatrix</a>&nbsp;&amp; <a name="inverseWorldMatrix"></a>TQCanvasView::inverseWorldMatrix () const
</h3>
Returns a reference to the inverse of the canvas view's current
-<a href="ntqwmatrix.html#TransformationMode">transformation matrix</a>.
+<a href="tqwmatrix.html#TransformationMode">transformation matrix</a>.
<p> <p>See also <a href="#setWorldMatrix">setWorldMatrix</a>() and <a href="#worldMatrix">worldMatrix</a>().
<h3 class=fn>void <a name="setCanvas"></a>TQCanvasView::setCanvas ( <a href="tqcanvas.html">TQCanvas</a>&nbsp;*&nbsp;canvas )
</h3>
Sets the canvas that the TQCanvasView is showing to the canvas <em>canvas</em>.
-<h3 class=fn>bool <a name="setWorldMatrix"></a>TQCanvasView::setWorldMatrix ( const&nbsp;<a href="ntqwmatrix.html">TQWMatrix</a>&nbsp;&amp;&nbsp;wm )
+<h3 class=fn>bool <a name="setWorldMatrix"></a>TQCanvasView::setWorldMatrix ( const&nbsp;<a href="tqwmatrix.html">TQWMatrix</a>&nbsp;&amp;&nbsp;wm )
</h3>
-Sets the <a href="ntqwmatrix.html#TransformationMode">transformation matrix</a> of the TQCanvasView to <em>wm</em>. The
+Sets the <a href="tqwmatrix.html#TransformationMode">transformation matrix</a> of the TQCanvasView to <em>wm</em>. The
matrix must be invertible (i.e. if you create a world matrix that
zooms out by 2 times, then the inverse of this matrix is one that
will zoom in by 2 times).
<p> When you use this, you should note that the performance of the
TQCanvasView will decrease considerably.
<p> Returns FALSE if <em>wm</em> is not invertable; otherwise returns TRUE.
-<p> <p>See also <a href="#worldMatrix">worldMatrix</a>(), <a href="#inverseWorldMatrix">inverseWorldMatrix</a>(), and <a href="ntqwmatrix.html#isInvertible">TQWMatrix::isInvertible</a>().
+<p> <p>See also <a href="#worldMatrix">worldMatrix</a>(), <a href="#inverseWorldMatrix">inverseWorldMatrix</a>(), and <a href="tqwmatrix.html#isInvertible">TQWMatrix::isInvertible</a>().
<p>Example: <a href="canvas-example.html#x2930">canvas/canvas.cpp</a>.
<h3 class=fn><a href="tqsize.html">TQSize</a> <a name="sizeHint"></a>TQCanvasView::sizeHint () const<tt> [virtual protected]</tt>
</h3>
Suggests a size sufficient to view the entire canvas.
-<h3 class=fn>const&nbsp;<a href="ntqwmatrix.html">TQWMatrix</a>&nbsp;&amp; <a name="worldMatrix"></a>TQCanvasView::worldMatrix () const
+<h3 class=fn>const&nbsp;<a href="tqwmatrix.html">TQWMatrix</a>&nbsp;&amp; <a name="worldMatrix"></a>TQCanvasView::worldMatrix () const
</h3>
-Returns a reference to the canvas view's current <a href="ntqwmatrix.html#TransformationMode">transformation matrix</a>.
+Returns a reference to the canvas view's current <a href="tqwmatrix.html#TransformationMode">transformation matrix</a>.
<p> <p>See also <a href="#setWorldMatrix">setWorldMatrix</a>() and <a href="#inverseWorldMatrix">inverseWorldMatrix</a>().
<p>Example: <a href="canvas-example.html#x2931">canvas/canvas.cpp</a>.