⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qpaintdevice.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
📖 第 1 页 / 共 2 页
字号:
See also Graphics Classes and Image Processing Classes..SH MEMBER FUNCTION DOCUMENTATION.SH "QPaintDevice::QPaintDevice ( uint devflags )\fC [protected]\fR"Constructs a paint device with internal flags \fIdevflags\fR. This constructor can be invoked only from QPaintDevice subclasses..SH "QPaintDevice::~QPaintDevice ()\fC [virtual]\fR"Destroys the paint device and frees window system resources..SH "bool QPaintDevice::cmd ( int, QPainter *, QPDevCmdParam * )\fC [virtual protected]\fR"Internal virtual function that interprets drawing commands from the painter..PPImplemented by subclasses that have no direct support for drawing graphics (external paint devices, for example, QPicture)..SH "Qt::HANDLE QPaintDevice::handle () const\fC [virtual]\fR"Returns the window system handle of the paint device, for low-level access. Using this function is not portable..PPThe HANDLE type varies with platform; see qpaintdevice.h and qwindowdefs.h for details..PPSee also x11Display()..SH "bool QPaintDevice::isExtDev () const"Returns TRUE if the device is an external paint device; otherwise returns FALSE..PPExternal paint devices cannot be bitBlt()'ed from. QPicture and QPrinter are external paint devices..SH "bool QPaintDevice::paintingActive () const"Returns TRUE if the device is being painted, i.e. someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns FALSE..PPSee also QPainter::isActive()..SH "int QPaintDevice::x11AppCells ()\fC [static]\fR"Returns the number of entries in the colormap for the default screen of the X display global to the application (X11 only). Using this function is not portable..PPSee also x11Colormap()..SH "int QPaintDevice::x11AppCells ( int screen )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the number of entries in the colormap for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable..PPSee also x11Colormap()..SH "Qt::HANDLE QPaintDevice::x11AppColormap ()\fC [static]\fR"Returns the colormap for the default screen of the X display global to the application (X11 only). Using this function is not portable..PPSee also x11Cells()..SH "Qt::HANDLE QPaintDevice::x11AppColormap ( int screen )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the colormap for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable..PPSee also x11Cells()..SH "bool QPaintDevice::x11AppDefaultColormap ()\fC [static]\fR"Returns the default colormap for the default screen of the X display global to the application (X11 only). Using this function is not portable..PPSee also x11Cells()..SH "bool QPaintDevice::x11AppDefaultColormap ( int screen )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the default colormap for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable..PPSee also x11Cells()..SH "bool QPaintDevice::x11AppDefaultVisual ()\fC [static]\fR"Returns TRUE if the Visual used is the default for the default screen of the X display global to the application (X11 only); otherwise returns FALSE. Using this function is not portable..SH "bool QPaintDevice::x11AppDefaultVisual ( int screen )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns TRUE if the Visual used is the default for screen \fIscreen\fR of the X display global to the application (X11 only); otherwise returns FALSE. Using this function is not portable..SH "int QPaintDevice::x11AppDepth ( int screen )\fC [static]\fR"Returns the depth for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable..PPSee also QPixmap::defaultDepth()..SH "int QPaintDevice::x11AppDepth ()\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the depth for the default screen of the X display global to the application (X11 only). Using this function is not portable..PPSee also QPixmap::defaultDepth()..SH "Display * QPaintDevice::x11AppDisplay ()\fC [static]\fR"Returns a pointer to the X display global to the application (X11 only). Using this function is not portable..PPSee also handle()..SH "int QPaintDevice::x11AppDpiX ( int screen )\fC [static]\fR"Returns the horizontal DPI of the X display (X11 only) for screen \fIscreen\fR. Using this function is not portable. See QPaintDeviceMetrics for portable access to related information. Using this function is not portable..PPSee also x11AppDpiY(), x11SetAppDpiX(), and QPaintDeviceMetrics::logicalDpiX()..SH "int QPaintDevice::x11AppDpiX ()\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the horizontal DPI of the X display (X11 only) for the default screen. Using this function is not portable. See QPaintDeviceMetrics for portable access to related information. Using this function is not portable..SH "int QPaintDevice::x11AppDpiY ( int screen )\fC [static]\fR"Returns the vertical DPI of the X11 display (X11 only) for screen \fIscreen\fR. Using this function is not portable. See QPaintDeviceMetrics for portable access to related information. Using this function is not portable..PPSee also x11AppDpiX(), x11SetAppDpiY(), and QPaintDeviceMetrics::logicalDpiY()..SH "int QPaintDevice::x11AppDpiY ()\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the vertical DPI of the X11 display (X11 only) for the default screen. Using this function is not portable. See QPaintDeviceMetrics for portable access to related information. Using this function is not portable..PPSee also x11AppDpiX(), x11SetAppDpiY(), and QPaintDeviceMetrics::logicalDpiY()..SH "Qt::HANDLE QPaintDevice::x11AppRootWindow ()\fC [static]\fR"Returns the root window for the default screen of the X display global to the applicatoin (X11 only). Using this function is not portable..SH "Qt::HANDLE QPaintDevice::x11AppRootWindow ( int screen )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the root window for screen \fIscreen\fR of the X display global to the applicatoin (X11 only). Using this function is not portable..SH "int QPaintDevice::x11AppScreen ()\fC [static]\fR"Returns the screen number on the X display global to the application (X11 only). Using this function is not portable..SH "void * QPaintDevice::x11AppVisual ()\fC [static]\fR"Returns the Visual for the default screen of the X display global to the application (X11 only). Using this function is not portable..SH "void * QPaintDevice::x11AppVisual ( int screen )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the Visual for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable..SH "int QPaintDevice::x11Cells () const"Returns the number of entries in the colormap of the X display for the paint device (X11 only). Using this function is not portable..PPSee also x11Colormap()..SH "Qt::HANDLE QPaintDevice::x11Colormap () const"Returns the colormap of the X display for the paint device (X11 only). Using this function is not portable..PPSee also x11Cells()..SH "bool QPaintDevice::x11DefaultColormap () const"Returns the default colormap of the X display for the paint device (X11 only). Using this function is not portable..PPSee also x11Cells()..SH "bool QPaintDevice::x11DefaultVisual () const"Returns the default Visual of the X display for the paint device (X11 only). Using this function is not portable..SH "int QPaintDevice::x11Depth () const"Returns the depth of the X display for the paint device (X11 only). Using this function is not portable..PPSee also QPixmap::defaultDepth()..SH "Display * QPaintDevice::x11Display () const"Returns a pointer to the X display for the paint device (X11 only). Using this function is not portable..PPSee also handle()..SH "int QPaintDevice::x11Screen () const"Returns the screen number on the X display for the paint device (X11 only). Using this function is not portable..SH "void QPaintDevice::x11SetAppDpiX ( int dpi, int screen )\fC [static]\fR"Sets the value returned by x11AppDpiX() to \fIdpi\fR for screen \fIscreen\fR. The default is determined by the display configuration. Changing this value will alter the scaling of fonts and many other metrics and is not recommended. Using this function is not portable..PPSee also x11SetAppDpiY()..SH "void QPaintDevice::x11SetAppDpiX ( int dpi )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSets the value returned by x11AppDpiX() to \fIdpi\fR for the default screen. The default is determined by the display configuration. Changing this value will alter the scaling of fonts and many other metrics and is not recommended. Using this function is not portable..SH "void QPaintDevice::x11SetAppDpiY ( int dpi, int screen )\fC [static]\fR"Sets the value returned by x11AppDpiY() to \fIdpi\fR for screen \fIscreen\fR. The default is determined by the display configuration. Changing this value will alter the scaling of fonts and many other metrics and is not recommended. Using this function is not portable..PPSee also x11SetAppDpiX()..SH "void QPaintDevice::x11SetAppDpiY ( int dpi )\fC [static]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSets the value returned by x11AppDpiY() to \fIdpi\fR for the default screen. The default is determined by the display configuration. Changing this value will alter the scaling of fonts and many other metrics and is not recommended. Using this function is not portable..SH "void * QPaintDevice::x11Visual () const"Returns the Visual of the X display for the paint device (X11 only). Using this function is not portable..SH RELATED FUNCTION DOCUMENTATION.SH "void bitBlt ( QPaintDevice * dst, int dx, int dy, const QPaintDevice * src, int sx, int sy, int sw, int sh, Qt::RasterOp rop, bool ignoreMask )"Copies a block of pixels from \fIsrc\fR to \fIdst\fR, perhaps merging each pixel according to the raster operation \fIrop\fR. \fIsx\fR, \fIsy\fR is the top-left pixel in \fIsrc\fR (0, 0) by default, \fIdx\fR, \fIdy\fR is the top-left position in \fIdst\fR and \fIsw\fR, \fIsh\fR is the size of the copied block (all of \fIsrc\fR by default)..PPThe most common values for \fIrop\fR are CopyROP and XorROP; the Qt::RasterOp documentation defines all the possible values..PPIf \fIignoreMask\fR is TRUE (the default is FALSE) and \fIsrc\fR is a masked QPixmap, the entire blit is masked by \fIsrc\fR->mask()..PPIf \fIsrc\fR, \fIdst\fR, \fIsw\fR or \fIsh\fR is 0, bitBlt() does nothing. If \fIsw\fR or \fIsh\fR is negative bitBlt() copies starting at \fIsx\fR (and respectively, \fIsy\fR) and ending at the right end (respectively, bottom) of \fIsrc\fR..PP\fIsrc\fR must be a QWidget or QPixmap. You cannot blit from a QPrinter, for example. bitBlt() does nothing if you attempt to blit from an unsupported device..PPbitBlt() does nothing if \fIsrc\fR has a greater depth than \fIdst\fR. If you need to for example, draw a 24-bit pixmap on an 8-bit widget, you must use drawPixmap()..SH "void bitBlt ( QPaintDevice * dst, const QPoint & dp, const QPaintDevice * src, const QRect & sr, RasterOp rop )"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPOverloaded bitBlt() with the destination point \fIdp\fR and sourcerectangle \fIsr\fR..SH "SEE ALSO".BR http://doc.trolltech.com/qpaintdevice.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qpaintdevice.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -