Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static LPErrorDomain: Option<&'static NSErrorDomain>;
}
// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct LPErrorCode(pub NSInteger);
impl LPErrorCode {
pub const LPErrorUnknown: Self = Self(1);
pub const LPErrorMetadataFetchFailed: Self = Self(2);
pub const LPErrorMetadataFetchCancelled: Self = Self(3);
pub const LPErrorMetadataFetchTimedOut: Self = Self(4);
pub const LPErrorMetadataFetchNotAllowed: Self = Self(5);
}
unsafe impl Encode for LPErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for LPErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

View File

@@ -0,0 +1,2 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT

View File

@@ -0,0 +1,81 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct LPLinkMetadata;
unsafe impl ClassType for LPLinkMetadata {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for LPLinkMetadata {}
unsafe impl NSCopying for LPLinkMetadata {}
unsafe impl NSObjectProtocol for LPLinkMetadata {}
unsafe impl NSSecureCoding for LPLinkMetadata {}
extern_methods!(
unsafe impl LPLinkMetadata {
#[method_id(@__retain_semantics Other originalURL)]
pub unsafe fn originalURL(&self) -> Option<Retained<NSURL>>;
#[method(setOriginalURL:)]
pub unsafe fn setOriginalURL(&self, original_url: Option<&NSURL>);
#[method_id(@__retain_semantics Other URL)]
pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
#[method(setURL:)]
pub unsafe fn setURL(&self, url: Option<&NSURL>);
#[method_id(@__retain_semantics Other title)]
pub unsafe fn title(&self) -> Option<Retained<NSString>>;
#[method(setTitle:)]
pub unsafe fn setTitle(&self, title: Option<&NSString>);
#[method_id(@__retain_semantics Other iconProvider)]
pub unsafe fn iconProvider(&self) -> Option<Retained<NSItemProvider>>;
#[method(setIconProvider:)]
pub unsafe fn setIconProvider(&self, icon_provider: Option<&NSItemProvider>);
#[method_id(@__retain_semantics Other imageProvider)]
pub unsafe fn imageProvider(&self) -> Option<Retained<NSItemProvider>>;
#[method(setImageProvider:)]
pub unsafe fn setImageProvider(&self, image_provider: Option<&NSItemProvider>);
#[method_id(@__retain_semantics Other videoProvider)]
pub unsafe fn videoProvider(&self) -> Option<Retained<NSItemProvider>>;
#[method(setVideoProvider:)]
pub unsafe fn setVideoProvider(&self, video_provider: Option<&NSItemProvider>);
#[method_id(@__retain_semantics Other remoteVideoURL)]
pub unsafe fn remoteVideoURL(&self) -> Option<Retained<NSURL>>;
#[method(setRemoteVideoURL:)]
pub unsafe fn setRemoteVideoURL(&self, remote_video_url: Option<&NSURL>);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl LPLinkMetadata {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,116 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
pub struct LPLinkView;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl ClassType for LPLinkView {
#[inherits(NSResponder, NSObject)]
type Super = NSView;
type Mutability = MainThreadOnly;
}
);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAccessibility for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAccessibilityElementProtocol for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAnimatablePropertyContainer for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAppearanceCustomization for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSCoding for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSDraggingDestination for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSObjectProtocol for LPLinkView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSUserInterfaceItemIdentification for LPLinkView {}
extern_methods!(
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl LPLinkView {
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
#[method(encodeWithCoder:)]
pub unsafe fn encodeWithCoder(&self, coder: &NSCoder);
#[method_id(@__retain_semantics Init initWithURL:)]
pub unsafe fn initWithURL(this: Allocated<Self>, url: &NSURL) -> Retained<Self>;
#[cfg(feature = "LPLinkMetadata")]
#[method_id(@__retain_semantics Init initWithMetadata:)]
pub unsafe fn initWithMetadata(
this: Allocated<Self>,
metadata: &LPLinkMetadata,
) -> Retained<Self>;
#[cfg(feature = "LPLinkMetadata")]
#[method_id(@__retain_semantics Other metadata)]
pub unsafe fn metadata(&self) -> Retained<LPLinkMetadata>;
#[cfg(feature = "LPLinkMetadata")]
#[method(setMetadata:)]
pub unsafe fn setMetadata(&self, metadata: &LPLinkMetadata);
}
);
extern_methods!(
/// Methods declared on superclass `NSView`
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl LPLinkView {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
}
);
extern_methods!(
/// Methods declared on superclass `NSResponder`
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl LPLinkView {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl LPLinkView {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
}
);

View File

@@ -0,0 +1,64 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct LPMetadataProvider;
unsafe impl ClassType for LPMetadataProvider {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for LPMetadataProvider {}
extern_methods!(
unsafe impl LPMetadataProvider {
#[cfg(all(feature = "LPLinkMetadata", feature = "block2"))]
#[method(startFetchingMetadataForURL:completionHandler:)]
pub unsafe fn startFetchingMetadataForURL_completionHandler(
&self,
url: &NSURL,
completion_handler: &block2::Block<dyn Fn(*mut LPLinkMetadata, *mut NSError)>,
);
#[cfg(all(feature = "LPLinkMetadata", feature = "block2"))]
#[method(startFetchingMetadataForRequest:completionHandler:)]
pub unsafe fn startFetchingMetadataForRequest_completionHandler(
&self,
request: &NSURLRequest,
completion_handler: &block2::Block<dyn Fn(*mut LPLinkMetadata, *mut NSError)>,
);
#[method(cancel)]
pub unsafe fn cancel(&self);
#[method(shouldFetchSubresources)]
pub unsafe fn shouldFetchSubresources(&self) -> bool;
#[method(setShouldFetchSubresources:)]
pub unsafe fn setShouldFetchSubresources(&self, should_fetch_subresources: bool);
#[method(timeout)]
pub unsafe fn timeout(&self) -> NSTimeInterval;
#[method(setTimeout:)]
pub unsafe fn setTimeout(&self, timeout: NSTimeInterval);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl LPMetadataProvider {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,45 @@
// This file has been automatically generated by `objc2`'s `header-translator`.
// DO NOT EDIT
#![allow(unused_imports)]
#![allow(deprecated)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(missing_docs)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::identity_op)]
#![allow(clippy::missing_safety_doc)]
#[link(name = "LinkPresentation", kind = "framework")]
extern "C" {}
#[cfg(feature = "LPError")]
#[path = "LPError.rs"]
mod __LPError;
#[cfg(feature = "LPFoundation")]
#[path = "LPFoundation.rs"]
mod __LPFoundation;
#[cfg(feature = "LPLinkMetadata")]
#[path = "LPLinkMetadata.rs"]
mod __LPLinkMetadata;
#[cfg(feature = "LPLinkView")]
#[path = "LPLinkView.rs"]
mod __LPLinkView;
#[cfg(feature = "LPMetadataProvider")]
#[path = "LPMetadataProvider.rs"]
mod __LPMetadataProvider;
#[cfg(feature = "LPError")]
pub use self::__LPError::LPErrorCode;
#[cfg(feature = "LPError")]
pub use self::__LPError::LPErrorDomain;
#[cfg(feature = "LPLinkMetadata")]
pub use self::__LPLinkMetadata::LPLinkMetadata;
#[cfg(all(feature = "LPLinkView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
pub use self::__LPLinkView::LPLinkView;
#[cfg(feature = "LPMetadataProvider")]
pub use self::__LPMetadataProvider::LPMetadataProvider;