Поддерживаемые члены Qt 3 класса QRectОписанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде. Открытые функции
Описание функций-членов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Извлекает позицию верхнего левого угла прямоугольника в *x1 и *y1, и позицию нижнего правого угла в *x2 и *y2. Use the getCoords() function instead. See also setCoords(). void QRect::moveBy ( int dx, int dy )Перемещает прямоугольник на dx вдоль оси X и на dy вдоль оси Y, относительно текущей позиции. Use the translate() function instead. void QRect::moveBy ( const QPoint & p )Это перегруженная функция, предоставленная для удобства. Use the translate() function instead. QRect QRect::normalize () constВозвращает нормализованный прямоугольник; т.е., прямоугольник, который имеет неотрицательную ширину и высоту. 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 ) constExtracts 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. Смотрите также setRect().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |