summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqpainter_x11.cpp')
-rw-r--r--tqtinterface/qt4/src/kernel/tqpainter_x11.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp b/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
index 05d5c76..7e68625 100644
--- a/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
@@ -1474,7 +1474,7 @@ void TQPainter::flush()
The background color is the color that is filled in when drawing
opaque text, stippled lines and bitmaps. The background color has
- no effect in transtqparent background mode (which is the default).
+ no effect in transparent background mode (which is the default).
\sa backgroundColor() setBackgroundMode() BackgroundMode
*/
@@ -1504,7 +1504,7 @@ void TQPainter::setBackgroundColor( const TQColor &c )
Sets the background mode of the painter to \a m, which must be
either \c TransparentMode (the default) or \c OpaqueMode.
- Transtqparent mode draws stippled lines and text without setting the
+ Transparent mode draws stippled lines and text without setting the
background pixels. Opaque mode fills these space with the current
background color.
@@ -2736,7 +2736,7 @@ void TQPainter::drawCubicBezier( const TQPointArray &a, int index )
The default, (-1, -1), means all the way to the bottom right of
the pixmap.
- Currently the tqmask of the pixmap or it's alpha channel are ignored
+ Currently the mask of the pixmap or it's alpha channel are ignored
when painting on a TQPrinter.
\sa bitBlt(), TQPixmap::setMask()
@@ -2786,11 +2786,11 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
sw != pixmap.width() || sh != pixmap.height() ) {
TQPixmap tmp( sw, sh, pixmap.depth() );
bitBlt( &tmp, 0, 0, &pixmap, sx, sy, sw, sh, CopyROP, TRUE );
- if ( pixmap.tqmask() ) {
- TQBitmap tqmask( sw, sh );
- bitBlt( &tqmask, 0, 0, pixmap.tqmask(), sx, sy, sw, sh,
+ if ( pixmap.mask() ) {
+ TQBitmap mask( sw, sh );
+ bitBlt( &mask, 0, 0, pixmap.mask(), sx, sy, sw, sh,
CopyROP, TRUE );
- tmp.setMask( tqmask );
+ tmp.setMask( mask );
}
drawPixmap( x, y, tmp );
return;
@@ -2809,7 +2809,7 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
dx(), dy() );
mat = TQPixmap::trueMatrix( mat, sw, sh );
TQPixmap pm = pixmap.xForm( mat );
- if ( !pm.tqmask() && txop == TxRotShear ) {
+ if ( !pm.mask() && txop == TxRotShear ) {
TQBitmap bm_clip( sw, sh, 1 );
bm_clip.fill( color1 );
pm.setMask( bm_clip.xForm(mat) );
@@ -2827,10 +2827,10 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
map( x, y, &x, &y );
}
- TQBitmap *tqmask = (TQBitmap *)pixmap.tqmask();
+ TQBitmap *mask = (TQBitmap *)pixmap.mask();
bool mono = pixmap.depth() == 1;
- if ( tqmask && !hasClipping() && pdev != paintEventDevice ) {
+ if ( mask && !hasClipping() && pdev != paintEventDevice ) {
if ( mono ) { // needs GCs pen color
bool selfmask = pixmap.data->selfmask;
if ( selfmask ) {
@@ -2839,7 +2839,7 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
} else {
XSetFillStyle( dpy, gc, FillOpaqueStippled );
XSetStipple( dpy, gc, pixmap.handle() );
- XSetClipMask( dpy, gc, tqmask->handle() );
+ XSetClipMask( dpy, gc, mask->handle() );
XSetClipOrigin( dpy, gc, x-sx, y-sy );
}
XSetTSOrigin( dpy, gc, x-sx, y-sy );
@@ -2861,9 +2861,9 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
TQRegion rgn = crgn;
- if ( tqmask ) { // pixmap has clip tqmask
+ if ( mask ) { // pixmap has clip mask
// Implies that clipping is on, either explicit or implicit
- // Create a new tqmask that combines the tqmask with the clip region
+ // Create a new mask that combines the mask with the clip region
if ( pdev == paintEventDevice && paintEventClipRegion ) {
if ( hasClipping() )
@@ -2883,15 +2883,15 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
XRectangle *rects = (XRectangle *)qt_getClipRects( rgn, num );
XSetClipRectangles( dpy, cgc, -x, -y, rects, num, YXBanded );
XSetFillStyle( dpy, cgc, FillOpaqueStippled );
- XSetStipple( dpy, cgc, tqmask->handle() );
+ XSetStipple( dpy, cgc, mask->handle() );
XSetTSOrigin( dpy, cgc, -sx, -sy );
XFillRectangle( dpy, comb->handle(), cgc, 0, 0, sw, sh );
XSetTSOrigin( dpy, cgc, 0, 0 ); // restore cgc
XSetFillStyle( dpy, cgc, FillSolid );
XSetClipMask( dpy, cgc, None );
- tqmask = comb; // it's deleted below
+ mask = comb; // it's deleted below
- XSetClipMask( dpy, gc, tqmask->handle() );
+ XSetClipMask( dpy, gc, mask->handle() );
XSetClipOrigin( dpy, gc, x, y );
}
@@ -2920,10 +2920,10 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap,
}
}
- if ( tqmask ) { // restore clipping
+ if ( mask ) { // restore clipping
XSetClipOrigin( dpy, gc, 0, 0 );
XSetRegion( dpy, gc, rgn.handle() );
- delete tqmask; // delete comb, created above
+ delete mask; // delete comb, created above
}
}
@@ -3010,11 +3010,11 @@ void TQPainter::drawTiledPixmap( int x, int y, int w, int h,
- not an external tqdevice
- not scale or rotshear
- not mono pixmap
- - no tqmask
+ - no mask
*/
- TQBitmap *tqmask = (TQBitmap *)pixmap.tqmask();
+ TQBitmap *mask = (TQBitmap *)pixmap.mask();
if ( !testf(ExtDev) && txop <= TxTranslate && pixmap.depth() > 1 &&
- tqmask == 0 ) {
+ mask == 0 ) {
if ( txop == TxTranslate )
map( x, y, &x, &y );
@@ -3074,10 +3074,10 @@ void TQPainter::drawTiledPixmap( int x, int y, int w, int h,
}
TQPixmap tile( tw, th, pixmap.depth(), TQPixmap::NormalOptim );
fillTile( &tile, pixmap );
- if ( tqmask ) {
- TQBitmap tiletqmask( tw, th, TQPixmap::NormalOptim );
- fillTile( &tiletqmask, *tqmask );
- tile.setMask( tiletqmask );
+ if ( mask ) {
+ TQBitmap tilemask( tw, th, TQPixmap::NormalOptim );
+ fillTile( &tilemask, *mask );
+ tile.setMask( tilemask );
}
drawTile( this, x, y, w, h, tile, sx, sy );
} else {