154 lines
5.0 KiB
Rust
154 lines
5.0 KiB
Rust
|
|
#[cfg(feature = "Devices_Geolocation_Geofencing")]
|
||
|
|
pub mod Geofencing;
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct AltitudeReferenceSystem(pub i32);
|
||
|
|
impl AltitudeReferenceSystem {
|
||
|
|
pub const Unspecified: Self = Self(0i32);
|
||
|
|
pub const Terrain: Self = Self(1i32);
|
||
|
|
pub const Ellipsoid: Self = Self(2i32);
|
||
|
|
pub const Geoid: Self = Self(3i32);
|
||
|
|
pub const Surface: Self = Self(4i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for AltitudeReferenceSystem {}
|
||
|
|
impl ::core::clone::Clone for AltitudeReferenceSystem {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#[repr(C)]
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
pub struct BasicGeoposition {
|
||
|
|
pub Latitude: f64,
|
||
|
|
pub Longitude: f64,
|
||
|
|
pub Altitude: f64,
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for BasicGeoposition {}
|
||
|
|
impl ::core::clone::Clone for BasicGeoposition {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
pub type CivicAddress = *mut ::core::ffi::c_void;
|
||
|
|
pub type GeoboundingBox = *mut ::core::ffi::c_void;
|
||
|
|
pub type Geocircle = *mut ::core::ffi::c_void;
|
||
|
|
pub type Geocoordinate = *mut ::core::ffi::c_void;
|
||
|
|
pub type GeocoordinateSatelliteData = *mut ::core::ffi::c_void;
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct GeolocationAccessStatus(pub i32);
|
||
|
|
impl GeolocationAccessStatus {
|
||
|
|
pub const Unspecified: Self = Self(0i32);
|
||
|
|
pub const Allowed: Self = Self(1i32);
|
||
|
|
pub const Denied: Self = Self(2i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for GeolocationAccessStatus {}
|
||
|
|
impl ::core::clone::Clone for GeolocationAccessStatus {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
pub type Geolocator = *mut ::core::ffi::c_void;
|
||
|
|
pub type Geopath = *mut ::core::ffi::c_void;
|
||
|
|
pub type Geopoint = *mut ::core::ffi::c_void;
|
||
|
|
pub type Geoposition = *mut ::core::ffi::c_void;
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct GeoshapeType(pub i32);
|
||
|
|
impl GeoshapeType {
|
||
|
|
pub const Geopoint: Self = Self(0i32);
|
||
|
|
pub const Geocircle: Self = Self(1i32);
|
||
|
|
pub const Geopath: Self = Self(2i32);
|
||
|
|
pub const GeoboundingBox: Self = Self(3i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for GeoshapeType {}
|
||
|
|
impl ::core::clone::Clone for GeoshapeType {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
pub type Geovisit = *mut ::core::ffi::c_void;
|
||
|
|
pub type GeovisitMonitor = *mut ::core::ffi::c_void;
|
||
|
|
pub type GeovisitStateChangedEventArgs = *mut ::core::ffi::c_void;
|
||
|
|
pub type GeovisitTriggerDetails = *mut ::core::ffi::c_void;
|
||
|
|
pub type IGeoshape = *mut ::core::ffi::c_void;
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct PositionAccuracy(pub i32);
|
||
|
|
impl PositionAccuracy {
|
||
|
|
pub const Default: Self = Self(0i32);
|
||
|
|
pub const High: Self = Self(1i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for PositionAccuracy {}
|
||
|
|
impl ::core::clone::Clone for PositionAccuracy {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
pub type PositionChangedEventArgs = *mut ::core::ffi::c_void;
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct PositionSource(pub i32);
|
||
|
|
impl PositionSource {
|
||
|
|
pub const Cellular: Self = Self(0i32);
|
||
|
|
pub const Satellite: Self = Self(1i32);
|
||
|
|
pub const WiFi: Self = Self(2i32);
|
||
|
|
pub const IPAddress: Self = Self(3i32);
|
||
|
|
pub const Unknown: Self = Self(4i32);
|
||
|
|
pub const Default: Self = Self(5i32);
|
||
|
|
pub const Obfuscated: Self = Self(6i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for PositionSource {}
|
||
|
|
impl ::core::clone::Clone for PositionSource {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct PositionStatus(pub i32);
|
||
|
|
impl PositionStatus {
|
||
|
|
pub const Ready: Self = Self(0i32);
|
||
|
|
pub const Initializing: Self = Self(1i32);
|
||
|
|
pub const NoData: Self = Self(2i32);
|
||
|
|
pub const Disabled: Self = Self(3i32);
|
||
|
|
pub const NotInitialized: Self = Self(4i32);
|
||
|
|
pub const NotAvailable: Self = Self(5i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for PositionStatus {}
|
||
|
|
impl ::core::clone::Clone for PositionStatus {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
pub type StatusChangedEventArgs = *mut ::core::ffi::c_void;
|
||
|
|
pub type VenueData = *mut ::core::ffi::c_void;
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct VisitMonitoringScope(pub i32);
|
||
|
|
impl VisitMonitoringScope {
|
||
|
|
pub const Venue: Self = Self(0i32);
|
||
|
|
pub const City: Self = Self(1i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for VisitMonitoringScope {}
|
||
|
|
impl ::core::clone::Clone for VisitMonitoringScope {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#[doc = "*Required features: `\"Devices_Geolocation\"`*"]
|
||
|
|
#[repr(transparent)]
|
||
|
|
pub struct VisitStateChange(pub i32);
|
||
|
|
impl VisitStateChange {
|
||
|
|
pub const TrackingLost: Self = Self(0i32);
|
||
|
|
pub const Arrived: Self = Self(1i32);
|
||
|
|
pub const Departed: Self = Self(2i32);
|
||
|
|
pub const OtherMovement: Self = Self(3i32);
|
||
|
|
}
|
||
|
|
impl ::core::marker::Copy for VisitStateChange {}
|
||
|
|
impl ::core::clone::Clone for VisitStateChange {
|
||
|
|
fn clone(&self) -> Self {
|
||
|
|
*self
|
||
|
|
}
|
||
|
|
}
|