diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-31 13:38:31 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-31 13:43:03 +0900 |
| commit | 6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch) | |
| tree | b029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqbitmap.3qt | |
| parent | 81ade129093a279e6537db25710583fd2bba9427 (diff) | |
| download | tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip | |
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqbitmap.3qt')
| -rw-r--r-- | doc/man/man3/tqbitmap.3qt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/man/man3/tqbitmap.3qt b/doc/man/man3/tqbitmap.3qt index ea088d085..563edf9a6 100644 --- a/doc/man/man3/tqbitmap.3qt +++ b/doc/man/man3/tqbitmap.3qt @@ -19,16 +19,16 @@ Inherits QPixmap. .BI "\fBQBitmap\fR ()" .br .ti -1c -.BI "\fBQBitmap\fR ( int w, int h, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.BI "\fBQBitmap\fR ( int w, int h, bool clear = false, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" .br .ti -1c -.BI "\fBQBitmap\fR ( const QSize & size, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.BI "\fBQBitmap\fR ( const QSize & size, bool clear = false, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" .br .ti -1c -.BI "\fBQBitmap\fR ( int w, int h, const uchar * bits, bool isXbitmap = FALSE )" +.BI "\fBQBitmap\fR ( int w, int h, const uchar * bits, bool isXbitmap = false )" .br .ti -1c -.BI "\fBQBitmap\fR ( const QSize & size, const uchar * bits, bool isXbitmap = FALSE )" +.BI "\fBQBitmap\fR ( const QSize & size, const uchar * bits, bool isXbitmap = false )" .br .ti -1c .BI "\fBQBitmap\fR ( const QBitmap & bitmap )" @@ -68,26 +68,26 @@ See also QPixmap, QPainter::drawPixmap(), bitBlt(), Shared Classes, Graphics Cla Constructs a null bitmap. .PP See also QPixmap::isNull(). -.SH "QBitmap::QBitmap ( int w, int h, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.SH "QBitmap::QBitmap ( int w, int h, bool clear = false, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" Constructs a bitmap with width \fIw\fR and height \fIh\fR. .PP -The contents of the bitmap is uninitialized if \fIclear\fR is FALSE; otherwise it is filled with pixel value 0 (the TQColor \fCQt::color0\fR). +The contents of the bitmap is uninitialized if \fIclear\fR is false; otherwise it is filled with pixel value 0 (the TQColor \fCQt::color0\fR). .PP The optional \fIoptimization\fR argument specifies the optimization setting for the bitmap. The default optimization should be used in most cases. Games and other pixmap-intensive applications may benefit from setting this argument; see QPixmap::Optimization. .PP See also QPixmap::setOptimization() and QPixmap::setDefaultOptimization(). -.SH "QBitmap::QBitmap ( const QSize & size, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.SH "QBitmap::QBitmap ( const QSize & size, bool clear = false, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Constructs a bitmap with the size \fIsize\fR. .PP -The contents of the bitmap is uninitialized if \fIclear\fR is FALSE; otherwise it is filled with pixel value 0 (the TQColor \fCQt::color0\fR). +The contents of the bitmap is uninitialized if \fIclear\fR is false; otherwise it is filled with pixel value 0 (the TQColor \fCQt::color0\fR). .PP The optional \fIoptimization\fR argument specifies the optimization setting for the bitmap. The default optimization should be used in most cases. Games and other pixmap-intensive applications may benefit from setting this argument; see QPixmap::Optimization. -.SH "QBitmap::QBitmap ( int w, int h, const uchar * bits, bool isXbitmap = FALSE )" +.SH "QBitmap::QBitmap ( int w, int h, const uchar * bits, bool isXbitmap = false )" Constructs a bitmap with width \fIw\fR and height \fIh\fR and sets the contents to \fIbits\fR. .PP -The \fIisXbitmap\fR flag should be TRUE if \fIbits\fR was generated by the X11 bitmap program. The X bitmap bit order is little endian. The TQImage documentation discusses bit order of monochrome images. +The \fIisXbitmap\fR flag should be true if \fIbits\fR was generated by the X11 bitmap program. The X bitmap bit order is little endian. The TQImage documentation discusses bit order of monochrome images. .PP Example (creates an arrow bitmap): .PP @@ -95,15 +95,15 @@ Example (creates an arrow bitmap): .br uchar arrow_bits[] = { 0x3f, 0x1f, 0x0f, 0x1f, 0x3b, 0x71, 0xe0, 0xc0 }; .br - QBitmap bm( 8, 8, arrow_bits, TRUE ); + QBitmap bm( 8, 8, arrow_bits, true ); .br .fi -.SH "QBitmap::QBitmap ( const QSize & size, const uchar * bits, bool isXbitmap = FALSE )" +.SH "QBitmap::QBitmap ( const QSize & size, const uchar * bits, bool isXbitmap = false )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Constructs a bitmap with the size \fIsize\fR and sets the contents to \fIbits\fR. .PP -The \fIisXbitmap\fR flag should be TRUE if \fIbits\fR was generated by the X11 bitmap program. The X bitmap bit order is little endian. The TQImage documentation discusses bit order of monochrome images. +The \fIisXbitmap\fR flag should be true if \fIbits\fR was generated by the X11 bitmap program. The X bitmap bit order is little endian. The TQImage documentation discusses bit order of monochrome images. .SH "QBitmap::QBitmap ( const QBitmap & bitmap )" Constructs a bitmap that is a copy of \fIbitmap\fR. .SH "QBitmap::QBitmap ( const TQString & fileName, const char * format = 0 )" |
