qtpositioning

package
v0.0.0-...-1f663c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2020 License: LGPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteQGeoAddress

func DeleteQGeoAddress(this *QGeoAddress)

func DeleteQGeoAreaMonitorInfo

func DeleteQGeoAreaMonitorInfo(this *QGeoAreaMonitorInfo)

func DeleteQGeoAreaMonitorSource

func DeleteQGeoAreaMonitorSource(this *QGeoAreaMonitorSource)

func DeleteQGeoCircle

func DeleteQGeoCircle(this *QGeoCircle)

func DeleteQGeoCoordinate

func DeleteQGeoCoordinate(this *QGeoCoordinate)

func DeleteQGeoLocation

func DeleteQGeoLocation(this *QGeoLocation)

func DeleteQGeoPath

func DeleteQGeoPath(this *QGeoPath)

func DeleteQGeoPolygon

func DeleteQGeoPolygon(this *QGeoPolygon)

func DeleteQGeoPositionInfo

func DeleteQGeoPositionInfo(this *QGeoPositionInfo)

func DeleteQGeoPositionInfoSource

func DeleteQGeoPositionInfoSource(this *QGeoPositionInfoSource)

func DeleteQGeoPositionInfoSourceFactory

func DeleteQGeoPositionInfoSourceFactory(this *QGeoPositionInfoSourceFactory)

func DeleteQGeoRectangle

func DeleteQGeoRectangle(this *QGeoRectangle)

func DeleteQGeoSatelliteInfo

func DeleteQGeoSatelliteInfo(this *QGeoSatelliteInfo)

func DeleteQGeoSatelliteInfoSource

func DeleteQGeoSatelliteInfoSource(this *QGeoSatelliteInfoSource)

func DeleteQGeoShape

func DeleteQGeoShape(this *QGeoShape)

func DeleteQNmeaPositionInfoSource

func DeleteQNmeaPositionInfoSource(this *QNmeaPositionInfoSource)

func KeepMe

func KeepMe()

func Operator_or87

func Operator_or87(f1 int, f2 int) *qtcore.QIncompatibleFlag

func QGeoAreaMonitorSource_AreaMonitorFeatureItemName

func QGeoAreaMonitorSource_AreaMonitorFeatureItemName(val int) string

func QGeoAreaMonitorSource_AvailableSources

func QGeoAreaMonitorSource_AvailableSources() *qtcore.QStringList

func QGeoAreaMonitorSource_ErrorItemName

func QGeoAreaMonitorSource_ErrorItemName(val int) string

func QGeoCoordinate_CoordinateFormatItemName

func QGeoCoordinate_CoordinateFormatItemName(val int) string

func QGeoCoordinate_CoordinateTypeItemName

func QGeoCoordinate_CoordinateTypeItemName(val int) string

func QGeoPositionInfoSource_AvailableSources

func QGeoPositionInfoSource_AvailableSources() *qtcore.QStringList

func QGeoPositionInfoSource_ErrorItemName

func QGeoPositionInfoSource_ErrorItemName(val int) string

func QGeoPositionInfoSource_PositioningMethodItemName

func QGeoPositionInfoSource_PositioningMethodItemName(val int) string

func QGeoPositionInfo_AttributeItemName

func QGeoPositionInfo_AttributeItemName(val int) string

func QGeoSatelliteInfoSource_AvailableSources

func QGeoSatelliteInfoSource_AvailableSources() *qtcore.QStringList

func QGeoSatelliteInfoSource_ErrorItemName

func QGeoSatelliteInfoSource_ErrorItemName(val int) string

func QGeoSatelliteInfo_AttributeItemName

func QGeoSatelliteInfo_AttributeItemName(val int) string

func QGeoSatelliteInfo_SatelliteSystemItemName

func QGeoSatelliteInfo_SatelliteSystemItemName(val int) string

func QGeoShape_ShapeTypeItemName

func QGeoShape_ShapeTypeItemName(val int) string

func QHash51

func QHash51(coordinate QGeoCoordinate_ITF, seed uint) uint

func QNmeaPositionInfoSource_UpdateModeItemName

func QNmeaPositionInfoSource_UpdateModeItemName(val int) string

Types

type QGeoAddress

type QGeoAddress struct {
	*qtrt.CObject
}

func NewQGeoAddress

func NewQGeoAddress() *QGeoAddress

func NewQGeoAddressFromPointer

func NewQGeoAddressFromPointer(cthis unsafe.Pointer) *QGeoAddress

func (*QGeoAddress) City

func (this *QGeoAddress) City() string

Returns the city.

See also setCity().

func (*QGeoAddress) Clear

func (this *QGeoAddress) Clear()

Clears all of the address' data fields.

func (*QGeoAddress) Country

func (this *QGeoAddress) Country() string

Returns the country name.

See also setCountry().

func (*QGeoAddress) CountryCode

func (this *QGeoAddress) CountryCode() string

Returns the country code according to ISO 3166-1 alpha-3

See also setCountryCode().

func (*QGeoAddress) County

func (this *QGeoAddress) County() string

Returns the county. The county is considered the second subdivision below country.

See also setCounty().

func (*QGeoAddress) District

func (this *QGeoAddress) District() string

Returns the district. The district is considered the subdivison below city.

See also setDistrict().

func (*QGeoAddress) GetCthis

func (this *QGeoAddress) GetCthis() unsafe.Pointer

func (*QGeoAddress) IsEmpty

func (this *QGeoAddress) IsEmpty() bool

Returns whether this address is empty. An address is considered empty if all of its fields are empty.

func (*QGeoAddress) IsTextGenerated

func (this *QGeoAddress) IsTextGenerated() bool

Returns true if QGeoAddress::text() is automatically generated from address elements, otherwise returns false if text() has been explicitly assigned.

See also text() and setText().

func (*QGeoAddress) NewForInherit

func (*QGeoAddress) NewForInherit() *QGeoAddress

Default constructor.

func (*QGeoAddress) NewFromPointer

func (*QGeoAddress) NewFromPointer(cthis unsafe.Pointer) *QGeoAddress

func (*QGeoAddress) Operator_equal

func (this *QGeoAddress) Operator_equal(other QGeoAddress_ITF) *QGeoAddress

func (*QGeoAddress) Operator_equal_equal

func (this *QGeoAddress) Operator_equal_equal(other QGeoAddress_ITF) bool

func (*QGeoAddress) Operator_not_equal

func (this *QGeoAddress) Operator_not_equal(other QGeoAddress_ITF) bool

func (*QGeoAddress) PostalCode

func (this *QGeoAddress) PostalCode() string

Returns the postal code.

See also setPostalCode().

func (*QGeoAddress) QGeoAddress_PTR

func (ptr *QGeoAddress) QGeoAddress_PTR() *QGeoAddress

func (*QGeoAddress) SetCity

func (this *QGeoAddress) SetCity(city string)

Sets the city.

See also city().

func (*QGeoAddress) SetCountry

func (this *QGeoAddress) SetCountry(country string)

Sets the country name.

See also country().

func (*QGeoAddress) SetCountryCode

func (this *QGeoAddress) SetCountryCode(countryCode string)

Sets the countryCode according to ISO 3166-1 alpha-3

See also countryCode().

func (*QGeoAddress) SetCounty

func (this *QGeoAddress) SetCounty(county string)

Sets the county.

See also county().

func (*QGeoAddress) SetCthis

func (this *QGeoAddress) SetCthis(cthis unsafe.Pointer)

func (*QGeoAddress) SetDistrict

func (this *QGeoAddress) SetDistrict(district string)

Sets the district.

See also district().

func (*QGeoAddress) SetPostalCode

func (this *QGeoAddress) SetPostalCode(postalCode string)

Sets the postalCode.

See also postalCode().

func (*QGeoAddress) SetState

func (this *QGeoAddress) SetState(state string)

Sets the state.

See also state().

func (*QGeoAddress) SetStreet

func (this *QGeoAddress) SetStreet(street string)

Sets the street-level component of the address to street.

This typically includes a street number and street name but may also contain things like a unit number, a building name, or anything else that might be used to distinguish one address from another.

See also street().

func (*QGeoAddress) SetText

func (this *QGeoAddress) SetText(text string)

If text is not empty, explicitly assigns text as the string to be returned by text(). isTextGenerated() will return false.

If text is empty, indicates that text() should be automatically generated from the address elements. isTextGenerated() will return true.

See also text().

func (*QGeoAddress) State

func (this *QGeoAddress) State() string

Returns the state. The state is considered the first subdivision below country.

See also setState().

func (*QGeoAddress) Street

func (this *QGeoAddress) Street() string

Returns the street-level component of the address.

This typically includes a street number and street name but may also contain things like a unit number, a building name, or anything else that might be used to distinguish one address from another.

See also setStreet().

func (*QGeoAddress) Text

func (this *QGeoAddress) Text() string

Returns the address as a single formatted string. It is the recommended string to use to display the address to the user. It typically takes the format of an address as found on an envelope, but this is not always necessarily the case.

The address text is either automatically generated or explicitly assigned. This can be determined by checking isTextGenerated.

If an empty string is provided to setText(), then isTextGenerated() will be set to true and text() will return a string which is locally formatted according to countryCode() and based on the elements of the address such as street, city and so on. Because the text string is generated from the address elements, a sequence of calls such as text(), setStreet(), text() may return different strings for each invocation of text().

If a non-empty string is provided to setText(), then isTextGenerated() will be set to false and text() will always return the explicitly assigned string. Calls to modify other elements such as setStreet(), setCity() and so on will not affect the resultant string from text().

See also setText().

type QGeoAddress_ITF

type QGeoAddress_ITF interface {
	QGeoAddress_PTR() *QGeoAddress
}

type QGeoAreaMonitorInfo

type QGeoAreaMonitorInfo struct {
	*qtrt.CObject
}

func NewQGeoAreaMonitorInfo

func NewQGeoAreaMonitorInfo(name string) *QGeoAreaMonitorInfo

func NewQGeoAreaMonitorInfoFromPointer

func NewQGeoAreaMonitorInfoFromPointer(cthis unsafe.Pointer) *QGeoAreaMonitorInfo

func NewQGeoAreaMonitorInfop

func NewQGeoAreaMonitorInfop() *QGeoAreaMonitorInfo

func (*QGeoAreaMonitorInfo) Area

func (this *QGeoAreaMonitorInfo) Area() *QGeoShape

Returns the boundaries of the to-be-monitored area. This area must not be empty.

See also setArea().

func (*QGeoAreaMonitorInfo) Expiration

func (this *QGeoAreaMonitorInfo) Expiration() *qtcore.QDateTime

Returns the expiry date.

After an active QGeoAreaMonitorInfo has expired the region is no longer monitored and the QGeoAreaMonitorInfo object is removed from the list of active monitors.

If the expiry QDateTime is invalid the QGeoAreaMonitorInfo object is treated as not having an expiry date. This implies an indefinite monitoring period if the object is persistent or until the current application closes if the object is non-persistent.

See also setExpiration() and QGeoAreaMonitorSource::activeMonitors().

func (*QGeoAreaMonitorInfo) GetCthis

func (this *QGeoAreaMonitorInfo) GetCthis() unsafe.Pointer

func (*QGeoAreaMonitorInfo) Identifier

func (this *QGeoAreaMonitorInfo) Identifier() string

Returns the identifier of the QGeoAreaMonitorInfo object. The identifier is automatically generated upon construction of a new QGeoAreaMonitorInfo object.

func (*QGeoAreaMonitorInfo) IsPersistent

func (this *QGeoAreaMonitorInfo) IsPersistent() bool

Returns true if the QGeoAreaMonitorInfo is persistent. The default value for this property is false.

A non-persistent QGeoAreaMonitorInfo will be removed by the system once the application owning the monitor object stops. Persistent objects remain active and can be retrieved once the application restarts.

If the system triggers an event associated to a persistent QGeoAreaMonitorInfo the relevant application will be re-started and the appropriate signal emitted.

See also setPersistent().

func (*QGeoAreaMonitorInfo) IsValid

func (this *QGeoAreaMonitorInfo) IsValid() bool

Returns true, if the monitor is valid. A valid QGeoAreaMonitorInfo has a non-empty name() and the monitored area is not empty(). Otherwise this function returns false.

func (*QGeoAreaMonitorInfo) Name

func (this *QGeoAreaMonitorInfo) Name() string

Returns the name of the QGeoAreaMonitorInfo object. The name should be used to for user-visibility purposes.

See also setName().

func (*QGeoAreaMonitorInfo) NewForInherit

func (*QGeoAreaMonitorInfo) NewForInherit(name string) *QGeoAreaMonitorInfo

Constructs a QGeoAreaMonitorInfo object with the specified name.

See also name().

func (*QGeoAreaMonitorInfo) NewForInheritp

func (*QGeoAreaMonitorInfo) NewForInheritp() *QGeoAreaMonitorInfo

Constructs a QGeoAreaMonitorInfo object with the specified name.

See also name().

func (*QGeoAreaMonitorInfo) NewFromPointer

func (*QGeoAreaMonitorInfo) NewFromPointer(cthis unsafe.Pointer) *QGeoAreaMonitorInfo

