qgeorectangle.sip 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // qgeorectangle.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtPositioning Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. %If (Qt_6_2_0 -)
  22. class QGeoRectangle : public QGeoShape
  23. {
  24. %TypeHeaderCode
  25. #include <qgeorectangle.h>
  26. %End
  27. public:
  28. QGeoRectangle();
  29. QGeoRectangle(const QGeoCoordinate &center, double degreesWidth, double degreesHeight);
  30. QGeoRectangle(const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight);
  31. QGeoRectangle(const QList<QGeoCoordinate> &coordinates);
  32. QGeoRectangle(const QGeoRectangle &other);
  33. QGeoRectangle(const QGeoShape &other);
  34. ~QGeoRectangle();
  35. void setTopLeft(const QGeoCoordinate &topLeft);
  36. QGeoCoordinate topLeft() const;
  37. void setTopRight(const QGeoCoordinate &topRight);
  38. QGeoCoordinate topRight() const;
  39. void setBottomLeft(const QGeoCoordinate &bottomLeft);
  40. QGeoCoordinate bottomLeft() const;
  41. void setBottomRight(const QGeoCoordinate &bottomRight);
  42. QGeoCoordinate bottomRight() const;
  43. void setCenter(const QGeoCoordinate &center);
  44. QGeoCoordinate center() const;
  45. void setWidth(double degreesWidth);
  46. double width() const;
  47. void setHeight(double degreesHeight);
  48. double height() const;
  49. bool contains(const QGeoRectangle &rectangle) const;
  50. bool intersects(const QGeoRectangle &rectangle) const;
  51. void translate(double degreesLatitude, double degreesLongitude);
  52. QGeoRectangle translated(double degreesLatitude, double degreesLongitude) const;
  53. QGeoRectangle united(const QGeoRectangle &rectangle) const;
  54. QGeoRectangle &operator|=(const QGeoRectangle &rectangle);
  55. QGeoRectangle operator|(const QGeoRectangle &rectangle) const;
  56. QString toString() const;
  57. void extendRectangle(const QGeoCoordinate &coordinate);
  58. };
  59. %End
  60. %If (Qt_6_5_0 -)
  61. QDataStream &operator<<(QDataStream &stream, const QGeoRectangle &rectangle) /ReleaseGIL/;
  62. %End
  63. %If (Qt_6_5_0 -)
  64. QDataStream &operator>>(QDataStream &stream, QGeoRectangle &rectangle /Constrained/) /ReleaseGIL/;
  65. %End