Home
last modified time | relevance | path

Searched refs:topLeft (Results 1 – 25 of 64) sorted by relevance

123

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/positioning/
H A Dqgeorectangle.cpp235 QGeoRectangle::QGeoRectangle(const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight) in QGeoRectangle() argument
238 d_ptr = new QGeoRectanglePrivate(topLeft, bottomRight); in QGeoRectangle()
317 return topLeft.isValid() && bottomRight.isValid() && in isValid()
318 topLeft.latitude() >= bottomRight.latitude(); in isValid()
326 return topLeft.latitude() == bottomRight.latitude() || in isEmpty()
327 topLeft.longitude() == bottomRight.longitude(); in isEmpty()
333 void QGeoRectangle::setTopLeft(const QGeoCoordinate &topLeft) in setTopLeft() argument
337 d->topLeft = topLeft; in setTopLeft()
343 QGeoCoordinate QGeoRectangle::topLeft() const in topLeft() function in QGeoRectangle
347 return d->topLeft; in topLeft()
[all …]
H A Dqgeorectangle.h54 Q_PROPERTY(QGeoCoordinate topLeft READ topLeft WRITE setTopLeft)
63 QGeoRectangle(const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight);
78 void setTopLeft(const QGeoCoordinate &topLeft);
79 QGeoCoordinate topLeft() const;
H A Dqgeorectangle_p.h63 QGeoRectanglePrivate(const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight);
81 QGeoCoordinate topLeft; variable
H A Dqgeocircle.cpp318 QGeoCoordinate topLeft; in updateBoundingBox() local
319 topLeft.setLatitude(QLocationUtils::clipLat(m_center.latitude() + lat_delta_in_deg)); in updateBoundingBox()
320 topLeft.setLongitude(QLocationUtils::wrapLong(m_center.longitude() - lon_delta_in_deg)); in updateBoundingBox()
325 m_bbox = QGeoRectangle(topLeft, bottomRight); in updateBoundingBox()
H A Dqgeopath.cpp604 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in translate()
678 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in computeBoundingBox()
721 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in translate()
736 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in computeBoundingBox()
742 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in updateBoundingBox()
H A Dqgeopolygon.cpp192 perimeter << rect.topLeft() << rect.topRight() in QGeoPolygon()
561 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in translate()
676 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in translate()
698 m_leftBoundWrapped = QWebMercator::coordToMercator(m_bbox.topLeft()).x(); in computeBoundingBox()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/declarativemaps/
H A Dqdeclarativerectanglemapitem.cpp239 void QDeclarativeRectangleMapItem::setTopLeft(const QGeoCoordinate &topLeft) in setTopLeft() argument
241 if (m_rectangle.topLeft() == topLeft) in setTopLeft()
244 m_rectangle.setTopLeft(topLeft); in setTopLeft()
246 emit topLeftChanged(topLeft); in setTopLeft()
249 QGeoCoordinate QDeclarativeRectangleMapItem::topLeft() in topLeft() function in QDeclarativeRectangleMapItem
251 return m_rectangle.topLeft(); in topLeft()
366 const bool tlHasChanged = rectangle.topLeft() != m_rectangle.topLeft(); in setGeoShape()
372 emit topLeftChanged(m_rectangle.topLeft()); in setGeoShape()
382 …| !m_rectangle.isValid() || m_updatingGeometry || newGeometry.topLeft() == oldGeometry.topLeft()) { in geometryChanged()
398 emit topLeftChanged(m_rectangle.topLeft()); in geometryChanged()
H A Dqdeclarativerectanglemapitem_p_p.h119 m_geometry.setPreserveGeometry(true, m_rect.m_rectangle.topLeft()); in onItemGeometryChanged()
120 m_borderGeometry.setPreserveGeometry(true, m_rect.m_rectangle.topLeft()); in onItemGeometryChanged()
125 m_geometry.setPreserveGeometry(true, m_rect.m_rectangle.topLeft()); in afterViewportChanged()
126 m_borderGeometry.setPreserveGeometry(true, m_rect.m_rectangle.topLeft()); in afterViewportChanged()
131 if (!m_rect.topLeft().isValid() || !m_rect.bottomRight().isValid()) { in updatePolish()
146 m_geometry.setPreserveGeometry(true, m_rect.m_rectangle.topLeft()); in updatePolish()
158 m_borderGeometry.setPreserveGeometry(true, m_rect.m_rectangle.topLeft()); in updatePolish()
216 res << rect.topLeft(); in path()
217 res << QGeoCoordinate(rect.topLeft().latitude(), rect.bottomRight().longitude()); in path()
219 res << QGeoCoordinate(rect.bottomRight().latitude(), rect.topLeft().longitude()); in path()
[all …]
H A Dqdeclarativerectanglemapitem_p.h69 Q_PROPERTY(QGeoCoordinate topLeft READ topLeft WRITE setTopLeft NOTIFY topLeftChanged)
88 QGeoCoordinate topLeft();
107 void topLeftChanged(const QGeoCoordinate &topLeft);
H A Dqdeclarativegeomapquickitem.cpp218 newGeometry.topLeft() == oldGeometry.topLeft()) { in geometryChanged()
235 pos.setX(pos.x() + newGeometry.topLeft().x()); in geometryChanged()
236 pos.setY(pos.y() + newGeometry.topLeft().y()); in geometryChanged()
H A Dqdeclarativepolygonmapitem_p_p.h362 m_geometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft()); in preserveGeometry()
363 … m_borderGeometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft()); in preserveGeometry()
418 … m_borderGeometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft()); in updatePolish()
442 m_poly.setPositionOnMap(m_geometry.origin(), -1 * m_geometry.sourceBoundingBox().topLeft() in updatePolish()
532 m_geometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft()); in preserveGeometry()
533 … m_borderGeometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft()); in preserveGeometry()
H A Dqdeclarativepolylinemapitem.cpp745 this->translate( -1 * sourceBounds_.topLeft() + strokeOffset); in updateScreenPoints()
811 QGeoCoordinate topLeft = boundingRectangle.topLeft(); in updateSourcePoints() local
814 if (qFuzzyCompare(topLeft.latitude(), bottomRight.latitude())) { in updateSourcePoints()
815 topLeft.setLatitude(qBound(-90.0, topLeft.latitude() + epsilon ,90.0)); in updateSourcePoints()
818 if (qFuzzyCompare(topLeft.longitude(), bottomRight.longitude())) { in updateSourcePoints()
819 topLeft.setLongitude(QLocationUtils::wrapLong(topLeft.longitude() - epsilon)); in updateSourcePoints()
822 QGeoPolygon bbox(QGeoRectangle(topLeft, bottomRight)); in updateSourcePoints()
824 QDeclarativeGeoMapItemUtils::wrapPath(bbox.path(), bbox.boundingGeoRectangle().topLeft(), p, in updateSourcePoints()
914 firstPointOffset_ = QPointF(brect.topLeft()); in updateQuickGeometry()
1270 …if (newGeometry.topLeft() == oldGeometry.topLeft() || !map() || !m_geopath.isValid() || m_updating… in geometryChanged()
H A Dqdeclarativepolygonmapitem.cpp290 firstPointOffset_ = -1 * bb.topLeft(); in updateScreenPoints()
482 QDeclarativeGeoMapItemUtils::wrapPath(bbox.path(), bbox.boundingGeoRectangle().topLeft(), p, in updateSourcePoints()
517 QDeclarativeGeoMapItemUtils::wrapPath(bbox.path(), bbox.boundingGeoRectangle().topLeft(), p, in updateSourcePoints()
590 firstPointOffset_ = QPointF(brect.topLeft()); in updateQuickGeometry()
889 …if (newGeometry.topLeft() == oldGeometry.topLeft() || !map() || !m_geopoly.isValid() || m_updating… in geometryChanged()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/declarative_ui/
H A Dtst_map_item_fit_viewport.qml120 topLeft: preMapRectangleDefaultTopLeft
232 preMapRect.topLeft.latitude = 20
233 preMapRect.topLeft.longitude = 20
325 verify(!is_coord_on_screen(preMapRect.topLeft))
356 verify(!is_coord_on_screen(fitRect.topLeft))
365 verify(is_coord_on_screen(fitRect.topLeft))
374 verify(!is_coord_on_screen(fitRect.topLeft))
383 verify(!is_coord_on_screen(fitRect.topLeft))
392 verify(is_coord_on_screen(fitEmptyRect.topLeft))
397 verify(is_coord_on_screen(fitRect.topLeft))
[all …]
H A Dtst_map_item.qml247 preMapRect.topLeft = QtPositioning.coordinate(20, 20)
282 map.center = preMapRect.topLeft
284 var point = map.fromCoordinate(preMapRect.topLeft)
327 map.center = preMapRect.topLeft
328 var point = map.fromCoordinate(preMapRect.topLeft)
361 map.center = preMapRect.topLeft
363 point = map.fromCoordinate(preMapRect.topLeft)
420 map.center = preMapRect.topLeft
423 var point = map.fromCoordinate(preMapRect.topLeft)
434 verify(fuzzy_compare(preMapRect.topLeft.latitude, targetCoordinate.latitude, 0.2))
[all …]
H A DItemGroup.qml36 …property double latitude : (mainRectangle.topLeft.latitude + mainRectangle.bottomRight.latitude) /…
37 …property double longitude: (mainRectangle.topLeft.longitude + mainRectangle.bottomRight.longitude)…
42 topLeft: QtPositioning.coordinate(43, -3)
58 topLeft: QtPositioning.coordinate(parent.latitude + 5, parent.longitude - 5)
H A Dtst_map_item_details.qml95 topLeft {
197 topLeft {
467 verify(extMapRectDateline.topLeft.longitude == 175)
469 var point = map.fromCoordinate(extMapRectDateline.topLeft)
478 extMapRectDateline.topLeft.longitude = datelineCoordinate.longitude
479 point = map.fromCoordinate(extMapRectDateline.topLeft)
493 point = map.fromCoordinate(extMapRectDateline.topLeft)
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/nokia/
H A Dqgeocodejsonparser.cpp189 QJsonObject topLeft = tlit.value().toObject(); in checkLocation() local
190 QJsonObject::const_iterator tllatit = topLeft.constFind(QLatin1String("Latitude")); in checkLocation()
191 if (tllatit == topLeft.constEnd()) { in checkLocation()
198 QJsonObject::const_iterator tllonit = topLeft.constFind(QLatin1String("Longitude")); in checkLocation()
355 QJsonObject topLeft = mapView.value("TopLeft").toObject(); in parseLocation() local
357 …boundingBox.setTopLeft(QGeoCoordinate(topLeft.value("Latitude").toDouble(), topLeft.value("Longitu… in parseLocation()
H A Dqgeocodingmanagerengine_nokia.cpp130 requestString += trimDouble(rect.topLeft().latitude()); in geocode()
132 requestString += trimDouble(rect.topLeft().longitude()); in geocode()
223 requestString += trimDouble(rect.topLeft().latitude()); in geocode()
225 requestString += trimDouble(rect.topLeft().longitude()); in geocode()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/examples/location/mapviewer/map/
H A DMiniMap.qml118 topLeft.latitude = getMapVisibleRegion().topLeft.latitude
119 topLeft.longitude= getMapVisibleRegion().topLeft.longitude
122 console.log("TopLeft: " + topLeft)
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qgeorectangle/
H A Dtst_qgeorectangle.cpp102 QCOMPARE(box.topLeft().isValid(), false); in default_constructor()
110 QCOMPARE(b1.topLeft(), QGeoCoordinate(10.0, 0.0)); in center_constructor()
119 QCOMPARE(b1.topLeft(), QGeoCoordinate(10.0, 0.0)); in corner_constructor()
136 QCOMPARE(b1.topLeft(), QGeoCoordinate(10.0,0.0)); in list_constructor()
146 QCOMPARE(b2.topLeft(), QGeoCoordinate(10.0, 0.0)); in copy_constructor()
151 QCOMPARE(b1.topLeft(), QGeoCoordinate(10.0, 0.0)); in copy_constructor()
182 QCOMPARE(b2.topLeft(), QGeoCoordinate(10.0, 0.0)); in assignment()
188 QCOMPARE(b1.topLeft(), QGeoCoordinate(10.0, 0.0)); in assignment()
198 QCOMPARE(ba.topLeft(), b1.topLeft()); in assignment()
203 QVERIFY(ba.topLeft() != b1.topLeft()); in assignment()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A Dwinshadgdi.c283 POINT topLeft, bottomRight; in winRedrawDamagedWindowShadowGDI() local
289 topLeft.x = pDamage->x1; in winRedrawDamagedWindowShadowGDI()
290 topLeft.y = pDamage->y1; in winRedrawDamagedWindowShadowGDI()
293 topLeft.x += GetSystemMetrics(SM_XVIRTUALSCREEN); in winRedrawDamagedWindowShadowGDI()
295 topLeft.y += GetSystemMetrics(SM_YVIRTUALSCREEN); in winRedrawDamagedWindowShadowGDI()
297 ScreenToClient(hwnd, &topLeft); in winRedrawDamagedWindowShadowGDI()
299 SetRect(&rcDamage, topLeft.x, topLeft.y, bottomRight.x, bottomRight.y); in winRedrawDamagedWindowShadowGDI()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/labs/qsg/
H A Dqmappolygonobjectqsg.cpp143 m_geometry.setPreserveGeometry(true, m_path.boundingGeoRectangle().topLeft()); in updateGeometry()
144 m_borderGeometry.setPreserveGeometry(true, m_path.boundingGeoRectangle().topLeft()); in updateGeometry()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/esri/
H A Dgeocodingmanagerengine_esri.cpp76 return QString::number(rect.topLeft().longitude()) + QLatin1Char(',') in boundingBoxToLtrb()
77 + QString::number(rect.topLeft().latitude()) + QLatin1Char(',') in boundingBoxToLtrb()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/mapbox/
H A Dqgeocodingmanagerenginemapbox.cpp169 QString::number(boundingBox.topLeft().longitude()) + QLatin1Char(',') + in doSearch()
172 QString::number(boundingBox.topLeft().latitude())); in doSearch()

123