func (*QGeoAreaMonitorInfo) Operator_equal

func (*QGeoAreaMonitorInfo) Operator_equal_equal

func (this *QGeoAreaMonitorInfo) Operator_equal_equal(other QGeoAreaMonitorInfo_ITF) bool

func (*QGeoAreaMonitorInfo) Operator_not_equal

func (this *QGeoAreaMonitorInfo) Operator_not_equal(other QGeoAreaMonitorInfo_ITF) bool

func (*QGeoAreaMonitorInfo) QGeoAreaMonitorInfo_PTR

func (ptr *QGeoAreaMonitorInfo) QGeoAreaMonitorInfo_PTR() *QGeoAreaMonitorInfo

func (*QGeoAreaMonitorInfo) SetArea

func (this *QGeoAreaMonitorInfo) SetArea(newShape QGeoShape_ITF)

Sets the to-be-monitored area to newShape.

See also area().

func (*QGeoAreaMonitorInfo) SetCthis

func (this *QGeoAreaMonitorInfo) SetCthis(cthis unsafe.Pointer)

func (*QGeoAreaMonitorInfo) SetExpiration

func (this *QGeoAreaMonitorInfo) SetExpiration(expiry qtcore.QDateTime_ITF)

Sets the expiry date and time to expiry.

See also expiration().

func (*QGeoAreaMonitorInfo) SetName

func (this *QGeoAreaMonitorInfo) SetName(name string)

Sets the user visibile name.

See also name().

func (*QGeoAreaMonitorInfo) SetPersistent

func (this *QGeoAreaMonitorInfo) SetPersistent(isPersistent bool)

Sets the QGeoAreaMonitorInfo objects persistence to isPersistent.

Note that setting this flag does not imply that QGeoAreaMonitorInfoSource supports persistent monitoring. QGeoAreaMonitorSource::supportedAreaMonitorFeatures() can be used to check for this feature's availability.

See also isPersistent().

type QGeoAreaMonitorInfo_ITF

type QGeoAreaMonitorInfo_ITF interface {
	QGeoAreaMonitorInfo_PTR() *QGeoAreaMonitorInfo
}

type QGeoAreaMonitorSource

type QGeoAreaMonitorSource struct {
	*qtcore.QObject
}

func NewQGeoAreaMonitorSource

func NewQGeoAreaMonitorSource(parent qtcore.QObject_ITF) *QGeoAreaMonitorSource

func NewQGeoAreaMonitorSourceFromPointer

func NewQGeoAreaMonitorSourceFromPointer(cthis unsafe.Pointer) *QGeoAreaMonitorSource

func QGeoAreaMonitorSource_CreateDefaultSource

func QGeoAreaMonitorSource_CreateDefaultSource(parent qtcore.QObject_ITF) *QGeoAreaMonitorSource

func QGeoAreaMonitorSource_CreateSource

func QGeoAreaMonitorSource_CreateSource(sourceName string, parent qtcore.QObject_ITF) *QGeoAreaMonitorSource

func (*QGeoAreaMonitorSource) AreaEntered

func (this *QGeoAreaMonitorSource) AreaEntered(monitor QGeoAreaMonitorInfo_ITF, update QGeoPositionInfo_ITF)

Emitted when the current position has moved from a position outside of the active monitor to a position within the monitored area.

The update holds the new position.

func (*QGeoAreaMonitorSource) AreaExited

func (this *QGeoAreaMonitorSource) AreaExited(monitor QGeoAreaMonitorInfo_ITF, update QGeoPositionInfo_ITF)

Emitted when the current position has moved from a position within the active monitor to a position outside the monitored area.

The update holds the new position.

func (*QGeoAreaMonitorSource) AreaMonitorFeatureItemName

func (this *QGeoAreaMonitorSource) AreaMonitorFeatureItemName(val int) string

func (*QGeoAreaMonitorSource) AvailableSources

func (this *QGeoAreaMonitorSource) AvailableSources() *qtcore.QStringList

Returns a list of available monitor plugins, including the default system backend if one is available.

func (*QGeoAreaMonitorSource) CreateDefaultSource

func (this *QGeoAreaMonitorSource) CreateDefaultSource(parent qtcore.QObject_ITF) *QGeoAreaMonitorSource

Creates and returns a monitor with the given parent that monitors areas using resources on the underlying system.

Returns 0 if the system has no support for position monitoring.

func (*QGeoAreaMonitorSource) CreateSource

func (this *QGeoAreaMonitorSource) CreateSource(sourceName string, parent qtcore.QObject_ITF) *QGeoAreaMonitorSource

Creates and returns a monitor with the given parent, by loading the plugin named sourceName.

Returns 0 if the plugin cannot be found.

func (*QGeoAreaMonitorSource) Error

func (this *QGeoAreaMonitorSource) Error() int

Returns the type of error that last occurred.

func (*QGeoAreaMonitorSource) Error1

func (this *QGeoAreaMonitorSource) Error1(error int)

Returns the type of error that last occurred.

func (*QGeoAreaMonitorSource) ErrorItemName

func (this *QGeoAreaMonitorSource) ErrorItemName(val int) string

func (*QGeoAreaMonitorSource) GetCthis

func (this *QGeoAreaMonitorSource) GetCthis() unsafe.Pointer

func (*QGeoAreaMonitorSource) MetaObject

func (this *QGeoAreaMonitorSource) MetaObject() *qtcore.QMetaObject

func (*QGeoAreaMonitorSource) MonitorExpired

func (this *QGeoAreaMonitorSource) MonitorExpired(monitor QGeoAreaMonitorInfo_ITF)

Emitted when monitor has expired. An expired area monitor is automatically removed from the list of activeMonitors().

See also activeMonitors().

func (*QGeoAreaMonitorSource) NewForInherit

Creates a monitor with the given parent.

func (*QGeoAreaMonitorSource) NewFromPointer

func (*QGeoAreaMonitorSource) PositionInfoSource

func (this *QGeoAreaMonitorSource) PositionInfoSource() *QGeoPositionInfoSource

Returns the current QGeoPositionInfoSource used by this QGeoAreaMonitorSource object. The function will return QGeoPositionInfoSource::createDefaultSource() if no other object has been set.

The function returns 0 if not even a default QGeoPositionInfoSource exists.

Any usage of the returned QGeoPositionInfoSource instance should account for the fact that it may reside in a different thread.

See also QGeoPositionInfoSource and setPositionInfoSource().

func (*QGeoAreaMonitorSource) QGeoAreaMonitorSource_PTR

func (ptr *QGeoAreaMonitorSource) QGeoAreaMonitorSource_PTR() *QGeoAreaMonitorSource

func (*QGeoAreaMonitorSource) RequestUpdate

func (this *QGeoAreaMonitorSource) RequestUpdate(monitor QGeoAreaMonitorInfo_ITF, signal string) bool

Enables single shot area monitoring. Area monitoring for monitor will be performed until this QGeoAreaMonitorSource instance emits signal for the first time. Once the signal was emitted, monitor is automatically removed from the list of activeMonitors(). If monitor is invalid or has an expiry date that has been passed this function returns false.

QGeoAreaMonitor singleShotMonitor;
QGeoAreaMonitorSource * source = QGeoAreaMonitorSource::createDefaultSource(this);
//...
bool ret = source->requestUpdate(singleShotMonitor,
                      SIGNAL(areaExited(QGeoAreaMonitor,QGeoPositionInfo)));

The above singleShotMonitor object will cease to send updates once the areaExited() signal was emitted for the first time. Until this point in time any other signal may be emitted zero or more times depending on the area context.

It is not possible to simultanously request updates for more than one signal of the same monitor object. The last call to this function determines the signal upon which the updates cease to continue. At this stage only the areaEntered() and areaExited() signals can be used to terminate the monitoring process.

Requesting persistent monitoring on a QGeoAreaMonitorSource instance fails if the area monitoring backend doesn't support QGeoAreaMonitorSource::PersistentAreaMonitorFeature.

If monitor was already registered via startMonitoring() it is converted to a single shot behavior.

See also startMonitoring() and stopMonitoring().

func (*QGeoAreaMonitorSource) SetCthis

func (this *QGeoAreaMonitorSource) SetCthis(cthis unsafe.Pointer)

func (*QGeoAreaMonitorSource) SetPositionInfoSource

func (this *QGeoAreaMonitorSource) SetPositionInfoSource(source QGeoPositionInfoSource_ITF)

Sets the new QGeoPositionInfoSource to be used by this QGeoAreaMonitorSource object. The area monitoring backend becomes the new QObject parent for newSource. The previous QGeoPositionInfoSource object will be deleted. All QGeoAreaMonitorSource instances based on the same sourceName() share the same QGeoPositionInfoSource instance.

This may be useful when it is desirable to manipulate the positioning system used by the area monitoring engine.

Note that ownership must be taken care of by subclasses of QGeoAreaMonitorSource. Due to the singleton pattern behind this class newSource may be moved to a new thread.

See also positionInfoSource().

func (*QGeoAreaMonitorSource) SourceName

func (this *QGeoAreaMonitorSource) SourceName() string

Returns the unique name of the area monitor source implementation in use.

This is the same name that can be passed to createSource() in order to create a new instance of a particular area monitor source implementation.

func (*QGeoAreaMonitorSource) StartMonitoring

func (this *QGeoAreaMonitorSource) StartMonitoring(monitor QGeoAreaMonitorInfo_ITF) bool

Returns true if the monitoring of monitor could be successfully started; otherwise returns false. A reason for not being able to start monitoring could be the unavailability of an appropriate default position info source while no alternative QGeoPositionInfoSource has been set via setPositionInfoSource().

If monitor is already active the existing monitor object will be replaced by the new monitor reference. The identification of QGeoAreaMonitorInfo instances happens via QGeoAreaMonitorInfo::identifier(). Therefore this function can also be used to update active monitors.

If monitor has an expiry date that has been passed this function returns false. Calling this function for an already via requestUpdate() registered single shot monitor switches the monitor to a permanent monitoring mode.

Requesting persistent monitoring on a QGeoAreaMonitorSource instance fails if the area monitoring backend doesn't support QGeoAreaMonitorSource::PersistentAreaMonitorFeature.

See also stopMonitoring().

func (*QGeoAreaMonitorSource) StopMonitoring

func (this *QGeoAreaMonitorSource) StopMonitoring(monitor QGeoAreaMonitorInfo_ITF) bool

Returns true if monitor was successfully removed from the list of activeMonitors(); otherwise returns false. This behavior is independent on whether monitor was registered via startMonitoring() or requestUpdate().

func (*QGeoAreaMonitorSource) SupportedAreaMonitorFeatures

func (this *QGeoAreaMonitorSource) SupportedAreaMonitorFeatures() int

Returns the area monitoring features available to this source.

type QGeoAreaMonitorSource_ITF

type QGeoAreaMonitorSource_ITF interface {
	qtcore.QObject_ITF
	QGeoAreaMonitorSource_PTR() *QGeoAreaMonitorSource
}

type QGeoAreaMonitorSource__AreaMonitorFeature

type QGeoAreaMonitorSource__AreaMonitorFeature = int
const QGeoAreaMonitorSource__AnyAreaMonitorFeature QGeoAreaMonitorSource__AreaMonitorFeature = -1
const QGeoAreaMonitorSource__PersistentAreaMonitorFeature QGeoAreaMonitorSource__AreaMonitorFeature = 1

type QGeoAreaMonitorSource__Error

type QGeoAreaMonitorSource__Error = int

Defines the types of positioning methods.

The Error enumeration represents the errors which can occur.

const QGeoAreaMonitorSource__AccessError QGeoAreaMonitorSource__Error = 0

The connection setup to the remote area monitoring backend failed because the application lacked the required privileges.

const QGeoAreaMonitorSource__InsufficientPositionInfo QGeoAreaMonitorSource__Error = 1

The area monitoring source could not retrieve a location fix or the accuracy of the fix is not high enough to provide an effective area monitoring.

const QGeoAreaMonitorSource__NoError QGeoAreaMonitorSource__Error = 3

No error has occurred.

const QGeoAreaMonitorSource__UnknownSourceError QGeoAreaMonitorSource__Error = 2

An unidentified error occurred.

type QGeoCircle

type QGeoCircle struct {
	*QGeoShape
}

func NewQGeoCircle

func NewQGeoCircle() *QGeoCircle

func NewQGeoCircle1

func NewQGeoCircle1(center QGeoCoordinate_ITF, radius float64) *QGeoCircle

func NewQGeoCircle1p

func NewQGeoCircle1p(center QGeoCoordinate_ITF) *QGeoCircle

func NewQGeoCircle2

func NewQGeoCircle2(other QGeoShape_ITF) *QGeoCircle

func NewQGeoCircleFromPointer

func NewQGeoCircleFromPointer(cthis unsafe.Pointer) *QGeoCircle

func (*QGeoCircle) Center

func (this *QGeoCircle) Center() *QGeoCoordinate

Returns the center coordinate of this geo circle. Equivalent to QGeoShape::center().

Note: Getter function for property center.

See also setCenter().

func (*QGeoCircle) ExtendCircle

