Qt:Документация 4.3.2/qrect-qt3
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Qt 3 Support Members for QRect
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
[править] Открытые функции
- void addCoords ( int dx1, int dy1, int dx2, int dy2 )
- void coords ( int * x1, int * y1, int * x2, int * y2 ) const
- void moveBy ( int dx, int dy )
- void moveBy ( const QPoint & p )
- QRect normalize () const
- int & rBottom ()
- int & rLeft ()
- int & rRight ()
- int & rTop ()
- void rect ( int * x, int * y, int * width, int * height ) const
[править] Описание функций-членов
[править] void QRect::addCoords ( int dx1, int dy1, int dx2, int dy2 )
Adds dx1, dy1, dx2 and dy2 to the existing coordinates of the rectangle respectively.
Use the adjust() function instead.
[править] void QRect::coords ( int * x1, int * y1, int * x2, int * y2 ) const
Extracts the position of the rectangle's top-left corner to *x1 and *y1, and the position of the bottom-right corner to *x2 and *y2.
Use the getCoords() function instead.
See also setCoords().
[править] void QRect::moveBy ( int dx, int dy )
Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position.
Use the translate() function instead.
[править] void QRect::moveBy ( const QPoint & p )
This is an overloaded member function, provided for convenience.
Use the translate() function instead.
[править] QRect QRect::normalize () const
Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.
Use the normalized() function instead
[править] int & QRect::rBottom ()
Returns a reference to the bottom coordinate of the rectangle.
Use the bottom() function instead.
[править] int & QRect::rLeft ()
Returns a reference to the left coordinate of the rectangle.
Use the left() function instead.
[править] int & QRect::rRight ()
Returns a reference to the right coordinate of the rectangle.
Use the right() function instead.
[править] int & QRect::rTop ()
Returns a reference to the top coordinate of the rectangle.
Use the top() function instead.
[править] void QRect::rect ( int * x, int * y, int * width, int * height ) const
Extracts the position of the rectangle's top-left corner to *x and *y, and its dimensions to *width and * height.
Use the getRect() function instead.
See also setRect().
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|