From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/ntqpen.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc/html/ntqpen.html') diff --git a/doc/html/ntqpen.html b/doc/html/ntqpen.html index 21d9fa7f1..d9778583e 100644 --- a/doc/html/ntqpen.html +++ b/doc/html/ntqpen.html @@ -1,5 +1,5 @@ - + @@ -67,7 +67,7 @@ of shapes.

Detailed Description

-The TQPen class defines how a TQPainter should draw lines and outlines +The TQPen class defines how a TQPainter should draw lines and outlines of shapes.

@@ -83,31 +83,31 @@ line width of 1). For horizontal and vertical lines a line width of 0 is the same as a line width of 1. The cap and join style have no effect on 0-width lines.

The pen color defines the color of lines and text. The default -line color is black. The TQColor documentation lists predefined +line color is black. The TQColor documentation lists predefined colors.

The cap style defines how the end points of lines are drawn. The join style defines how the joins between two lines are drawn when -multiple connected lines are drawn (TQPainter::drawPolyline() +multiple connected lines are drawn (TQPainter::drawPolyline() etc.). The cap and join styles only apply to wide lines, i.e. when the width is 1 or greater. -

Use the TQBrush class to specify fill styles. +

Use the TQBrush class to specify fill styles.

Example:

-    TQPainter painter;
+    TQPainter painter;
     TQPen     pen( red, 2 );             // red solid line, 2 pixels wide
-    painter.begin( &anyPaintDevice );   // paint something
-    painter.setPen( pen );              // set the red, wide pen
-    painter.drawRect( 40,30, 200,100 ); // draw a rectangle
-    painter.setPen( blue );             // set blue pen, 0 pixel width
-    painter.drawLine( 40,30, 240,130 ); // draw a diagonal in rectangle
-    painter.end();                      // painting done
+    painter.begin( &anyPaintDevice );   // paint something
+    painter.setPen( pen );              // set the red, wide pen
+    painter.drawRect( 40,30, 200,100 ); // draw a rectangle
+    painter.setPen( blue );             // set blue pen, 0 pixel width
+    painter.drawLine( 40,30, 240,130 ); // draw a diagonal in rectangle
+    painter.end();                      // painting done
     

See the TQt::PenStyle enum type for a complete list of pen styles.

With reference to the end points of lines, for wide (non-0-width) pens it depends on the cap style whether the end point is drawn or -not. TQPainter will try to make sure that the end point is drawn +not. TQPainter will try to make sure that the end point is drawn for 0-width pens, but this cannot be absolutely guaranteed because the underlying drawing engine is free to use any (typically accelerated) algorithm for drawing 0-width lines. On all tested @@ -118,7 +118,7 @@ be set in the constructor or later with setColor(), setStyle(), setCapStyle() and setJoinStyle(). Pens may also be compared and streamed.

Pen styles
-

See also TQPainter, TQPainter::setPen(), Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. +

See also TQPainter, TQPainter::setPen(), Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes.


Member Function Documentation

TQPen::TQPen () @@ -131,12 +131,12 @@ renders lines 1 pixel wide (fast diagonals). Constructs a black pen with 0 width (fast diagonals) and style style.

See also setStyle(). -

TQPen::TQPen ( const TQColor & color, uint width = 0, PenStyle style = SolidLine ) +

TQPen::TQPen ( const TQColor & color, uint width = 0, PenStyle style = SolidLine )

Constructs a pen with the specified color, width and style.

See also setWidth(), setStyle(), and setColor(). -

TQPen::TQPen ( const TQColor & cl, uint w, PenStyle s, PenCapStyle c, PenJoinStyle j ) +

TQPen::TQPen ( const TQColor & cl, uint w, PenStyle s, PenCapStyle c, PenJoinStyle j )

Constructs a pen with the specified color cl and width w. The pen style is set to s, the pen cap style to c and the @@ -162,7 +162,7 @@ Destroys the pen. Returns the pen's cap style.

See also setCapStyle(). -

const TQColor & TQPen::color () const +

const TQColor & TQPen::color () const

Returns the pen color. @@ -204,7 +204,7 @@ no effect. Wide lines are rendered as if the cap style was capStyle().

Example: themes/wood.cpp. -

void TQPen::setColor ( const TQColor & c ) +

void TQPen::setColor ( const TQColor & c )

Sets the pen color to c.

See also color(). -- cgit v1.2.1