func (this *QGeoCircle) ExtendCircle(coordinate QGeoCoordinate_ITF)

Extends the geo circle to also cover the coordinate coordinate

This function was introduced in Qt 5.9.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCircle) GetCthis

func (this *QGeoCircle) GetCthis() unsafe.Pointer

func (*QGeoCircle) NewForInherit

func (*QGeoCircle) NewForInherit() *QGeoCircle

Constructs a new, invalid geo circle.

func (*QGeoCircle) NewForInherit1

func (*QGeoCircle) NewForInherit1(center QGeoCoordinate_ITF, radius float64) *QGeoCircle

Constructs a new, invalid geo circle.

func (*QGeoCircle) NewForInherit1p

func (*QGeoCircle) NewForInherit1p(center QGeoCoordinate_ITF) *QGeoCircle

Constructs a new, invalid geo circle.

func (*QGeoCircle) NewForInherit2

func (*QGeoCircle) NewForInherit2(other QGeoShape_ITF) *QGeoCircle

Constructs a new, invalid geo circle.

func (*QGeoCircle) NewFromPointer

func (*QGeoCircle) NewFromPointer(cthis unsafe.Pointer) *QGeoCircle

func (*QGeoCircle) Operator_equal

func (this *QGeoCircle) Operator_equal(other QGeoCircle_ITF) *QGeoCircle

func (*QGeoCircle) Operator_equal_equal

func (this *QGeoCircle) Operator_equal_equal(other QGeoCircle_ITF) bool

func (*QGeoCircle) Operator_not_equal

func (this *QGeoCircle) Operator_not_equal(other QGeoCircle_ITF) bool

func (*QGeoCircle) QGeoCircle_PTR

func (ptr *QGeoCircle) QGeoCircle_PTR() *QGeoCircle

func (*QGeoCircle) Radius

func (this *QGeoCircle) Radius() float64

Returns the radius in meters of this geo circle.

Note: Getter function for property radius.

See also setRadius().

func (*QGeoCircle) SetCenter

func (this *QGeoCircle) SetCenter(center QGeoCoordinate_ITF)

Sets the center coordinate of this geo circle to center.

Note: Setter function for property center.

See also center().

func (*QGeoCircle) SetCthis

func (this *QGeoCircle) SetCthis(cthis unsafe.Pointer)

func (*QGeoCircle) SetRadius

func (this *QGeoCircle) SetRadius(radius float64)

Sets the radius in meters of this geo circle to radius.

Note: Setter function for property radius.

See also radius().

func (*QGeoCircle) ToString

func (this *QGeoCircle) ToString() string

Returns the geo circle properties as a string.

This function was introduced in Qt 5.5.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCircle) Translate

func (this *QGeoCircle) Translate(degreesLatitude float64, degreesLongitude float64)

Translates this geo circle by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCircle) Translated

func (this *QGeoCircle) Translated(degreesLatitude float64, degreesLongitude float64) *QGeoCircle

Returns a copy of this geo circle translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also translate().

type QGeoCircle_ITF

type QGeoCircle_ITF interface {
	QGeoShape_ITF
	QGeoCircle_PTR() *QGeoCircle
}

type QGeoCoordinate

type QGeoCoordinate struct {
	*qtrt.CObject
}

func NewQGeoCoordinate

func NewQGeoCoordinate() *QGeoCoordinate

func NewQGeoCoordinate1

func NewQGeoCoordinate1(latitude float64, longitude float64) *QGeoCoordinate

func NewQGeoCoordinate2

func NewQGeoCoordinate2(latitude float64, longitude float64, altitude float64) *QGeoCoordinate

func NewQGeoCoordinateFromPointer

func NewQGeoCoordinateFromPointer(cthis unsafe.Pointer) *QGeoCoordinate

func (*QGeoCoordinate) Altitude

func (this *QGeoCoordinate) Altitude() float64

Returns the altitude (meters above sea level).

The return value is undefined if the altitude has not been set.

Note: Getter function for property altitude.

See also setAltitude() and type().

func (*QGeoCoordinate) AtDistanceAndAzimuth

func (this *QGeoCoordinate) AtDistanceAndAzimuth(distance float64, azimuth float64, distanceUp float64) *QGeoCoordinate

Returns the coordinate that is reached by traveling distance meters from the current coordinate at azimuth (or bearing) along a great-circle. There is an assumption that the Earth is spherical for the purpose of this calculation.

The altitude will have distanceUp added to it.

Returns an invalid coordinate if this coordinate is invalid.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCoordinate) AtDistanceAndAzimuthp

func (this *QGeoCoordinate) AtDistanceAndAzimuthp(distance float64, azimuth float64) *QGeoCoordinate

Returns the coordinate that is reached by traveling distance meters from the current coordinate at azimuth (or bearing) along a great-circle. There is an assumption that the Earth is spherical for the purpose of this calculation.

The altitude will have distanceUp added to it.

Returns an invalid coordinate if this coordinate is invalid.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCoordinate) AzimuthTo

func (this *QGeoCoordinate) AzimuthTo(other QGeoCoordinate_ITF) float64

Returns the azimuth (or bearing) in degrees from this coordinate to the coordinate specified by other. Altitude is not used in the calculation.

The bearing returned is the bearing from the origin to other along the great-circle between the two coordinates. There is an assumption that the Earth is spherical for the purpose of this calculation.

Returns 0 if the type of this coordinate or the type of other is QGeoCoordinate::InvalidCoordinate.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCoordinate) CoordinateFormatItemName

func (this *QGeoCoordinate) CoordinateFormatItemName(val int) string

func (*QGeoCoordinate) CoordinateTypeItemName

func (this *QGeoCoordinate) CoordinateTypeItemName(val int) string

func (*QGeoCoordinate) DistanceTo

func (this *QGeoCoordinate) DistanceTo(other QGeoCoordinate_ITF) float64

Returns the distance (in meters) from this coordinate to the coordinate specified by other. Altitude is not used in the calculation.

This calculation returns the great-circle distance between the two coordinates, with an assumption that the Earth is spherical for the purpose of this calculation.

Returns 0 if the type of this coordinate or the type of other is QGeoCoordinate::InvalidCoordinate.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCoordinate) GetCthis

func (this *QGeoCoordinate) GetCthis() unsafe.Pointer

func (*QGeoCoordinate) IsValid

func (this *QGeoCoordinate) IsValid() bool

Returns true if the longitude and latitude are valid.

Note: Getter function for property isValid.

func (*QGeoCoordinate) Latitude

func (this *QGeoCoordinate) Latitude() float64

Returns the latitude, in decimal degrees. The return value is undefined if the latitude has not been set.

A positive latitude indicates the Northern Hemisphere, and a negative latitude indicates the Southern Hemisphere.

Note: Getter function for property latitude.

See also setLatitude() and type().

func (*QGeoCoordinate) Longitude

func (this *QGeoCoordinate) Longitude() float64

Returns the longitude, in decimal degrees. The return value is undefined if the longitude has not been set.

A positive longitude indicates the Eastern Hemisphere, and a negative longitude indicates the Western Hemisphere.

Note: Getter function for property longitude.

See also setLongitude() and type().

func (*QGeoCoordinate) NewForInherit

func (*QGeoCoordinate) NewForInherit() *QGeoCoordinate

Constructs a coordinate. The coordinate will be invalid until setLatitude() and setLongitude() have been called.

func (*QGeoCoordinate) NewForInherit1

func (*QGeoCoordinate) NewForInherit1(latitude float64, longitude float64) *QGeoCoordinate

Constructs a coordinate. The coordinate will be invalid until setLatitude() and setLongitude() have been called.

func (*QGeoCoordinate) NewForInherit2

func (*QGeoCoordinate) NewForInherit2(latitude float64, longitude float64, altitude float64) *QGeoCoordinate

Constructs a coordinate. The coordinate will be invalid until setLatitude() and setLongitude() have been called.

func (*QGeoCoordinate) NewFromPointer

func (*QGeoCoordinate) NewFromPointer(cthis unsafe.Pointer) *QGeoCoordinate

func (*QGeoCoordinate) Operator_equal

func (this *QGeoCoordinate) Operator_equal(other QGeoCoordinate_ITF) *QGeoCoordinate

func (*QGeoCoordinate) Operator_equal_equal

func (this *QGeoCoordinate) Operator_equal_equal(other QGeoCoordinate_ITF) bool

func (*QGeoCoordinate) Operator_not_equal

func (this *QGeoCoordinate) Operator_not_equal(other QGeoCoordinate_ITF) bool

func (*QGeoCoordinate) QGeoCoordinate_PTR

func (ptr *QGeoCoordinate) QGeoCoordinate_PTR() *QGeoCoordinate

func (*QGeoCoordinate) SetAltitude

func (this *QGeoCoordinate) SetAltitude(altitude float64)

Sets the altitude (meters above sea level) to altitude.

Note: Setter function for property altitude.

See also altitude().

func (*QGeoCoordinate) SetCthis

func (this *QGeoCoordinate) SetCthis(cthis unsafe.Pointer)

func (*QGeoCoordinate) SetLatitude

func (this *QGeoCoordinate) SetLatitude(latitude float64)

Sets the latitude (in decimal degrees) to latitude. The value should be in the WGS84 datum.

To be valid, the latitude must be between -90 to 90 inclusive.

Note: Setter function for property latitude.

See also latitude().

func (*QGeoCoordinate) SetLongitude

func (this *QGeoCoordinate) SetLongitude(longitude float64)

Sets the longitude (in decimal degrees) to longitude. The value should be in the WGS84 datum.

To be valid, the longitude must be between -180 to 180 inclusive.

Note: Setter function for property longitude.

See also longitude().

func (*QGeoCoordinate) ToString

func (this *QGeoCoordinate) ToString(format int) string

Returns this coordinate as a string in the specified format.

For example, if this coordinate has a latitude of -27.46758, a longitude of 153.027892 and an altitude of 28.1, these are the strings returned depending on format:

format valueReturned string

Degrees-27.46758°, 153.02789°, 28.1m DegreesWithHemisphere27.46758° S, 153.02789° E, 28.1m DegreesMinutes-27° 28.054', 153° 1.673', 28.1m DegreesMinutesWithHemisphere27° 28.054 S', 153° 1.673' E, 28.1m DegreesMinutesSeconds-27° 28' 3.2", 153° 1' 40.4", 28.1m DegreesMinutesSecondsWithHemisphere27° 28' 3.2" S, 153° 1' 40.4" E, 28.1m

The altitude field is omitted if no altitude is set.

If the coordinate is invalid, an empty string is returned.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCoordinate) ToStringp

func (this *QGeoCoordinate) ToStringp() string

Returns this coordinate as a string in the specified format.

For example, if this coordinate has a latitude of -27.46758, a longitude of 153.027892 and an altitude of 28.1, these are the strings returned depending on format:

format valueReturned string

Degrees-27.46758°, 153.02789°, 28.1m DegreesWithHemisphere27.46758° S, 153.02789° E, 28.1m DegreesMinutes-27° 28.054', 153° 1.673', 28.1m DegreesMinutesWithHemisphere27° 28.054 S', 153° 1.673' E, 28.1m DegreesMinutesSeconds-27° 28' 3.2", 153° 1' 40.4", 28.1m DegreesMinutesSecondsWithHemisphere27° 28' 3.2" S, 153° 1' 40.4" E, 28.1m

The altitude field is omitted if no altitude is set.

If the coordinate is invalid, an empty string is returned.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoCoordinate) Type

func (this *QGeoCoordinate) Type() int

Returns the type of this coordinate.

type QGeoCoordinate_ITF

type QGeoCoordinate_ITF interface {
	QGeoCoordinate_PTR() *QGeoCoordinate
}

type QGeoCoordinate__CoordinateFormat

type QGeoCoordinate__CoordinateFormat = int

Defines the possible formatting options for toString().

See also toString().

const QGeoCoordinate__Degrees QGeoCoordinate__CoordinateFormat = 0

Returns a string representation of the coordinates in decimal degrees format.

const QGeoCoordinate__DegreesMinutes QGeoCoordinate__CoordinateFormat = 2

Returns a string representation of the coordinates in degrees-minutes format.

const QGeoCoordinate__DegreesMinutesSeconds QGeoCoordinate__CoordinateFormat = 4

Returns a string representation of the coordinates in degrees-minutes-seconds format.

const QGeoCoordinate__DegreesMinutesSecondsWithHemisphere QGeoCoordinate__CoordinateFormat = 5

Returns a string representation of the coordinates in degrees-minutes-seconds format, using 'N', 'S', 'E' or 'W' to indicate the hemispheres of the coordinates.

const QGeoCoordinate__DegreesMinutesWithHemisphere QGeoCoordinate__CoordinateFormat = 3

Returns a string representation of the coordinates in degrees-minutes format, using 'N', 'S', 'E' or 'W' to indicate the hemispheres of the coordinates.

const QGeoCoordinate__DegreesWithHemisphere QGeoCoordinate__CoordinateFormat = 1

Returns a string representation of the coordinates in decimal degrees format, using 'N', 'S', 'E' or 'W' to indicate the hemispheres of the coordinates.

type QGeoCoordinate__CoordinateType

