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

📄 qrect.3qt

📁 tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件
💻 3QT
📖 第 1 页 / 共 2 页
字号:
..SH "bool QRect::intersects ( const QRect & r ) const"Returns TRUE if this rectangle intersects with \fIr\fR (there is at least one pixel which is within both rectangles)..PPSee also: intersect() and contains()..SH "bool QRect::isEmpty () const"Returns TRUE if the rectangle is empty, otherwise FALSE..PPAn empty rectangle has a left() > right() or top() > bottom()..PPAn empty rectangle is not valid..PP.nf.br isEmpty() == !isValid().fi.PPSee also: isNull() and isValid()..SH "bool QRect::isNull () const"Returns TRUE if the rectangle is a null rectangle, otherwise FALSE..PPA null rectangle has both the width and the height set to 0, that is right() == left() - 1 and bottom() == top() - 1..PPRemember that if right() == left() and bottom() == top(), then the rectangle has width 1 and height 1..PPA null rectangle is also empty..PPA null rectangle is not valid..PPSee also: isEmpty() and isValid()..SH "bool QRect::isValid () const"Returns TRUE if the rectangle is valid, or FALSE if it is invalid (empty)..PPA valid rectangle has a left() <= right() and top() <= bottom()..PP.nf.br isValid() == !isEmpty().fi.PPSee also: isNull(), isEmpty() and normalize()..SH "int QRect::left () const"Returns the left coordinate of the rectangle. Identical to x()..PPSee also: x(), top(), right(), setLeft(), topLeft() and bottomLeft()..PPExamples:.(lxform/xform.cpp desktop/desktop.cpp.)l.SH "void QRect::moveBottomLeft ( const QPoint & p )"Sets the bottom left position of the rectangle to \fIp,\fR leaving the size unchanged..PPSee also: bottomLeft(), moveBottomRight(), moveTopLeft(), moveTopRight(), setBottom() and setLeft()..SH "void QRect::moveBottomRight ( const QPoint & p )"Sets the bottom right position of the rectangle to \fIp,\fR leaving the size unchanged..PPSee also: bottomRight(), moveBottomLeft(), moveTopLeft(), moveTopRight(), setBottom() and setRight()..SH "void QRect::moveBy ( int dx, int dy )"Moves the rectangle \fIdx\fR along the X axis and \fIdy\fR along the Y axis, relative to the current position. (Positive values moves the rectangle rightwards and/or downwards.)..PPExamples:.(lxform/xform.cpp.)l.SH "void QRect::moveCenter ( const QPoint & p )"Sets the center point of the rectangle to \fIp,\fR leaving the size unchanged..PPSee also: center(), moveTopLeft(), moveTopRight(), moveBottomLeft() and moveBottomRight()..SH "void QRect::moveTopLeft ( const QPoint & p )"Sets the top left position of the rectangle to \fIp,\fR leaving the size unchanged..PPSee also: topLeft(), moveTopRight(), moveBottomLeft(), moveBottomRight(), setTop() and setLeft()..PPExamples:.(lxform/xform.cpp.)l.SH "void QRect::moveTopRight ( const QPoint & p )"Sets the top right position of the rectangle to \fIp,\fR leaving the size unchanged..PPSee also: topRight(), moveTopLeft(), moveBottomLeft(), moveBottomRight(), setTop() and setRight()..SH "QRect QRect::normalize () const"Returns a normalized rectangle, i.e. one that has a non-negative width and height..PPIt swaps left and right if left() > right(), and swaps top and bottom if top() > bottom()..PPSee also: isValid()..SH "QRect QRect::operator& ( const QRect & r ) const"Returns the intersection of this rectangle and \fIr.\fR.PPReturns an empty rectangle if there is no intersection..PPSee also: operator&=(), operator|(), isEmpty(), intersects() and contains()..SH "QRect& QRect::operator&= ( const QRect & r )"Intersects this rectangle with \fIr.\fR.SH "QRect QRect::operator| ( const QRect & r ) const"Returns the bounding rectangle of this and \fIr.\fR.PPThe bounding rectangle of a nonempty rectangle and an empty or invalid rectangle is defined to be the nonempty rectangle..PPSee also: operator|=(), operator&(), intersects() and contains()..SH "QRect& QRect::operator|= ( const QRect & r )"Unites this rectangle with \fIr.\fR.SH "QCOORD & QRect::rBottom ()"Returns the reference to the bottom coordinate of the rectangle..PPSee also: rLeft(), rTop() and rRight()..SH "QCOORD & QRect::rLeft ()"Returns the reference to the left coordinate of the rectangle..PPSee also: rTop(), rRight() and rBottom()..SH "QCOORD & QRect::rRight ()"Returns the reference to the right coordinate of the rectangle..PPSee also: rLeft(), rTop() and rBottom()..SH "QCOORD & QRect::rTop ()"Returns the reference to the top coordinate of the rectangle..PPSee also: rLeft(), rRight() and rBottom()..SH "void QRect::rect ( int * x, int * y, int * w, int * h ) const"Extracts the rectangle parameters as the position and the size..PPSee also: setRect() and coords()..SH "int QRect::right () const"Returns the right coordinate of the rectangle..PPSee also: left(), setRight(), topRight() and bottomRight()..PPExamples:.(ldesktop/desktop.cpp.)l.SH "void QRect::setBottom ( int pos )"Sets the bottom edge of the rectangle. May change the height, but will never change the top edge of the rectangle..PPSee also: bottom(), setTop() and setHeight()..SH "void QRect::setCoords ( int xp1, int yp1, int xp2, int yp2 )"Sets the coordinates of the rectangle's top left corner to \fI(xp1,yp1),\fR and the coordinates of its bottom right corner to \fI(xp2,yp2).\fR.PPSee also: coords() and setRect()..SH "void QRect::setHeight ( int h )"Sets the height of the rectangle to \fIh.\fR The top edge is not moved, but the bottom edge may be moved..PPSee also: height(), setTop(), setBottom() and setSize()..PPExamples:.(ldesktop/desktop.cpp.)l.SH "void QRect::setLeft ( int pos )"Sets the left edge of the rectangle. May change the width, but will never change the right edge of the rectangle..PPIdentical to setX()..PPSee also: left(), setTop() and setWidth()..SH "void QRect::setRect ( int x, int y, int w, int h )"Sets the coordinates of the rectangle's top left corner to \fI(x,y),\fR and its size to (w,h)..PPSee also: rect() and setCoords()..SH "void QRect::setRight ( int pos )"Sets the right edge of the rectangle. May change the width, but will never change the left edge of the rectangle..PPSee also: right(), setLeft() and setWidth()..SH "void QRect::setSize ( const QSize & s )"Sets the size of the rectangle to \fIs.\fR The top left corner is not moved..PPSee also: size(), setWidth() and setHeight()..PPExamples:.(lxform/xform.cpp.)l.SH "void QRect::setTop ( int pos )"Sets the top edge of the rectangle. May change the height, but will never change the bottom edge of the rectangle..PPIdentical to setY()..PPSee also: top(), setBottom() and setHeight()..SH "void QRect::setWidth ( int w )"Sets the width of the rectangle to \fIw.\fR The right edge is changed, but not the left edge..PPSee also: width(), setLeft(), setRight() and setSize()..PPExamples:.(ldesktop/desktop.cpp.)l.SH "void QRect::setX ( int x )"Sets the x position of the rectangle (its left end). May change the width, but will never change the right edge of the rectangle..PPIdentical to setLeft()..PPSee also: x() and setY()..SH "void QRect::setY ( int y )"Sets the y position of the rectangle (its top). May change the height, but will never change the bottom edge of the rectangle..PPIdentical to setTop()..PPSee also: y() and setX()..SH "QSize QRect::size () const"Returns the size of the rectangle..PPSee also: width() and height()..PPExamples:.(ldesktop/desktop.cpp movies/main.cpp.)l.SH "int QRect::top () const"Returns the top coordinate of the rectangle. Identical to y()..PPSee also: y(), left(), bottom(), setTop(), topLeft() and topRight()..PPExamples:.(lxform/xform.cpp desktop/desktop.cpp.)l.SH "QPoint QRect::topLeft () const"Returns the top left position of the rectangle..PPSee also: moveTopLeft(), topRight(), bottomLeft(), bottomRight(), left() and top()..SH "QPoint QRect::topRight () const"Returns the top right position of the rectangle..PPSee also: moveTopRight(), topLeft(), bottomLeft(), bottomRight(), top() and right()..SH "QRect QRect::unite ( const QRect & r ) const".nf.br r.unite(s).fiis equivalent to.PP.nf.br r|s.fi..PPExamples:.(lxform/xform.cpp.)l.SH "int QRect::width () const"Returns the width of the rectangle. The width includes both the left and right edges, ie. width = right - left + 1..PPSee also: height(), size() and setHeight()..PPExamples:.(lxform/xform.cpp desktop/desktop.cpp movies/main.cpp.)l.SH "int QRect::x () const"Returns the left coordinate of the rectangle. Identical to left()..PPSee also: left(), y() and setX()..PPExamples:.(lxform/xform.cpp desktop/desktop.cpp movies/main.cpp.)l.SH "int QRect::y () const"Returns the top coordinate of the rectangle. Identical to top()..PPSee also: top(), x() and setY()..PPExamples:.(lxform/xform.cpp desktop/desktop.cpp movies/main.cpp.)l.SH RELATED FUNCTION DOCUMENTATION.SH "bool operator== (const QRect & r1, const QRect & r2)"Returns TRUE if \fIr1\fR and \fIr2\fR are equal, or FALSE if they are different..SH "QDataStream & operator>> (QDataStream & s, QRect & r)"Reads a QRect from the stream and returns a reference to the stream..SH "QDataStream & operator<< (QDataStream & s, const QRect & r)"Writes a QRect to the stream and returns a reference to the stream..PPSerialization format: [left (Q_INT32), top (Q_INT32), right (Q_INT32), bottom (Q_INT32)]..SH "bool operator!= (const QRect & r1, const QRect & r2)"Returns TRUE if \fIr1\fR and \fIr2\fR are different, or FALSE if they are equal..SH "SEE ALSO".BR http://www.troll.no/qt/qrect.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

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