type QGeoCoordinate__CoordinateType = int

Defines the types of a coordinate.

const QGeoCoordinate__Coordinate2D QGeoCoordinate__CoordinateType = 1

A coordinate with valid latitude and longitude values.

const QGeoCoordinate__Coordinate3D QGeoCoordinate__CoordinateType = 2

A coordinate with valid latitude and longitude values, and also an altitude value.

const QGeoCoordinate__InvalidCoordinate QGeoCoordinate__CoordinateType = 0

An invalid coordinate. A coordinate is invalid if its latitude or longitude values are invalid.

type QGeoLocation

type QGeoLocation struct {
	*qtrt.CObject
}

func NewQGeoLocation

func NewQGeoLocation() *QGeoLocation

func NewQGeoLocationFromPointer

func NewQGeoLocationFromPointer(cthis unsafe.Pointer) *QGeoLocation

func (*QGeoLocation) Address

func (this *QGeoLocation) Address() *QGeoAddress

Returns the address of the location.

See also setAddress().

func (*QGeoLocation) BoundingBox

func (this *QGeoLocation) BoundingBox() *QGeoRectangle

Returns a bounding box which represents the recommended region to display when viewing this location.

For example, a building's location may have a region centered around the building, but the region is large enough to show it's immediate surrounding geographical context.

See also setBoundingBox().

func (*QGeoLocation) Coordinate

func (this *QGeoLocation) Coordinate() *QGeoCoordinate

Returns the coordinate of the location.

See also setCoordinate().

func (*QGeoLocation) GetCthis

func (this *QGeoLocation) GetCthis() unsafe.Pointer

func (*QGeoLocation) IsEmpty

func (this *QGeoLocation) IsEmpty() bool

Returns true if all fields of the location are 0; otherwise returns false.

func (*QGeoLocation) NewForInherit

func (*QGeoLocation) NewForInherit() *QGeoLocation

Constructs an new location object.

func (*QGeoLocation) NewFromPointer

func (*QGeoLocation) NewFromPointer(cthis unsafe.Pointer) *QGeoLocation

func (*QGeoLocation) Operator_equal

func (this *QGeoLocation) Operator_equal(other QGeoLocation_ITF) *QGeoLocation

func (*QGeoLocation) Operator_equal_equal

func (this *QGeoLocation) Operator_equal_equal(other QGeoLocation_ITF) bool

func (*QGeoLocation) Operator_not_equal

func (this *QGeoLocation) Operator_not_equal(other QGeoLocation_ITF) bool

func (*QGeoLocation) QGeoLocation_PTR

func (ptr *QGeoLocation) QGeoLocation_PTR() *QGeoLocation

func (*QGeoLocation) SetAddress

func (this *QGeoLocation) SetAddress(address QGeoAddress_ITF)

Sets the address of the location.

See also address().

func (*QGeoLocation) SetBoundingBox

func (this *QGeoLocation) SetBoundingBox(box QGeoRectangle_ITF)

Sets the boundingBox of the location.

See also boundingBox().

func (*QGeoLocation) SetCoordinate

func (this *QGeoLocation) SetCoordinate(position QGeoCoordinate_ITF)

Sets the coordinate of the location.

See also coordinate().

func (*QGeoLocation) SetCthis

func (this *QGeoLocation) SetCthis(cthis unsafe.Pointer)

type QGeoLocation_ITF

type QGeoLocation_ITF interface {
	QGeoLocation_PTR() *QGeoLocation
}

type QGeoPath

type QGeoPath struct {
	*QGeoShape
}

func NewQGeoPath

func NewQGeoPath() *QGeoPath

func NewQGeoPath1

func NewQGeoPath1(other QGeoShape_ITF) *QGeoPath

func NewQGeoPathFromPointer

func NewQGeoPathFromPointer(cthis unsafe.Pointer) *QGeoPath

func (*QGeoPath) AddCoordinate

func (this *QGeoPath) AddCoordinate(coordinate QGeoCoordinate_ITF)

Appends coordinate to the path.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) ClearPath

func (this *QGeoPath) ClearPath()

Clears the path.

This function was introduced in Qt 5.12.

func (*QGeoPath) ContainsCoordinate

func (this *QGeoPath) ContainsCoordinate(coordinate QGeoCoordinate_ITF) bool

Returns true if the path contains coordinate as one of the elements.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) CoordinateAt

func (this *QGeoPath) CoordinateAt(index int) *QGeoCoordinate

Returns the coordinate at index .

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) GetCthis

func (this *QGeoPath) GetCthis() unsafe.Pointer

func (*QGeoPath) InsertCoordinate

func (this *QGeoPath) InsertCoordinate(index int, coordinate QGeoCoordinate_ITF)

Inserts coordinate at the specified index.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) Length

func (this *QGeoPath) Length(indexFrom int, indexTo int) float64

Returns the length of the path, in meters, from the element indexFrom to the element indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) Lengthp

func (this *QGeoPath) Lengthp() float64

Returns the length of the path, in meters, from the element indexFrom to the element indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) Lengthp1

func (this *QGeoPath) Lengthp1(indexFrom int) float64

Returns the length of the path, in meters, from the element indexFrom to the element indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) NewForInherit

func (*QGeoPath) NewForInherit() *QGeoPath

Constructs a new, empty geo path.

func (*QGeoPath) NewForInherit1

func (*QGeoPath) NewForInherit1(other QGeoShape_ITF) *QGeoPath

Constructs a new, empty geo path.

func (*QGeoPath) NewFromPointer

func (*QGeoPath) NewFromPointer(cthis unsafe.Pointer) *QGeoPath

func (*QGeoPath) Operator_equal

func (this *QGeoPath) Operator_equal(other QGeoPath_ITF) *QGeoPath

func (*QGeoPath) Operator_equal_equal

func (this *QGeoPath) Operator_equal_equal(other QGeoPath_ITF) bool

func (*QGeoPath) Operator_not_equal

func (this *QGeoPath) Operator_not_equal(other QGeoPath_ITF) bool

func (*QGeoPath) QGeoPath_PTR

func (ptr *QGeoPath) QGeoPath_PTR() *QGeoPath

func (*QGeoPath) RemoveCoordinate

func (this *QGeoPath) RemoveCoordinate(coordinate QGeoCoordinate_ITF)

Removes the last occurrence of coordinate from the path.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) RemoveCoordinate1

func (this *QGeoPath) RemoveCoordinate1(index int)

Removes the last occurrence of coordinate from the path.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) ReplaceCoordinate

func (this *QGeoPath) ReplaceCoordinate(index int, coordinate QGeoCoordinate_ITF)

Replaces the path element at the specified index with coordinate.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) SetCthis

func (this *QGeoPath) SetCthis(cthis unsafe.Pointer)

func (*QGeoPath) SetWidth

func (this *QGeoPath) SetWidth(width float64)

func (*QGeoPath) Size

func (this *QGeoPath) Size() int

Returns the number of elements in the path.

This function was introduced in Qt 5.10.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) ToString

func (this *QGeoPath) ToString() string

Returns the geo path properties as a string.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) Translate

func (this *QGeoPath) Translate(degreesLatitude float64, degreesLongitude float64)

Translates this geo path by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPath) Translated

func (this *QGeoPath) Translated(degreesLatitude float64, degreesLongitude float64) *QGeoPath

Returns a copy of this geo path translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also translate().

func (*QGeoPath) VariantPath

func (this *QGeoPath) VariantPath() *qtcore.QVariantList

func (*QGeoPath) Width

func (this *QGeoPath) Width() float64

Returns the width of the path, in meters. This information is used in the contains method. The default value is 0.

Note: Getter function for property width.

See also setWidth().

type QGeoPath_ITF

type QGeoPath_ITF interface {
	QGeoShape_ITF
	QGeoPath_PTR() *QGeoPath
}

type QGeoPolygon

type QGeoPolygon struct {
	*QGeoShape
}

func NewQGeoPolygon

func NewQGeoPolygon() *QGeoPolygon

func NewQGeoPolygon1

func NewQGeoPolygon1(other QGeoShape_ITF) *QGeoPolygon

func NewQGeoPolygonFromPointer

func NewQGeoPolygonFromPointer(cthis unsafe.Pointer) *QGeoPolygon

func (*QGeoPolygon) AddCoordinate

func (this *QGeoPolygon) AddCoordinate(coordinate QGeoCoordinate_ITF)

Appends coordinate to the polygon.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) AddHole

func (this *QGeoPolygon) AddHole(holePath qtcore.QVariant_ITF)

Sets the path for a hole inside the polygon. The hole is a QVariant containing a QList<QGeoCoordinate>.

This function was introduced in Qt 5.12.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) ContainsCoordinate

func (this *QGeoPolygon) ContainsCoordinate(coordinate QGeoCoordinate_ITF) bool

Returns true if the polygon's perimeter contains coordinate as one of the elements.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) CoordinateAt

func (this *QGeoPolygon) CoordinateAt(index int) *QGeoCoordinate

Returns the coordinate at index .

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) GetCthis

func (this *QGeoPolygon) GetCthis() unsafe.Pointer

func (*QGeoPolygon) Hole

func (this *QGeoPolygon) Hole(index int) *qtcore.QVariantList

Returns a QVariant containing a QVariant containing a QList<QGeoCoordinate> which represents the hole at index.

This function was introduced in Qt 5.12.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) HolesCount

func (this *QGeoPolygon) HolesCount() int

Returns the number of holes.

This function was introduced in Qt 5.12.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) InheritPerimeter

func (this *QGeoPolygon) InheritPerimeter(f func() *qtcore.QVariantList)

QVariantList perimeter()

func (*QGeoPolygon) InsertCoordinate

func (this *QGeoPolygon) InsertCoordinate(index int, coordinate QGeoCoordinate_ITF)

Inserts coordinate at the specified index.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) Length

func (this *QGeoPolygon) Length(indexFrom int, indexTo int) float64

Returns the length of the polygon's perimeter, in meters, from the element indexFrom to the element indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) Lengthp

func (this *QGeoPolygon) Lengthp() float64

Returns the length of the polygon's perimeter, in meters, from the element indexFrom to the element indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) Lengthp1

func (this *QGeoPolygon) Lengthp1(indexFrom int) float64

Returns the length of the polygon's perimeter, in meters, from the element indexFrom to the element indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) NewForInherit

func (*QGeoPolygon) NewForInherit() *QGeoPolygon

Constructs a new, empty geo polygon.

func (*QGeoPolygon) NewForInherit1

func (*QGeoPolygon) NewForInherit1(other QGeoShape_ITF) *QGeoPolygon

Constructs a new, empty geo polygon.

func (*QGeoPolygon) NewFromPointer

func (*QGeoPolygon) NewFromPointer(cthis unsafe.Pointer) *QGeoPolygon

func (*QGeoPolygon) Operator_equal

func (this *QGeoPolygon) Operator_equal(other QGeoPolygon_ITF) *QGeoPolygon

func (*QGeoPolygon) Operator_equal_equal

func (this *QGeoPolygon) Operator_equal_equal(other QGeoPolygon_ITF) bool

func (*QGeoPolygon) Operator_not_equal

func (this *QGeoPolygon) Operator_not_equal(other QGeoPolygon_ITF) bool

func (*QGeoPolygon) Perimeter

func (this *QGeoPolygon) Perimeter() *qtcore.QVariantList

Returns all the elements of the polygon's perimeter.

This function was introduced in QtPositioning 5.12.

See also setPerimeter().

func (*QGeoPolygon) QGeoPolygon_PTR

func (ptr *QGeoPolygon) QGeoPolygon_PTR() *QGeoPolygon

func (*QGeoPolygon) RemoveCoordinate

func (this *QGeoPolygon) RemoveCoordinate(coordinate QGeoCoordinate_ITF)

Removes the last occurrence of coordinate from the polygon.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) RemoveCoordinate1

func (this *QGeoPolygon) RemoveCoordinate1(index int)

Removes the last occurrence of coordinate from the polygon.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) RemoveHole

func (this *QGeoPolygon) RemoveHole(index int)

Removes element at position index from the holes QList.

This function was introduced in Qt 5.12.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) ReplaceCoordinate

func (this *QGeoPolygon) ReplaceCoordinate(index int, coordinate QGeoCoordinate_ITF)

Replaces the path element at the specified index with coordinate.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) SetCthis

func (this *QGeoPolygon) SetCthis(cthis unsafe.Pointer)

func (*QGeoPolygon) Size

func (this *QGeoPolygon) Size() int

Returns the number of elements in the polygon.

This function was introduced in Qt 5.10.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) ToString

func (this *QGeoPolygon) ToString() string

Returns the geo polygon properties as a string.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) Translate

func (this *QGeoPolygon) Translate(degreesLatitude float64, degreesLongitude float64)

Translates this geo polygon by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoPolygon) Translated

func (this *QGeoPolygon) Translated(degreesLatitude float64, degreesLongitude float64) *QGeoPolygon

Returns a copy of this geo polygon translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also translate().

type QGeoPolygon_ITF

type QGeoPolygon_ITF interface {
	QGeoShape_ITF
	QGeoPolygon_PTR() *QGeoPolygon
}

type QGeoPositionInfo

type QGeoPositionInfo struct {
	*qtrt.CObject
}

func NewQGeoPositionInfo

func NewQGeoPositionInfo() *QGeoPositionInfo

func NewQGeoPositionInfo1

func NewQGeoPositionInfo1(coordinate QGeoCoordinate_ITF, updateTime qtcore.QDateTime_ITF) *QGeoPositionInfo

func NewQGeoPositionInfoFromPointer

func NewQGeoPositionInfoFromPointer(cthis unsafe.Pointer) *QGeoPositionInfo

func (*QGeoPositionInfo) Attribute

func (this *QGeoPositionInfo) Attribute(attribute int) float64

Returns the value of the specified attribute as a qreal value.

Returns NaN if the value has not been set.

The function hasAttribute() should be used to determine whether or not a value has been set for an attribute.

See also hasAttribute() and setAttribute().

func (*QGeoPositionInfo) AttributeItemName

func (this *QGeoPositionInfo) AttributeItemName(val int) string

func (*QGeoPositionInfo) Coordinate

func (this *QGeoPositionInfo) Coordinate() *QGeoCoordinate

Returns the coordinate for this position.

Returns an invalid coordinate if no coordinate has been set.

See also setCoordinate().

func (*QGeoPositionInfo) GetCthis

func (this *QGeoPositionInfo) GetCthis() unsafe.Pointer

func (*QGeoPositionInfo) HasAttribute

func (this *QGeoPositionInfo) HasAttribute(attribute int) bool

Returns true if the specified attribute is present for this QGeoPositionInfo object.

func (*QGeoPositionInfo) IsValid

func (this *QGeoPositionInfo) IsValid() bool

Returns true if the timestamp() and coordinate() values are both valid.

See also QGeoCoordinate::isValid() and QDateTime::isValid().

func (*QGeoPositionInfo) NewForInherit

func (*QGeoPositionInfo) NewForInherit() *QGeoPositionInfo

Creates an invalid QGeoPositionInfo object.

See also isValid().

func (*QGeoPositionInfo) NewForInherit1

func (*QGeoPositionInfo) NewForInherit1(coordinate QGeoCoordinate_ITF, updateTime qtcore.QDateTime_ITF) *QGeoPositionInfo

Creates an invalid QGeoPositionInfo object.

See also isValid().

func (*QGeoPositionInfo) NewFromPointer

func (*QGeoPositionInfo) NewFromPointer(cthis unsafe.Pointer) *QGeoPositionInfo

func (*QGeoPositionInfo) Operator_equal

func (this *QGeoPositionInfo) Operator_equal(other QGeoPositionInfo_ITF) *QGeoPositionInfo

func (*QGeoPositionInfo) Operator_equal_equal

func (this *QGeoPositionInfo) Operator_equal_equal(other QGeoPositionInfo_ITF) bool

func (*QGeoPositionInfo) Operator_not_equal

func (this *QGeoPositionInfo) Operator_not_equal(other QGeoPositionInfo_ITF) bool

func (*QGeoPositionInfo) QGeoPositionInfo_PTR

func (ptr *QGeoPositionInfo) QGeoPositionInfo_PTR() *QGeoPositionInfo

func (*QGeoPositionInfo) RemoveAttribute

func (this *QGeoPositionInfo) RemoveAttribute(attribute int)

Removes the specified attribute and its value.

func (*QGeoPositionInfo) SetAttribute

func (this *QGeoPositionInfo) SetAttribute(attribute int, value float64)

Sets the value for attribute to value.

See also attribute().

func (*QGeoPositionInfo) SetCoordinate

func (this *QGeoPositionInfo) SetCoordinate(coordinate QGeoCoordinate_ITF)

Sets the coordinate for this position to coordinate.

See also coordinate().

func (*QGeoPositionInfo) SetCthis

func (this *QGeoPositionInfo) SetCthis(cthis unsafe.Pointer)

func (*QGeoPositionInfo) SetTimestamp

func (this *QGeoPositionInfo) SetTimestamp(timestamp qtcore.QDateTime_ITF)

Sets the date and time at which this position was reported to timestamp.

The timestamp must be in UTC time.

See also timestamp().

func (*QGeoPositionInfo) Timestamp

func (this *QGeoPositionInfo) Timestamp() *qtcore.QDateTime

Returns the date and time at which this position was reported, in UTC time.

Returns an invalid QDateTime if no date/time value has been set.

See also setTimestamp().

type QGeoPositionInfoSource

type QGeoPositionInfoSource struct {
	*qtcore.QObject
}

func NewQGeoPositionInfoSource

func NewQGeoPositionInfoSource(parent qtcore.QObject_ITF) *QGeoPositionInfoSource

func NewQGeoPositionInfoSourceFromPointer

func NewQGeoPositionInfoSourceFromPointer(cthis unsafe.Pointer) *QGeoPositionInfoSource

func QGeoPositionInfoSource_CreateDefaultSource

func QGeoPositionInfoSource_CreateDefaultSource(parent qtcore.QObject_ITF) *QGeoPositionInfoSource

func QGeoPositionInfoSource_CreateSource

func QGeoPositionInfoSource_CreateSource(sourceName string, parent qtcore.QObject_ITF) *QGeoPositionInfoSource

func (*QGeoPositionInfoSource) AvailableSources

func (this *QGeoPositionInfoSource) AvailableSources() *qtcore.QStringList

Returns a list of available source plugins. This includes any default backend plugin for the current platform.

func (*QGeoPositionInfoSource) CreateDefaultSource

func (this *QGeoPositionInfoSource) CreateDefaultSource(parent qtcore.QObject_ITF) *QGeoPositionInfoSource

Creates and returns a position source with the given parent that reads from the system's default sources of location data, or the plugin with the highest available priority.

Returns 0 if the system has no default position source, no valid plugins could be found or the user does not have the permission to access the current position.

func (*QGeoPositionInfoSource) CreateSource

func (this *QGeoPositionInfoSource) CreateSource(sourceName string, parent qtcore.QObject_ITF) *QGeoPositionInfoSource

Creates and returns a position source with the given parent, by loading the plugin named sourceName.

Returns 0 if the plugin cannot be found.

func (*QGeoPositionInfoSource) Error

func (this *QGeoPositionInfoSource) Error() int

Returns the type of error that last occurred.

func (*QGeoPositionInfoSource) Error1

func (this *QGeoPositionInfoSource) Error1(arg0 int)

Returns the type of error that last occurred.

func (*QGeoPositionInfoSource) ErrorItemName

func (this *QGeoPositionInfoSource) ErrorItemName(val int) string

func (*QGeoPositionInfoSource) GetCthis

func (this *QGeoPositionInfoSource) GetCthis() unsafe.Pointer

func (*QGeoPositionInfoSource) LastKnownPosition

func (this *QGeoPositionInfoSource) LastKnownPosition(fromSatellitePositioningMethodsOnly bool) *QGeoPositionInfo

Returns an update containing the last known position, or a null update if none is available.

If fromSatellitePositioningMethodsOnly is true, this returns the last known position received from a satellite positioning method; if none is available, a null update is returned.

func (*QGeoPositionInfoSource) LastKnownPositionp

func (this *QGeoPositionInfoSource) LastKnownPositionp() *QGeoPositionInfo

Returns an update containing the last known position, or a null update if none is available.

If fromSatellitePositioningMethodsOnly is true, this returns the last known position received from a satellite positioning method; if none is available, a null update is returned.

func (*QGeoPositionInfoSource) MetaObject

func (this *QGeoPositionInfoSource) MetaObject() *qtcore.QMetaObject

func (*QGeoPositionInfoSource) MinimumUpdateInterval

func (this *QGeoPositionInfoSource) MinimumUpdateInterval() int

func (*QGeoPositionInfoSource) NewForInherit

Creates a position source with the specified parent.

func (*QGeoPositionInfoSource) NewFromPointer

func (*QGeoPositionInfoSource) PositionUpdated

func (this *QGeoPositionInfoSource) PositionUpdated(update QGeoPositionInfo_ITF)

If startUpdates() or requestUpdate() is called, this signal is emitted when an update becomes available.

The update value holds the value of the new update.

func (*QGeoPositionInfoSource) PositioningMethodItemName

func (this *QGeoPositionInfoSource) PositioningMethodItemName(val int) string

func (*QGeoPositionInfoSource) PreferredPositioningMethods

func (this *QGeoPositionInfoSource) PreferredPositioningMethods() int

Returns the positioning methods set by setPreferredPositioningMethods().

See also setPreferredPositioningMethods().

func (*QGeoPositionInfoSource) QGeoPositionInfoSource_PTR

func (ptr *QGeoPositionInfoSource) QGeoPositionInfoSource_PTR() *QGeoPositionInfoSource

func (*QGeoPositionInfoSource) RequestUpdate

func (this *QGeoPositionInfoSource) RequestUpdate(timeout int)

Attempts to get the current position and emit positionUpdated() with this information. If the current position cannot be found within the given timeout (in milliseconds) or if timeout is less than the value returned by minimumUpdateInterval(), updateTimeout() is emitted.

If the timeout is zero, the timeout defaults to a reasonable timeout period as appropriate for the source.

This does nothing if another update request is in progress. However it can be called even if startUpdates() has already been called and regular updates are in progress.

If the source uses multiple positioning methods, it tries to get the current position from the most accurate positioning method within the given timeout.

func (*QGeoPositionInfoSource) RequestUpdatep

func (this *QGeoPositionInfoSource) RequestUpdatep()

Attempts to get the current position and emit positionUpdated() with this information. If the current position cannot be found within the given timeout (in milliseconds) or if timeout is less than the value returned by minimumUpdateInterval(), updateTimeout() is emitted.

If the timeout is zero, the timeout defaults to a reasonable timeout period as appropriate for the source.

This does nothing if another update request is in progress. However it can be called even if startUpdates() has already been called and regular updates are in progress.

If the source uses multiple positioning methods, it tries to get the current position from the most accurate positioning method within the given timeout.

func (*QGeoPositionInfoSource) SetCthis

func (this *QGeoPositionInfoSource) SetCthis(cthis unsafe.Pointer)

func (*QGeoPositionInfoSource) SetPreferredPositioningMethods

func (this *QGeoPositionInfoSource) SetPreferredPositioningMethods(methods int)

Sets the preferred positioning methods for this source to methods.

If methods includes a method that is not supported by the source, the unsupported method will be ignored.

If methods does not include a single method available/supported by the source, the preferred methods will be set to the set of methods which the source has available. If the source has no method availabe (e.g. because its Location service is turned off or it does not offer a Location service), the passed methods are accepted as they are.

Note: When reimplementing this method, subclasses must call the base method implementation to ensure preferredPositioningMethods() returns the correct value.

See also preferredPositioningMethods() and supportedPositioningMethods().

func (*QGeoPositionInfoSource) SetUpdateInterval

func (this *QGeoPositionInfoSource) SetUpdateInterval(msec int)

func (*QGeoPositionInfoSource) SourceName

func (this *QGeoPositionInfoSource) SourceName() string

func (*QGeoPositionInfoSource) StartUpdates

func (this *QGeoPositionInfoSource) StartUpdates()

Starts emitting updates at regular intervals as specified by setUpdateInterval().

If setUpdateInterval() has not been called, the source will emit updates as soon as they become available.

An updateTimeout() signal will be emitted if this QGeoPositionInfoSource subclass determines that it will not be able to provide regular updates. This could happen if a satellite fix is lost or if a hardware error is detected. Position updates will recommence if the data becomes available later on. The updateTimeout() signal will not be emitted again until after the periodic updates resume.

On iOS, starting from version 8, Core Location framework requires additional entries in the application's Info.plist with keys NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription and a string to be displayed in the authorization prompt. The key NSLocationWhenInUseUsageDescription is used when requesting permission to use location services while the app is in the foreground. The key NSLocationAlwaysUsageDescription is used when requesting permission to use location services whenever the app is running (both the foreground and the background). If both entries are defined, NSLocationWhenInUseUsageDescription has a priority in the foreground mode.

func (*QGeoPositionInfoSource) StopUpdates

func (this *QGeoPositionInfoSource) StopUpdates()

Stops emitting updates at regular intervals.

func (*QGeoPositionInfoSource) SupportedPositioningMethods

func (this *QGeoPositionInfoSource) SupportedPositioningMethods() int

Returns the positioning methods available to this source. Availability is defined as being usable at the time of calling this function. Therefore user settings like turned off location service or limitations to Satellite-based position providers are reflected by this function. Runtime notifications when the status changes can be obtained via supportedPositioningMethodsChanged().

Not all platforms distinguish the different positioning methods or communicate the current user configuration of the device. The following table provides an overview of the current platform situation:

PlatformBrief Description

AndroidIndividual provider status and general Location service state are known and communicated when location service is active. GeoClueHardcoced to always return AllPositioningMethods. GeoClue2Individual providers are not distinguishable but disabled Location services reflected. iOS/tvOSHardcoced to always return AllPositioningMethods. macOSHardcoced to always return AllPositioningMethods. Windows (UWP)Individual providers are not distinguishable but disabled Location services reflected.

See also supportedPositioningMethodsChanged() and setPreferredPositioningMethods().

func (*QGeoPositionInfoSource) SupportedPositioningMethodsChanged

func (this *QGeoPositionInfoSource) SupportedPositioningMethodsChanged()

This signal is emitted when the supported positioning methods changed. The cause for a change could be a user turning Location services on/off or restricting Location services to certain types (e.g. GPS only). Note that changes to the supported positioning methods cannot be detected on all platforms. supportedPositioningMethods() provides an overview of the current platform support.

This function was introduced in Qt 5.12.

func (*QGeoPositionInfoSource) UpdateInterval

func (this *QGeoPositionInfoSource) UpdateInterval() int

func (*QGeoPositionInfoSource) UpdateTimeout

func (this *QGeoPositionInfoSource) UpdateTimeout()

If requestUpdate() was called, this signal will be emitted if the current position could not be retrieved within the specified timeout.

If startUpdates() has been called, this signal will be emitted if this QGeoPositionInfoSource subclass determines that it will not be able to provide further regular updates. This signal will not be emitted again until after the regular updates resume.

While the triggering of this signal may be considered an error condition, it does not imply the emission of the error() signal. Only the emission of updateTimeout() is required to indicate a timeout.

type QGeoPositionInfoSourceFactory

type QGeoPositionInfoSourceFactory struct {
	*qtrt.CObject
}

func NewQGeoPositionInfoSourceFactoryFromPointer

func NewQGeoPositionInfoSourceFactoryFromPointer(cthis unsafe.Pointer) *QGeoPositionInfoSourceFactory

func (*QGeoPositionInfoSourceFactory) AreaMonitor

Returns a new QGeoAreaMonitorSource associated with this plugin with parent parent. Can also return 0, in which case the plugin loader will use the factory with the next highest priority.

func (*QGeoPositionInfoSourceFactory) GetCthis

func (this *QGeoPositionInfoSourceFactory) GetCthis() unsafe.Pointer

func (*QGeoPositionInfoSourceFactory) NewFromPointer

func (*QGeoPositionInfoSourceFactory) PositionInfoSource

func (this *QGeoPositionInfoSourceFactory) PositionInfoSource(parent qtcore.QObject_ITF) *QGeoPositionInfoSource

Returns a new QGeoPositionInfoSource associated with this plugin with parent parent. Can also return 0, in which case the plugin loader will use the factory with the next highest priority.

func (*QGeoPositionInfoSourceFactory) QGeoPositionInfoSourceFactory_PTR

func (ptr *QGeoPositionInfoSourceFactory) QGeoPositionInfoSourceFactory_PTR() *QGeoPositionInfoSourceFactory

func (*QGeoPositionInfoSourceFactory) SatelliteInfoSource

func (this *QGeoPositionInfoSourceFactory) SatelliteInfoSource(parent qtcore.QObject_ITF) *QGeoSatelliteInfoSource

Returns a new QGeoSatelliteInfoSource associated with this plugin with parent parent. Can also return 0, in which case the plugin loader will use the factory with the next highest priority.

func (*QGeoPositionInfoSourceFactory) SetCthis

func (this *QGeoPositionInfoSourceFactory) SetCthis(cthis unsafe.Pointer)

type QGeoPositionInfoSourceFactory_ITF

type QGeoPositionInfoSourceFactory_ITF interface {
	QGeoPositionInfoSourceFactory_PTR() *QGeoPositionInfoSourceFactory
}

type QGeoPositionInfoSource_ITF

type QGeoPositionInfoSource_ITF interface {
	qtcore.QObject_ITF
	QGeoPositionInfoSource_PTR() *QGeoPositionInfoSource
}

type QGeoPositionInfoSource__Error

type QGeoPositionInfoSource__Error = int

The Error enumeration represents the errors which can occur.

const QGeoPositionInfoSource__AccessError QGeoPositionInfoSource__Error = 0

The connection setup to the remote positioning backend failed because the application lacked the required privileges.

const QGeoPositionInfoSource__ClosedError QGeoPositionInfoSource__Error = 1

The remote positioning backend closed the connection, which happens for example in case the user is switching location services to off. As soon as the location service is re-enabled regular updates will resume.

const QGeoPositionInfoSource__NoError QGeoPositionInfoSource__Error = 3

No error has occurred.

const QGeoPositionInfoSource__UnknownSourceError QGeoPositionInfoSource__Error = 2

An unidentified error occurred.

type QGeoPositionInfoSource__PositioningMethod

type QGeoPositionInfoSource__PositioningMethod = int
const QGeoPositionInfoSource__AllPositioningMethods QGeoPositionInfoSource__PositioningMethod = -1
const QGeoPositionInfoSource__NoPositioningMethods QGeoPositionInfoSource__PositioningMethod = 0
const QGeoPositionInfoSource__NonSatellitePositioningMethods QGeoPositionInfoSource__PositioningMethod = -256
const QGeoPositionInfoSource__SatellitePositioningMethods QGeoPositionInfoSource__PositioningMethod = 255

type QGeoPositionInfo_ITF

type QGeoPositionInfo_ITF interface {
	QGeoPositionInfo_PTR() *QGeoPositionInfo
}

type QGeoPositionInfo__Attribute

type QGeoPositionInfo__Attribute = int

Defines the attributes for positional information.

const QGeoPositionInfo__Direction QGeoPositionInfo__Attribute = 0

The bearing measured in degrees clockwise from true north to the direction of travel.

const QGeoPositionInfo__GroundSpeed QGeoPositionInfo__Attribute = 1

The ground speed, in meters/sec.

const QGeoPositionInfo__HorizontalAccuracy QGeoPositionInfo__Attribute = 4

The accuracy of the provided latitude-longitude value, in meters.

const QGeoPositionInfo__MagneticVariation QGeoPositionInfo__Attribute = 3

The angle between the horizontal component of the magnetic field and true north, in degrees. Also known as magnetic declination. A positive value indicates a clockwise direction from true north and a negative value indicates a counter-clockwise direction.

const QGeoPositionInfo__VerticalAccuracy QGeoPositionInfo__Attribute = 5

The accuracy of the provided altitude value, in meters.

const QGeoPositionInfo__VerticalSpeed QGeoPositionInfo__Attribute = 2

The vertical speed, in meters/sec.

type QGeoRectangle

type QGeoRectangle struct {
	*QGeoShape
}

func NewQGeoRectangle

func NewQGeoRectangle() *QGeoRectangle

func NewQGeoRectangle1

func NewQGeoRectangle1(center QGeoCoordinate_ITF, degreesWidth float64, degreesHeight float64) *QGeoRectangle

func NewQGeoRectangle2

func NewQGeoRectangle2(topLeft QGeoCoordinate_ITF, bottomRight QGeoCoordinate_ITF) *QGeoRectangle

func NewQGeoRectangle3

func NewQGeoRectangle3(other QGeoShape_ITF) *QGeoRectangle

func NewQGeoRectangleFromPointer

func NewQGeoRectangleFromPointer(cthis unsafe.Pointer) *QGeoRectangle

func (*QGeoRectangle) BottomLeft

func (this *QGeoRectangle) BottomLeft() *QGeoCoordinate

Returns the bottom left coordinate of this geo rectangle.

Note: Getter function for property bottomLeft.

See also setBottomLeft().

func (*QGeoRectangle) BottomRight

func (this *QGeoRectangle) BottomRight() *QGeoCoordinate

Returns the bottom right coordinate of this geo rectangle.

Note: Getter function for property bottomRight.

See also setBottomRight().

func (*QGeoRectangle) Center

func (this *QGeoRectangle) Center() *QGeoCoordinate

Returns the center of this geo rectangle. Equivalent to QGeoShape::center().

Note: Getter function for property center.

See also setCenter().

func (*QGeoRectangle) Contains

func (this *QGeoRectangle) Contains(rectangle QGeoRectangle_ITF) bool

Returns whether the geo rectangle rectangle is contained within this geo rectangle.

func (*QGeoRectangle) ExtendRectangle

func (this *QGeoRectangle) ExtendRectangle(coordinate QGeoCoordinate_ITF)

Extends the geo rectangle to also cover the coordinate coordinate

This function was introduced in Qt 5.9.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoRectangle) GetCthis

func (this *QGeoRectangle) GetCthis() unsafe.Pointer

func (*QGeoRectangle) Height

func (this *QGeoRectangle) Height() float64

Returns the height of this geo rectangle in degrees.

The return value is undefined if this geo rectangle is invalid.

Note: Getter function for property height.

See also setHeight().

func (*QGeoRectangle) Intersects

func (this *QGeoRectangle) Intersects(rectangle QGeoRectangle_ITF) bool

Returns whether the geo rectangle rectangle intersects this geo rectangle.

If the top or bottom edges of both geo rectangles are at one of the poles the geo rectangles are considered to be intersecting, since the longitude is irrelevant when the edges are at the pole.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoRectangle) NewForInherit

func (*QGeoRectangle) NewForInherit() *QGeoRectangle

Constructs a new, invalid geo rectangle.

func (*QGeoRectangle) NewForInherit1

func (*QGeoRectangle) NewForInherit1(center QGeoCoordinate_ITF, degreesWidth float64, degreesHeight float64) *QGeoRectangle

Constructs a new, invalid geo rectangle.

func (*QGeoRectangle) NewForInherit2

func (*QGeoRectangle) NewForInherit2(topLeft QGeoCoordinate_ITF, bottomRight QGeoCoordinate_ITF) *QGeoRectangle

Constructs a new, invalid geo rectangle.

func (*QGeoRectangle) NewForInherit3

func (*QGeoRectangle) NewForInherit3(other QGeoShape_ITF) *QGeoRectangle

Constructs a new, invalid geo rectangle.

func (*QGeoRectangle) NewFromPointer

func (*QGeoRectangle) NewFromPointer(cthis unsafe.Pointer) *QGeoRectangle

func (*QGeoRectangle) Operator_equal

func (this *QGeoRectangle) Operator_equal(other QGeoRectangle_ITF) *QGeoRectangle

func (*QGeoRectangle) Operator_equal_equal

func (this *QGeoRectangle) Operator_equal_equal(other QGeoRectangle_ITF) bool

func (*QGeoRectangle) Operator_not_equal

func (this *QGeoRectangle) Operator_not_equal(other QGeoRectangle_ITF) bool

func (*QGeoRectangle) Operator_or

func (this *QGeoRectangle) Operator_or(rectangle QGeoRectangle_ITF) *QGeoRectangle

func (*QGeoRectangle) Operator_or_equal

func (this *QGeoRectangle) Operator_or_equal(rectangle QGeoRectangle_ITF) *QGeoRectangle

func (*QGeoRectangle) QGeoRectangle_PTR

func (ptr *QGeoRectangle) QGeoRectangle_PTR() *QGeoRectangle

func (*QGeoRectangle) SetBottomLeft

func (this *QGeoRectangle) SetBottomLeft(bottomLeft QGeoCoordinate_ITF)

Sets the bottom left coordinate of this geo rectangle to bottomLeft.

Note: Setter function for property bottomLeft.

See also bottomLeft().

func (*QGeoRectangle) SetBottomRight

func (this *QGeoRectangle) SetBottomRight(bottomRight QGeoCoordinate_ITF)

Sets the bottom right coordinate of this geo rectangle to bottomRight.

Note: Setter function for property bottomRight.

See also bottomRight().

func (*QGeoRectangle) SetCenter

func (this *QGeoRectangle) SetCenter(center QGeoCoordinate_ITF)

Sets the center of this geo rectangle to center.

If this causes the geo rectangle to cross on of the poles the height of the geo rectangle will be truncated such that the geo rectangle only extends up to the pole. The center of the geo rectangle will be unchanged, and the height will be adjusted such that the center point is at the center of the truncated geo rectangle.

Note: Setter function for property center.

See also center().

func (*QGeoRectangle) SetCthis

func (this *QGeoRectangle) SetCthis(cthis unsafe.Pointer)

func (*QGeoRectangle) SetHeight

func (this *QGeoRectangle) SetHeight(degreesHeight float64)

Sets the height of this geo rectangle in degrees to degreesHeight.

Note: Setter function for property height.

See also height().

func (*QGeoRectangle) SetTopLeft

func (this *QGeoRectangle) SetTopLeft(topLeft QGeoCoordinate_ITF)

Sets the top left coordinate of this geo rectangle to topLeft.

Note: Setter function for property topLeft.

See also topLeft().

func (*QGeoRectangle) SetTopRight

func (this *QGeoRectangle) SetTopRight(topRight QGeoCoordinate_ITF)

Sets the top right coordinate of this geo rectangle to topRight.

Note: Setter function for property topRight.

See also topRight().

func (*QGeoRectangle) SetWidth

func (this *QGeoRectangle) SetWidth(degreesWidth float64)

Sets the width of this geo rectangle in degrees to degreesWidth.

Note: Setter function for property width.

See also width().

func (*QGeoRectangle) ToString

func (this *QGeoRectangle) ToString() string

Returns the geo rectangle properties as a string.

This function was introduced in Qt 5.5.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoRectangle) TopLeft

func (this *QGeoRectangle) TopLeft() *QGeoCoordinate

Returns the top left coordinate of this geo rectangle.

Note: Getter function for property topLeft.

See also setTopLeft().

func (*QGeoRectangle) TopRight

func (this *QGeoRectangle) TopRight() *QGeoCoordinate

Returns the top right coordinate of this geo rectangle.

Note: Getter function for property topRight.

See also setTopRight().

func (*QGeoRectangle) Translate

func (this *QGeoRectangle) Translate(degreesLatitude float64, degreesLongitude float64)

Translates this geo rectangle by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

If the translation would have caused the geo rectangle to cross a pole the geo rectangle will be translated until the top or bottom edge of the geo rectangle touches the pole but not further.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoRectangle) Translated

func (this *QGeoRectangle) Translated(degreesLatitude float64, degreesLongitude float64) *QGeoRectangle

Returns a copy of this geo rectangle translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also translate().

func (*QGeoRectangle) United

func (this *QGeoRectangle) United(rectangle QGeoRectangle_ITF) *QGeoRectangle

Returns the smallest geo rectangle which contains both this geo rectangle and rectangle.

If the centers of the two geo rectangles are separated by exactly 180.0 degrees then the width is set to 360.0 degrees with the leftmost longitude set to -180.0 degrees and the rightmost longitude set to 180.0 degrees. This is done to ensure that the result is independent of the order of the operands.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoRectangle) Width

func (this *QGeoRectangle) Width() float64

Returns the width of this geo rectangle in degrees.

The return value is undefined if this geo rectangle is invalid.

Note: Getter function for property width.

See also setWidth().

type QGeoRectangle_ITF

type QGeoRectangle_ITF interface {
	QGeoShape_ITF
	QGeoRectangle_PTR() *QGeoRectangle
}

type QGeoSatelliteInfo

type QGeoSatelliteInfo struct {
	*qtrt.CObject
}

func NewQGeoSatelliteInfo

func NewQGeoSatelliteInfo() *QGeoSatelliteInfo

func NewQGeoSatelliteInfoFromPointer

func NewQGeoSatelliteInfoFromPointer(cthis unsafe.Pointer) *QGeoSatelliteInfo

func (*QGeoSatelliteInfo) Attribute

func (this *QGeoSatelliteInfo) Attribute(attribute int) float64

Returns the value of the specified attribute as a qreal value.

Returns -1 if the value has not been set.

See also hasAttribute() and setAttribute().

func (*QGeoSatelliteInfo) AttributeItemName

func (this *QGeoSatelliteInfo) AttributeItemName(val int) string

func (*QGeoSatelliteInfo) GetCthis

func (this *QGeoSatelliteInfo) GetCthis() unsafe.Pointer

func (*QGeoSatelliteInfo) HasAttribute

func (this *QGeoSatelliteInfo) HasAttribute(attribute int) bool

Returns true if the specified attribute is present in this update.

func (*QGeoSatelliteInfo) NewForInherit

func (*QGeoSatelliteInfo) NewForInherit() *QGeoSatelliteInfo

Creates a satellite information object.

func (*QGeoSatelliteInfo) NewFromPointer

func (*QGeoSatelliteInfo) NewFromPointer(cthis unsafe.Pointer) *QGeoSatelliteInfo

func (*QGeoSatelliteInfo) Operator_equal

func (this *QGeoSatelliteInfo) Operator_equal(other QGeoSatelliteInfo_ITF) *QGeoSatelliteInfo

func (*QGeoSatelliteInfo) Operator_equal_equal

func (this *QGeoSatelliteInfo) Operator_equal_equal(other QGeoSatelliteInfo_ITF) bool

func (*QGeoSatelliteInfo) Operator_not_equal

func (this *QGeoSatelliteInfo) Operator_not_equal(other QGeoSatelliteInfo_ITF) bool

func (*QGeoSatelliteInfo) QGeoSatelliteInfo_PTR

func (ptr *QGeoSatelliteInfo) QGeoSatelliteInfo_PTR() *QGeoSatelliteInfo

func (*QGeoSatelliteInfo) RemoveAttribute

func (this *QGeoSatelliteInfo) RemoveAttribute(attribute int)

Removes the specified attribute and its value.

func (*QGeoSatelliteInfo) SatelliteIdentifier

func (this *QGeoSatelliteInfo) SatelliteIdentifier() int

Returns the satellite identifier number.

The satellite identifier number can be used to identify a satellite inside the satellite system. For satellite system GPS the satellite identifier number represents the PRN (Pseudo-random noise) number. For satellite system GLONASS the satellite identifier number represents the slot number.

See also setSatelliteIdentifier().

func (*QGeoSatelliteInfo) SatelliteSystem

func (this *QGeoSatelliteInfo) SatelliteSystem() int

Returns the Satellite System (GPS, GLONASS, ...)

See also setSatelliteSystem().

func (*QGeoSatelliteInfo) SatelliteSystemItemName

func (this *QGeoSatelliteInfo) SatelliteSystemItemName(val int) string

func (*QGeoSatelliteInfo) SetAttribute

func (this *QGeoSatelliteInfo) SetAttribute(attribute int, value float64)

Sets the value for attribute to value.

See also attribute().

func (*QGeoSatelliteInfo) SetCthis

func (this *QGeoSatelliteInfo) SetCthis(cthis unsafe.Pointer)

func (*QGeoSatelliteInfo) SetSatelliteIdentifier

func (this *QGeoSatelliteInfo) SetSatelliteIdentifier(satId int)

Sets the satellite identifier number to satId.

The satellite identifier number can be used to identify a satellite inside the satellite system. For satellite system GPS the satellite identifier number represents the PRN (Pseudo-random noise) number. For satellite system GLONASS the satellite identifier number represents the slot number.

See also satelliteIdentifier().

func (*QGeoSatelliteInfo) SetSatelliteSystem

func (this *QGeoSatelliteInfo) SetSatelliteSystem(system int)

Sets the Satellite System (GPS, GLONASS, ...) to system.

See also satelliteSystem().

func (*QGeoSatelliteInfo) SetSignalStrength

func (this *QGeoSatelliteInfo) SetSignalStrength(signalStrength int)

Sets the signal strength to signalStrength, in decibels.

See also signalStrength().

func (*QGeoSatelliteInfo) SignalStrength

func (this *QGeoSatelliteInfo) SignalStrength() int

Returns the signal strength, or -1 if the value has not been set.

See also setSignalStrength().

type QGeoSatelliteInfoSource

type QGeoSatelliteInfoSource struct {
	*qtcore.QObject
}

func NewQGeoSatelliteInfoSource

func NewQGeoSatelliteInfoSource(parent qtcore.QObject_ITF) *QGeoSatelliteInfoSource

func NewQGeoSatelliteInfoSourceFromPointer

func NewQGeoSatelliteInfoSourceFromPointer(cthis unsafe.Pointer) *QGeoSatelliteInfoSource

func QGeoSatelliteInfoSource_CreateDefaultSource

func QGeoSatelliteInfoSource_CreateDefaultSource(parent qtcore.QObject_ITF) *QGeoSatelliteInfoSource

func QGeoSatelliteInfoSource_CreateSource

func QGeoSatelliteInfoSource_CreateSource(sourceName string, parent qtcore.QObject_ITF) *QGeoSatelliteInfoSource

func (*QGeoSatelliteInfoSource) AvailableSources

func (this *QGeoSatelliteInfoSource) AvailableSources() *qtcore.QStringList

Returns a list of available source plugins, including the default system backend if one is available.

func (*QGeoSatelliteInfoSource) CreateDefaultSource

func (this *QGeoSatelliteInfoSource) CreateDefaultSource(parent qtcore.QObject_ITF) *QGeoSatelliteInfoSource

Creates and returns a source with the specified parent that reads from the system's default source of satellite update information, or the highest priority available plugin.

Returns 0 if the system has no default satellite source, no valid plugins could be found or the user does not have the permission to access the satellite data.

func (*QGeoSatelliteInfoSource) CreateSource

func (this *QGeoSatelliteInfoSource) CreateSource(sourceName string, parent qtcore.QObject_ITF) *QGeoSatelliteInfoSource

Creates and returns a source with the given parent, by loading the plugin named sourceName.

Returns 0 if the plugin cannot be found.

func (*QGeoSatelliteInfoSource) Error

func (this *QGeoSatelliteInfoSource) Error() int

Returns the last error that occurred.

This signal is not emitted when a requestTimeout() has occurred.

func (*QGeoSatelliteInfoSource) Error1

func (this *QGeoSatelliteInfoSource) Error1(arg0 int)

Returns the last error that occurred.

This signal is not emitted when a requestTimeout() has occurred.

func (*QGeoSatelliteInfoSource) ErrorItemName

func (this *QGeoSatelliteInfoSource) ErrorItemName(val int) string

func (*QGeoSatelliteInfoSource) GetCthis

func (this *QGeoSatelliteInfoSource) GetCthis() unsafe.Pointer

func (*QGeoSatelliteInfoSource) MetaObject

func (this *QGeoSatelliteInfoSource) MetaObject() *qtcore.QMetaObject

func (*QGeoSatelliteInfoSource) MinimumUpdateInterval

func (this *QGeoSatelliteInfoSource) MinimumUpdateInterval() int

func (*QGeoSatelliteInfoSource) NewForInherit

Creates a satellite source with the specified parent.

func (*QGeoSatelliteInfoSource) NewFromPointer

func (*QGeoSatelliteInfoSource) QGeoSatelliteInfoSource_PTR

func (ptr *QGeoSatelliteInfoSource) QGeoSatelliteInfoSource_PTR() *QGeoSatelliteInfoSource

func (*QGeoSatelliteInfoSource) RequestTimeout

func (this *QGeoSatelliteInfoSource) RequestTimeout()

Emitted if requestUpdate() was called and the current satellite information could not be retrieved within the specified timeout.

While the triggering of this signal may be considered an error condition, it does not imply the emission of the error() signal. Only the emission of requestTimeout() is required to indicate a timeout.

func (*QGeoSatelliteInfoSource) RequestUpdate

func (this *QGeoSatelliteInfoSource) RequestUpdate(timeout int)

Attempts to get the current satellite information and emit satellitesInViewUpdated() and satellitesInUseUpdated() with this information. If the current satellite information cannot be found within the given timeout (in milliseconds) or if timeout is less than the value returned by minimumUpdateInterval(), requestTimeout() is emitted.

If the timeout is zero, the timeout defaults to a reasonable timeout period as appropriate for the source.

This does nothing if another update request is in progress. However it can be called even if startUpdates() has already been called and regular updates are in progress.

func (*QGeoSatelliteInfoSource) RequestUpdatep

func (this *QGeoSatelliteInfoSource) RequestUpdatep()

Attempts to get the current satellite information and emit satellitesInViewUpdated() and satellitesInUseUpdated() with this information. If the current satellite information cannot be found within the given timeout (in milliseconds) or if timeout is less than the value returned by minimumUpdateInterval(), requestTimeout() is emitted.

If the timeout is zero, the timeout defaults to a reasonable timeout period as appropriate for the source.

This does nothing if another update request is in progress. However it can be called even if startUpdates() has already been called and regular updates are in progress.

func (*QGeoSatelliteInfoSource) SetCthis

func (this *QGeoSatelliteInfoSource) SetCthis(cthis unsafe.Pointer)

func (*QGeoSatelliteInfoSource) SetUpdateInterval

func (this *QGeoSatelliteInfoSource) SetUpdateInterval(msec int)

func (*QGeoSatelliteInfoSource) SourceName

func (this *QGeoSatelliteInfoSource) SourceName() string

Returns the unique name of the satellite source implementation in use.

This is the same name that can be passed to createSource() in order to create a new instance of a particular satellite source implementation.

func (*QGeoSatelliteInfoSource) StartUpdates

func (this *QGeoSatelliteInfoSource) StartUpdates()

Starts emitting updates at regular intervals. The updates will be provided whenever new satellite information becomes available.

If satellite information cannot be retrieved or some other form of timeout has occurred the satellitesInViewUpdated() and satellitesInUseUpdated() signals may be emitted with empty parameter lists.

See also satellitesInViewUpdated() and satellitesInUseUpdated().

func (*QGeoSatelliteInfoSource) StopUpdates

func (this *QGeoSatelliteInfoSource) StopUpdates()

Stops emitting updates at regular intervals.

func (*QGeoSatelliteInfoSource) UpdateInterval

func (this *QGeoSatelliteInfoSource) UpdateInterval() int

type QGeoSatelliteInfoSource_ITF

type QGeoSatelliteInfoSource_ITF interface {
	qtcore.QObject_ITF
	QGeoSatelliteInfoSource_PTR() *QGeoSatelliteInfoSource
}

type QGeoSatelliteInfoSource__Error

type QGeoSatelliteInfoSource__Error = int

The Error enumeration represents the errors which can occur.

const QGeoSatelliteInfoSource__AccessError QGeoSatelliteInfoSource__Error = 0

The connection setup to the satellite backend failed because the application lacked the required privileges.

const QGeoSatelliteInfoSource__ClosedError QGeoSatelliteInfoSource__Error = 1

The satellite backend closed the connection, which happens for example in case the user is switching location services to off. This object becomes invalid and should be deleted. A new satellite source can be created by calling createDefaultSource() later on.

const QGeoSatelliteInfoSource__NoError QGeoSatelliteInfoSource__Error = 2

No error has occurred.

const QGeoSatelliteInfoSource__UnknownSourceError QGeoSatelliteInfoSource__Error = -1

type QGeoSatelliteInfo_ITF

type QGeoSatelliteInfo_ITF interface {
	QGeoSatelliteInfo_PTR() *QGeoSatelliteInfo
}

type QGeoSatelliteInfo__Attribute

type QGeoSatelliteInfo__Attribute = int

Defines the attributes for the satellite information.

const QGeoSatelliteInfo__Azimuth QGeoSatelliteInfo__Attribute = 1

The azimuth to true north, in degrees.

const QGeoSatelliteInfo__Elevation QGeoSatelliteInfo__Attribute = 0

The elevation of the satellite, in degrees.

type QGeoSatelliteInfo__SatelliteSystem

type QGeoSatelliteInfo__SatelliteSystem = int

Defines the GNSS system of the satellite.

const QGeoSatelliteInfo__GLONASS QGeoSatelliteInfo__SatelliteSystem = 2
const QGeoSatelliteInfo__GPS QGeoSatelliteInfo__SatelliteSystem = 1
const QGeoSatelliteInfo__Undefined QGeoSatelliteInfo__SatelliteSystem = 0

type QGeoShape

type QGeoShape struct {
	*qtrt.CObject
}

func NewQGeoShape

func NewQGeoShape() *QGeoShape

func NewQGeoShapeFromPointer

func NewQGeoShapeFromPointer(cthis unsafe.Pointer) *QGeoShape

func (*QGeoShape) BoundingGeoRectangle

func (this *QGeoShape) BoundingGeoRectangle() *QGeoRectangle

Returns a QGeoRectangle representing the geographical bounding rectangle of the geo shape, that defines the latitudinal/longitudinal bounds of the geo shape.

This function was introduced in Qt 5.9.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoShape) Center

func (this *QGeoShape) Center() *QGeoCoordinate

Returns the coordinate located at the geometric center of the geo shape.

This function was introduced in Qt 5.5.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoShape) Contains

func (this *QGeoShape) Contains(coordinate QGeoCoordinate_ITF) bool

Returns whether the coordinate coordinate is contained within this geo shape.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoShape) ExtendShape

func (this *QGeoShape) ExtendShape(coordinate QGeoCoordinate_ITF)

func (*QGeoShape) GetCthis

func (this *QGeoShape) GetCthis() unsafe.Pointer

func (*QGeoShape) IsEmpty

func (this *QGeoShape) IsEmpty() bool

Returns whether this geo shape is empty.

An empty geo shape is a region which has a geometrical area of 0.

Note: Getter function for property isEmpty.

func (*QGeoShape) IsValid

func (this *QGeoShape) IsValid() bool

Returns whether this geo shape is valid.

Note: Getter function for property isValid.

func (*QGeoShape) NewForInherit

func (*QGeoShape) NewForInherit() *QGeoShape

Constructs a new invalid geo shape of UnknownType.

func (*QGeoShape) NewFromPointer

func (*QGeoShape) NewFromPointer(cthis unsafe.Pointer) *QGeoShape

func (*QGeoShape) Operator_equal

func (this *QGeoShape) Operator_equal(other QGeoShape_ITF) *QGeoShape

func (*QGeoShape) Operator_equal_equal

func (this *QGeoShape) Operator_equal_equal(other QGeoShape_ITF) bool

func (*QGeoShape) Operator_not_equal

func (this *QGeoShape) Operator_not_equal(other QGeoShape_ITF) bool

func (*QGeoShape) QGeoShape_PTR

func (ptr *QGeoShape) QGeoShape_PTR() *QGeoShape

func (*QGeoShape) SetCthis

func (this *QGeoShape) SetCthis(cthis unsafe.Pointer)

func (*QGeoShape) ShapeTypeItemName

func (this *QGeoShape) ShapeTypeItemName(val int) string

func (*QGeoShape) ToString

func (this *QGeoShape) ToString() string

Returns a string representation of this geo shape.

This function was introduced in Qt 5.5.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QGeoShape) Type

func (this *QGeoShape) Type() int

Returns the type of this geo shape.

Note: Getter function for property type.

type QGeoShape_ITF

type QGeoShape_ITF interface {
	QGeoShape_PTR() *QGeoShape
}

type QGeoShape__ShapeType

type QGeoShape__ShapeType = int

Describes the type of the shape.

const QGeoShape__CircleType QGeoShape__ShapeType = 2

A circular shape

const QGeoShape__PathType QGeoShape__ShapeType = 3

A path type

const QGeoShape__PolygonType QGeoShape__ShapeType = 4

A polygon type

const QGeoShape__RectangleType QGeoShape__ShapeType = 1

A rectangular shape

const QGeoShape__UnknownType QGeoShape__ShapeType = 0

A shape of unknown type

type QNmeaPositionInfoSource

type QNmeaPositionInfoSource struct {
	*QGeoPositionInfoSource
}

func NewQNmeaPositionInfoSource

func NewQNmeaPositionInfoSource(updateMode int, parent qtcore.QObject_ITF) *QNmeaPositionInfoSource

func NewQNmeaPositionInfoSourceFromPointer

func NewQNmeaPositionInfoSourceFromPointer(cthis unsafe.Pointer) *QNmeaPositionInfoSource

func NewQNmeaPositionInfoSourcep

func NewQNmeaPositionInfoSourcep(updateMode int) *QNmeaPositionInfoSource

func (*QNmeaPositionInfoSource) Device

func (this *QNmeaPositionInfoSource) Device() *qtcore.QIODevice

Returns the NMEA data source.

See also setDevice().

func (*QNmeaPositionInfoSource) Error

func (this *QNmeaPositionInfoSource) Error() int

Reimplemented from QGeoPositionInfoSource::error().

func (*QNmeaPositionInfoSource) GetCthis

func (this *QNmeaPositionInfoSource) GetCthis() unsafe.Pointer

func (*QNmeaPositionInfoSource) InheritParsePosInfoFromNmeaData

func (this *QNmeaPositionInfoSource) InheritParsePosInfoFromNmeaData(f func(data string, size int, posInfo *QGeoPositionInfo, hasFix *bool) bool)

bool parsePosInfoFromNmeaData(const char *, int, QGeoPositionInfo *, bool *)

func (*QNmeaPositionInfoSource) LastKnownPosition

func (this *QNmeaPositionInfoSource) LastKnownPosition(fromSatellitePositioningMethodsOnly bool) *QGeoPositionInfo

Reimplemented from QGeoPositionInfoSource::lastKnownPosition().

func (*QNmeaPositionInfoSource) LastKnownPositionp

func (this *QNmeaPositionInfoSource) LastKnownPositionp() *QGeoPositionInfo

Reimplemented from QGeoPositionInfoSource::lastKnownPosition().

func (*QNmeaPositionInfoSource) MetaObject

func (this *QNmeaPositionInfoSource) MetaObject() *qtcore.QMetaObject

func (*QNmeaPositionInfoSource) MinimumUpdateInterval

func (this *QNmeaPositionInfoSource) MinimumUpdateInterval() int

Reimplemented from QGeoPositionInfoSource::minimumUpdateInterval().

func (*QNmeaPositionInfoSource) NewForInherit

func (*QNmeaPositionInfoSource) NewForInherit(updateMode int, parent qtcore.QObject_ITF) *QNmeaPositionInfoSource

Constructs a QNmeaPositionInfoSource instance with the given parent and updateMode.

func (*QNmeaPositionInfoSource) NewForInheritp

func (*QNmeaPositionInfoSource) NewForInheritp(updateMode int) *QNmeaPositionInfoSource

Constructs a QNmeaPositionInfoSource instance with the given parent and updateMode.

func (*QNmeaPositionInfoSource) NewFromPointer

func (*QNmeaPositionInfoSource) ParsePosInfoFromNmeaData

func (this *QNmeaPositionInfoSource) ParsePosInfoFromNmeaData(data string, size int, posInfo QGeoPositionInfo_ITF, hasFix *bool) bool

Parses an NMEA sentence string into a QGeoPositionInfo.

The default implementation will parse standard NMEA sentences. This method should be reimplemented in a subclass whenever the need to deal with non-standard NMEA sentences arises.

The parser reads size bytes from data and uses that information to setup posInfo and hasFix. If hasFix is set to false then posInfo may contain only the time or the date and the time.

Returns true if the sentence was succsesfully parsed, otherwise returns false and should not modifiy posInfo or hasFix.

func (*QNmeaPositionInfoSource) QNmeaPositionInfoSource_PTR

func (ptr *QNmeaPositionInfoSource) QNmeaPositionInfoSource_PTR() *QNmeaPositionInfoSource

func (*QNmeaPositionInfoSource) RequestUpdate

func (this *QNmeaPositionInfoSource) RequestUpdate(timeout int)

Reimplemented from QGeoPositionInfoSource::requestUpdate().

func (*QNmeaPositionInfoSource) RequestUpdatep

func (this *QNmeaPositionInfoSource) RequestUpdatep()

Reimplemented from QGeoPositionInfoSource::requestUpdate().

func (*QNmeaPositionInfoSource) SetCthis

func (this *QNmeaPositionInfoSource) SetCthis(cthis unsafe.Pointer)

func (*QNmeaPositionInfoSource) SetDevice

func (this *QNmeaPositionInfoSource) SetDevice(source qtcore.QIODevice_ITF)

Sets the NMEA data source to device. If the device is not open, it will be opened in QIODevice::ReadOnly mode.

The source device can only be set once and must be set before calling startUpdates() or requestUpdate().

Note: The device must emit QIODevice::readyRead() for the source to be notified when data is available for reading. QNmeaPositionInfoSource does not assume the ownership of the device, and hence does not deallocate it upon destruction.

See also device().

func (*QNmeaPositionInfoSource) SetUpdateInterval

func (this *QNmeaPositionInfoSource) SetUpdateInterval(msec int)

Reimplemented from QGeoPositionInfoSource::setUpdateInterval().

func (*QNmeaPositionInfoSource) SetUserEquivalentRangeError

func (this *QNmeaPositionInfoSource) SetUserEquivalentRangeError(uere float64)

Sets the User Equivalent Range Error (UERE) to uere. The UERE is used in calculating an estimate of the accuracy of the position information reported by the position info source. The UERE should be set to a value appropriate for the GPS device which generated the NMEA stream.

The true UERE value is calculated from multiple error sources including errors introduced by the satellites and signal propogation delays through the atmosphere as well as errors introduced by the receiving GPS equipment. For details on GPS accuracy see http://edu-observatory.org/gps/gps_accuracy.html.

A typical value for UERE is approximately 5.1.

This function was introduced in Qt 5.3.

See also userEquivalentRangeError().

func (*QNmeaPositionInfoSource) StartUpdates

func (this *QNmeaPositionInfoSource) StartUpdates()

Reimplemented from QGeoPositionInfoSource::startUpdates().

func (*QNmeaPositionInfoSource) StopUpdates

func (this *QNmeaPositionInfoSource) StopUpdates()

Reimplemented from QGeoPositionInfoSource::stopUpdates().

func (*QNmeaPositionInfoSource) SupportedPositioningMethods

func (this *QNmeaPositionInfoSource) SupportedPositioningMethods() int

Reimplemented from QGeoPositionInfoSource::supportedPositioningMethods().

func (*QNmeaPositionInfoSource) UpdateMode

func (this *QNmeaPositionInfoSource) UpdateMode() int

Returns the update mode.

func (*QNmeaPositionInfoSource) UpdateModeItemName

func (this *QNmeaPositionInfoSource) UpdateModeItemName(val int) string

func (*QNmeaPositionInfoSource) UserEquivalentRangeError

func (this *QNmeaPositionInfoSource) UserEquivalentRangeError() float64

Returns the current User Equivalent Range Error (UERE). The UERE is used in calculating an estimate of the accuracy of the position information reported by the position info source. The default value is NaN which means no accuracy information will be provided.

This function was introduced in Qt 5.3.

See also setUserEquivalentRangeError().

type QNmeaPositionInfoSource_ITF

type QNmeaPositionInfoSource_ITF interface {
	QGeoPositionInfoSource_ITF
	QNmeaPositionInfoSource_PTR() *QNmeaPositionInfoSource
}

type QNmeaPositionInfoSource__UpdateMode

type QNmeaPositionInfoSource__UpdateMode = int

Defines the available update modes.

const QNmeaPositionInfoSource__RealTimeMode QNmeaPositionInfoSource__UpdateMode = 1

Positional data is read and distributed from the data source as it becomes available. Use this mode if you are using a live source of positional data (for example, a GPS hardware device).

const QNmeaPositionInfoSource__SimulationMode QNmeaPositionInfoSource__UpdateMode = 2

The data and time information in the NMEA source data is used to provide positional updates at the rate at which the data was originally recorded. Use this mode if the data source contains previously recorded NMEA data and you want to replay the data for simulation purposes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL