From e0ff895e62efdba941870a62ad2038371cb86360 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 31 Oct 2022 16:24:08 +0100 Subject: [PATCH] Add static variable parsing --- header-translator/src/expr.rs | 13 +- header-translator/src/lib.rs | 3 + header-translator/src/rust_type.rs | 40 + header-translator/src/stmt.rs | 69 +- .../src/AppKit/generated/NSAccessibility.rs | 4 + .../generated/NSAccessibilityConstants.rs | 1304 ++++++++++++++++ icrate/src/AppKit/generated/NSAlert.rs | 12 + icrate/src/AppKit/generated/NSAnimation.rs | 40 + icrate/src/AppKit/generated/NSAppearance.rs | 36 + icrate/src/AppKit/generated/NSApplication.rs | 242 +++ .../AppKit/generated/NSAttributedString.rs | 393 +++++ icrate/src/AppKit/generated/NSBezierPath.rs | 24 + .../src/AppKit/generated/NSBitmapImageRep.rs | 86 ++ icrate/src/AppKit/generated/NSBox.rs | 4 + icrate/src/AppKit/generated/NSBrowser.rs | 8 + icrate/src/AppKit/generated/NSButtonCell.rs | 56 + .../generated/NSCandidateListTouchBarItem.rs | 4 + icrate/src/AppKit/generated/NSCell.rs | 26 + .../NSCollectionViewCompositionalLayout.rs | 4 + .../generated/NSCollectionViewFlowLayout.rs | 8 + .../generated/NSCollectionViewLayout.rs | 5 + icrate/src/AppKit/generated/NSColor.rs | 6 + icrate/src/AppKit/generated/NSColorList.rs | 4 + icrate/src/AppKit/generated/NSColorPanel.rs | 22 + icrate/src/AppKit/generated/NSColorSpace.rs | 16 + icrate/src/AppKit/generated/NSComboBox.rs | 16 + icrate/src/AppKit/generated/NSControl.rs | 12 + icrate/src/AppKit/generated/NSCursor.rs | 2 + .../src/AppKit/generated/NSDatePickerCell.rs | 27 + icrate/src/AppKit/generated/NSDockTile.rs | 2 + icrate/src/AppKit/generated/NSDraggingItem.rs | 8 + icrate/src/AppKit/generated/NSDrawer.rs | 16 + icrate/src/AppKit/generated/NSErrors.rs | 144 ++ icrate/src/AppKit/generated/NSEvent.rs | 149 ++ icrate/src/AppKit/generated/NSFont.rs | 12 + .../src/AppKit/generated/NSFontCollection.rs | 60 + .../src/AppKit/generated/NSFontDescriptor.rs | 192 +++ icrate/src/AppKit/generated/NSGraphics.rs | 138 ++ .../src/AppKit/generated/NSGraphicsContext.rs | 17 + icrate/src/AppKit/generated/NSGridView.rs | 4 + icrate/src/AppKit/generated/NSHelpManager.rs | 8 + icrate/src/AppKit/generated/NSImage.rs | 568 +++++++ icrate/src/AppKit/generated/NSImageRep.rs | 4 + .../src/AppKit/generated/NSInterfaceStyle.rs | 4 + icrate/src/AppKit/generated/NSItemProvider.rs | 16 + .../src/AppKit/generated/NSKeyValueBinding.rs | 444 ++++++ .../AppKit/generated/NSLayoutConstraint.rs | 22 + .../AppKit/generated/NSLevelIndicatorCell.rs | 10 + icrate/src/AppKit/generated/NSMenu.rs | 28 + icrate/src/AppKit/generated/NSMenuItem.rs | 4 + icrate/src/AppKit/generated/NSNib.rs | 8 + icrate/src/AppKit/generated/NSOpenGL.rs | 40 + icrate/src/AppKit/generated/NSOutlineView.rs | 40 + .../src/AppKit/generated/NSParagraphStyle.rs | 4 + icrate/src/AppKit/generated/NSPasteboard.rs | 192 +++ icrate/src/AppKit/generated/NSPopUpButton.rs | 4 + .../src/AppKit/generated/NSPopUpButtonCell.rs | 4 + icrate/src/AppKit/generated/NSPopover.rs | 28 + icrate/src/AppKit/generated/NSPrintInfo.rs | 166 ++ .../src/AppKit/generated/NSPrintOperation.rs | 4 + icrate/src/AppKit/generated/NSPrintPanel.rs | 20 + .../AppKit/generated/NSProgressIndicator.rs | 5 + icrate/src/AppKit/generated/NSRuleEditor.rs | 32 + icrate/src/AppKit/generated/NSRulerView.rs | 16 + icrate/src/AppKit/generated/NSScreen.rs | 4 + icrate/src/AppKit/generated/NSScrollView.rs | 20 + icrate/src/AppKit/generated/NSScroller.rs | 4 + .../src/AppKit/generated/NSSearchFieldCell.rs | 8 + .../src/AppKit/generated/NSSharingService.rs | 80 + icrate/src/AppKit/generated/NSSliderCell.rs | 12 + .../AppKit/generated/NSSliderTouchBarItem.rs | 8 + icrate/src/AppKit/generated/NSSound.rs | 4 + .../AppKit/generated/NSSpeechSynthesizer.rs | 228 +++ icrate/src/AppKit/generated/NSSpellChecker.rs | 72 + icrate/src/AppKit/generated/NSSplitView.rs | 8 + .../AppKit/generated/NSSplitViewController.rs | 4 + .../src/AppKit/generated/NSSplitViewItem.rs | 4 + icrate/src/AppKit/generated/NSStackView.rs | 8 + icrate/src/AppKit/generated/NSStatusBar.rs | 4 + icrate/src/AppKit/generated/NSTabView.rs | 2 + icrate/src/AppKit/generated/NSTableView.rs | 20 + icrate/src/AppKit/generated/NSText.rs | 26 + .../AppKit/generated/NSTextAlternatives.rs | 4 + icrate/src/AppKit/generated/NSTextContent.rs | 12 + .../AppKit/generated/NSTextContentManager.rs | 4 + icrate/src/AppKit/generated/NSTextFinder.rs | 8 + .../AppKit/generated/NSTextInputContext.rs | 4 + icrate/src/AppKit/generated/NSTextList.rs | 68 + icrate/src/AppKit/generated/NSTextStorage.rs | 8 + icrate/src/AppKit/generated/NSTextView.rs | 60 + .../src/AppKit/generated/NSTokenFieldCell.rs | 6 + icrate/src/AppKit/generated/NSToolbar.rs | 8 + icrate/src/AppKit/generated/NSToolbarItem.rs | 48 + icrate/src/AppKit/generated/NSTouchBarItem.rs | 22 + icrate/src/AppKit/generated/NSUserActivity.rs | 4 + icrate/src/AppKit/generated/NSView.rs | 48 + icrate/src/AppKit/generated/NSWindow.rs | 185 +++ .../AppKit/generated/NSWindowRestoration.rs | 4 + icrate/src/AppKit/generated/NSWorkspace.rs | 192 +++ icrate/src/AppKit/generated/mod.rs | 1341 +++++++++++++---- .../generated/NSAppleEventManager.rs | 12 + .../src/Foundation/generated/NSAppleScript.rs | 20 + .../generated/NSAttributedString.rs | 36 + icrate/src/Foundation/generated/NSBundle.rs | 16 + icrate/src/Foundation/generated/NSCalendar.rs | 68 + .../generated/NSClassDescription.rs | 4 + .../src/Foundation/generated/NSConnection.rs | 16 + icrate/src/Foundation/generated/NSDate.rs | 4 + .../Foundation/generated/NSDecimalNumber.rs | 16 + .../NSDistributedNotificationCenter.rs | 10 + icrate/src/Foundation/generated/NSError.rs | 68 + .../src/Foundation/generated/NSException.rs | 64 + .../generated/NSExtensionContext.rs | 20 + .../Foundation/generated/NSExtensionItem.rs | 12 + .../src/Foundation/generated/NSFileHandle.rs | 32 + .../src/Foundation/generated/NSFileManager.rs | 148 ++ icrate/src/Foundation/generated/NSGeometry.rs | 16 + .../src/Foundation/generated/NSHTTPCookie.rs | 64 + .../generated/NSHTTPCookieStorage.rs | 8 + .../src/Foundation/generated/NSHashTable.rs | 44 + .../Foundation/generated/NSItemProvider.rs | 16 + .../Foundation/generated/NSKeyValueCoding.rs | 48 + .../generated/NSKeyValueObserving.rs | 20 + .../Foundation/generated/NSKeyedArchiver.rs | 12 + .../generated/NSLinguisticTagger.rs | 152 ++ icrate/src/Foundation/generated/NSLocale.rs | 124 ++ icrate/src/Foundation/generated/NSMapTable.rs | 63 + icrate/src/Foundation/generated/NSMetadata.rs | 64 + .../generated/NSMetadataAttributes.rs | 724 +++++++++ .../src/Foundation/generated/NSNetServices.rs | 8 + .../src/Foundation/generated/NSObjCRuntime.rs | 6 + .../src/Foundation/generated/NSOperation.rs | 10 + .../NSPersonNameComponentsFormatter.rs | 32 + icrate/src/Foundation/generated/NSPort.rs | 4 + .../src/Foundation/generated/NSProcessInfo.rs | 8 + icrate/src/Foundation/generated/NSProgress.rs | 65 + icrate/src/Foundation/generated/NSRunLoop.rs | 8 + .../generated/NSScriptKeyValueCoding.rs | 4 + .../src/Foundation/generated/NSSpellServer.rs | 12 + icrate/src/Foundation/generated/NSStream.rs | 96 ++ icrate/src/Foundation/generated/NSString.rs | 104 ++ icrate/src/Foundation/generated/NSTask.rs | 4 + .../generated/NSTextCheckingResult.rs | 44 + icrate/src/Foundation/generated/NSThread.rs | 12 + icrate/src/Foundation/generated/NSTimeZone.rs | 4 + icrate/src/Foundation/generated/NSURL.rs | 570 +++++++ .../generated/NSURLCredentialStorage.rs | 8 + icrate/src/Foundation/generated/NSURLError.rs | 28 + .../src/Foundation/generated/NSURLHandle.rs | 44 + .../generated/NSURLProtectionSpace.rs | 60 + .../src/Foundation/generated/NSURLSession.rs | 20 + .../generated/NSUbiquitousKeyValueStore.rs | 12 + .../src/Foundation/generated/NSUndoManager.rs | 38 + .../Foundation/generated/NSUserActivity.rs | 4 + .../Foundation/generated/NSUserDefaults.rs | 136 ++ .../generated/NSUserNotification.rs | 4 + .../generated/NSValueTransformer.rs | 24 + .../src/Foundation/generated/NSXMLParser.rs | 4 + icrate/src/Foundation/generated/mod.rs | 662 ++++++-- 159 files changed, 10906 insertions(+), 471 deletions(-) diff --git a/header-translator/src/expr.rs b/header-translator/src/expr.rs index c254cb526..d63fdb687 100644 --- a/header-translator/src/expr.rs +++ b/header-translator/src/expr.rs @@ -55,7 +55,11 @@ impl Expr { res } - pub fn parse(entity: &Entity<'_>, declaration_references: &[String]) -> Option { + pub fn parse_var(entity: &Entity<'_>) -> Option { + Self::parse(entity, &[]) + } + + fn parse(entity: &Entity<'_>, declaration_references: &[String]) -> Option { let range = entity.get_range().expect("expr range"); let tokens = range.tokenize(); @@ -98,6 +102,13 @@ impl Expr { } } + s = s + .trim_start_matches("(NSBoxType)") + .trim_start_matches("(NSBezelStyle)") + .trim_start_matches("(NSEventSubtype)") + .trim_start_matches("(NSWindowButton)") + .to_string(); + Some(Self { s }) } } diff --git a/header-translator/src/lib.rs b/header-translator/src/lib.rs index 3034c0427..f7398e4cd 100644 --- a/header-translator/src/lib.rs +++ b/header-translator/src/lib.rs @@ -55,6 +55,9 @@ impl RustFile { self.declared_types.insert(name.clone()); } } + Stmt::VarDecl { name, .. } => { + self.declared_types.insert(name.clone()); + } Stmt::AliasDecl { name, .. } => { self.declared_types.insert(name.clone()); } diff --git a/header-translator/src/rust_type.rs b/header-translator/src/rust_type.rs index b8c9bfba9..298abcec8 100644 --- a/header-translator/src/rust_type.rs +++ b/header-translator/src/rust_type.rs @@ -751,3 +751,43 @@ impl fmt::Display for RustTypeReturn { } } } + +#[derive(Debug, Clone, PartialEq, Eq, Hash)] +pub struct RustTypeStatic { + inner: RustType, +} + +impl RustTypeStatic { + pub fn parse(ty: Type<'_>) -> Self { + let inner = RustType::parse(ty, false, Nullability::Unspecified); + + inner.visit_lifetime(|lifetime| { + if lifetime != Lifetime::Strong && lifetime != Lifetime::Unspecified { + panic!("unexpected lifetime in var {inner:?}"); + } + }); + + Self { inner } + } +} + +impl fmt::Display for RustTypeStatic { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match &self.inner { + RustType::Id { + type_, + is_const: false, + lifetime: Lifetime::Strong | Lifetime::Unspecified, + nullability, + } => { + if *nullability == Nullability::NonNull { + write!(f, "&'static {type_}") + } else { + write!(f, "Option<&'static {type_}>") + } + } + ty @ RustType::Id { .. } => panic!("invalid static {ty:?}"), + ty => write!(f, "{ty}"), + } + } +} diff --git a/header-translator/src/stmt.rs b/header-translator/src/stmt.rs index 16fe8f879..3e7830a17 100644 --- a/header-translator/src/stmt.rs +++ b/header-translator/src/stmt.rs @@ -8,7 +8,7 @@ use crate::config::{ClassData, Config}; use crate::expr::Expr; use crate::method::Method; use crate::property::Property; -use crate::rust_type::{GenericType, RustType}; +use crate::rust_type::{GenericType, RustType, RustTypeStatic}; use crate::unexposed_macro::UnexposedMacro; #[derive(Debug, Clone)] @@ -208,6 +208,11 @@ pub enum Stmt { kind: Option, variants: Vec<(String, Expr)>, }, + VarDecl { + name: String, + ty: RustTypeStatic, + value: Option>, + }, /// typedef Type TypedefName; AliasDecl { name: String, type_: RustType }, // /// typedef struct Name { fields } TypedefName; @@ -429,20 +434,41 @@ impl Stmt { }) } EntityKind::VarDecl => { - // println!( - // "var: {:?}, {:?}, {:#?}, {:#?}", - // entity.get_display_name(), - // entity.get_name(), - // entity.has_attributes(), - // entity.get_children(), - // ); - None + let name = entity.get_name().expect("var decl name"); + let ty = entity.get_type().expect("var type"); + let ty = RustTypeStatic::parse(ty); + let mut value = None; + + entity.visit_children(|entity, _parent| { + match entity.get_kind() { + EntityKind::UnexposedAttr => { + if let Some(macro_) = UnexposedMacro::parse(&entity) { + panic!("unexpected attribute: {macro_:?}"); + } + } + EntityKind::ObjCClassRef => {} + EntityKind::TypeRef => {} + kind if entity.is_expression() => { + if value.is_none() { + value = Some(Expr::parse_var(&entity)); + } else { + panic!("got variable value twice") + } + } + _ => panic!("unknown typedef child in {name}: {entity:?}"), + }; + EntityVisitResult::Continue + }); + + Some(Self::VarDecl { name, ty, value }) } EntityKind::FunctionDecl => { // println!( - // "function: {:?}, {:?}, {:#?}, {:#?}", + // "function: {:?}, {:?}, {:?}, {:?}, {:#?}, {:#?}", // entity.get_display_name(), // entity.get_name(), + // entity.is_static_method(), + // entity.is_inline_function(), // entity.has_attributes(), // entity.get_children(), // ); @@ -591,6 +617,29 @@ impl fmt::Display for Stmt { } } } + Self::VarDecl { + name, + ty, + value: None, + } => { + writeln!(f, r#"extern "C" {{"#)?; + writeln!(f, " static {name}: {ty};")?; + writeln!(f, "}}")?; + } + Self::VarDecl { + name, + ty, + value: Some(None), + } => { + writeln!(f, "static {name}: {ty} = todo;")?; + } + Self::VarDecl { + name, + ty, + value: Some(Some(expr)), + } => { + writeln!(f, "static {name}: {ty} = {expr};")?; + } Self::AliasDecl { name, type_ } => { writeln!(f, "pub type {name} = {type_};")?; } diff --git a/icrate/src/AppKit/generated/NSAccessibility.rs b/icrate/src/AppKit/generated/NSAccessibility.rs index fec43d310..2105d001b 100644 --- a/icrate/src/AppKit/generated/NSAccessibility.rs +++ b/icrate/src/AppKit/generated/NSAccessibility.rs @@ -120,6 +120,10 @@ extern_methods!( } ); +extern "C" { + static NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification: &'static NSNotificationName; +} + extern_methods!( /// NSAccessibilityAdditions unsafe impl NSObject { diff --git a/icrate/src/AppKit/generated/NSAccessibilityConstants.rs b/icrate/src/AppKit/generated/NSAccessibilityConstants.rs index 1bd685326..8c3471a67 100644 --- a/icrate/src/AppKit/generated/NSAccessibilityConstants.rs +++ b/icrate/src/AppKit/generated/NSAccessibilityConstants.rs @@ -5,12 +5,402 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSAccessibilityErrorCodeExceptionInfo: &'static NSString; +} + pub type NSAccessibilityAttributeName = NSString; +extern "C" { + static NSAccessibilityRoleAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityRoleDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySubroleAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityHelpAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMinValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMaxValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityEnabledAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityFocusedAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityParentAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityChildrenAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityWindowAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityTopLevelUIElementAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedChildrenAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVisibleChildrenAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityPositionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySizeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityContentsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityTitleAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityShownMenuAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityValueDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySharedFocusElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityPreviousContentsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityNextContentsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityHeaderAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityEditedAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityTabsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityHorizontalScrollBarAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVerticalScrollBarAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityOverflowButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityIncrementButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDecrementButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityFilenameAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityExpandedAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySplittersAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDocumentAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityActivationPointAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityURLAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityIndexAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityRowCountAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityColumnCountAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityOrderedByRowAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityWarningValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityCriticalValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityPlaceholderValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityContainsProtectedContentAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityAlternateUIVisibleAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityRequiredAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityTitleUIElementAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityServesAsTitleForUIElementsAttribute: + &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityLinkedUIElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedTextAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedTextRangeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityNumberOfCharactersAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVisibleCharacterRangeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySharedTextUIElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySharedCharacterRangeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityInsertionPointLineNumberAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedTextRangesAttribute: &'static NSAccessibilityAttributeName; +} + pub type NSAccessibilityParameterizedAttributeName = NSString; +extern "C" { + static NSAccessibilityLineForIndexParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityRangeForLineParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityStringForRangeParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityRangeForPositionParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityRangeForIndexParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityBoundsForRangeParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityRTFForRangeParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityStyleRangeForIndexParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityAttributedStringForRangeParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityFontTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityForegroundColorTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityBackgroundColorTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityUnderlineColorTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityStrikethroughColorTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityUnderlineTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilitySuperscriptTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityStrikethroughTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityShadowTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityAttachmentTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityLinkTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityAutocorrectedTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityTextAlignmentAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityListItemPrefixTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityListItemIndexTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityListItemLevelTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityMisspelledTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityMarkedMisspelledTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityLanguageTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityCustomTextAttribute: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAccessibilityAnnotationTextAttribute: &'static NSAttributedStringKey; +} + pub type NSAccessibilityAnnotationAttributeKey = NSString; +extern "C" { + static NSAccessibilityAnnotationLabel: &'static NSAccessibilityAnnotationAttributeKey; +} + +extern "C" { + static NSAccessibilityAnnotationElement: &'static NSAccessibilityAnnotationAttributeKey; +} + +extern "C" { + static NSAccessibilityAnnotationLocation: &'static NSAccessibilityAnnotationAttributeKey; +} + pub type NSAccessibilityAnnotationPosition = NSInteger; pub const NSAccessibilityAnnotationPositionFullRange: NSAccessibilityAnnotationPosition = 0; pub const NSAccessibilityAnnotationPositionStart: NSAccessibilityAnnotationPosition = 1; @@ -18,22 +408,362 @@ pub const NSAccessibilityAnnotationPositionEnd: NSAccessibilityAnnotationPositio pub type NSAccessibilityFontAttributeKey = NSString; +extern "C" { + static NSAccessibilityFontNameKey: &'static NSAccessibilityFontAttributeKey; +} + +extern "C" { + static NSAccessibilityFontFamilyKey: &'static NSAccessibilityFontAttributeKey; +} + +extern "C" { + static NSAccessibilityVisibleNameKey: &'static NSAccessibilityFontAttributeKey; +} + +extern "C" { + static NSAccessibilityFontSizeKey: &'static NSAccessibilityFontAttributeKey; +} + +extern "C" { + static NSAccessibilityMainAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMinimizedAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityCloseButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityZoomButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMinimizeButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityToolbarButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityProxyAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityGrowAreaAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityModalAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDefaultButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityCancelButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityFullScreenButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMenuBarAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityWindowsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityFrontmostAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityHiddenAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMainWindowAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityFocusedWindowAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityFocusedUIElementAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityExtrasMenuBarAttribute: &'static NSAccessibilityAttributeName; +} + pub type NSAccessibilityOrientation = NSInteger; pub const NSAccessibilityOrientationUnknown: NSAccessibilityOrientation = 0; pub const NSAccessibilityOrientationVertical: NSAccessibilityOrientation = 1; pub const NSAccessibilityOrientationHorizontal: NSAccessibilityOrientation = 2; +extern "C" { + static NSAccessibilityOrientationAttribute: &'static NSAccessibilityAttributeName; +} + pub type NSAccessibilityOrientationValue = NSString; +extern "C" { + static NSAccessibilityVerticalOrientationValue: &'static NSAccessibilityOrientationValue; +} + +extern "C" { + static NSAccessibilityHorizontalOrientationValue: &'static NSAccessibilityOrientationValue; +} + +extern "C" { + static NSAccessibilityUnknownOrientationValue: &'static NSAccessibilityOrientationValue; +} + +extern "C" { + static NSAccessibilityColumnTitlesAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySearchButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySearchMenuAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityClearButtonAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityRowsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVisibleRowsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedRowsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityColumnsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVisibleColumnsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedColumnsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySortDirectionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilitySelectedCellsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVisibleCellsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityRowHeaderUIElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityColumnHeaderUIElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityCellForColumnAndRowParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityRowIndexRangeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityColumnIndexRangeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityHorizontalUnitsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVerticalUnitsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityHorizontalUnitDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityVerticalUnitDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityLayoutPointForScreenPointParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityScreenPointForLayoutPointParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute: + &'static NSAccessibilityParameterizedAttributeName; +} + +extern "C" { + static NSAccessibilityHandlesAttribute: &'static NSAccessibilityAttributeName; +} + pub type NSAccessibilitySortDirectionValue = NSString; +extern "C" { + static NSAccessibilityAscendingSortDirectionValue: &'static NSAccessibilitySortDirectionValue; +} + +extern "C" { + static NSAccessibilityDescendingSortDirectionValue: &'static NSAccessibilitySortDirectionValue; +} + +extern "C" { + static NSAccessibilityUnknownSortDirectionValue: &'static NSAccessibilitySortDirectionValue; +} + pub type NSAccessibilitySortDirection = NSInteger; pub const NSAccessibilitySortDirectionUnknown: NSAccessibilitySortDirection = 0; pub const NSAccessibilitySortDirectionAscending: NSAccessibilitySortDirection = 1; pub const NSAccessibilitySortDirectionDescending: NSAccessibilitySortDirection = 2; +extern "C" { + static NSAccessibilityDisclosingAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDisclosedRowsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDisclosedByRowAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityDisclosureLevelAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityAllowedValuesAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityLabelUIElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityLabelValueAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMatteHoleAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMatteContentUIElementAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMarkerUIElementsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMarkerValuesAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMarkerGroupUIElementAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityUnitsAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityUnitDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMarkerTypeAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityMarkerTypeDescriptionAttribute: &'static NSAccessibilityAttributeName; +} + +extern "C" { + static NSAccessibilityIdentifierAttribute: &'static NSAccessibilityAttributeName; +} + pub type NSAccessibilityRulerMarkerTypeValue = NSString; +extern "C" { + static NSAccessibilityLeftTabStopMarkerTypeValue: &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityRightTabStopMarkerTypeValue: &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityCenterTabStopMarkerTypeValue: + &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityDecimalTabStopMarkerTypeValue: + &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityHeadIndentMarkerTypeValue: &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityTailIndentMarkerTypeValue: &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityFirstLineIndentMarkerTypeValue: + &'static NSAccessibilityRulerMarkerTypeValue; +} + +extern "C" { + static NSAccessibilityUnknownMarkerTypeValue: &'static NSAccessibilityRulerMarkerTypeValue; +} + pub type NSAccessibilityRulerMarkerType = NSInteger; pub const NSAccessibilityRulerMarkerTypeUnknown: NSAccessibilityRulerMarkerType = 0; pub const NSAccessibilityRulerMarkerTypeTabStopLeft: NSAccessibilityRulerMarkerType = 1; @@ -46,6 +776,26 @@ pub const NSAccessibilityRulerMarkerTypeIndentFirstLine: NSAccessibilityRulerMar pub type NSAccessibilityRulerUnitValue = NSString; +extern "C" { + static NSAccessibilityInchesUnitValue: &'static NSAccessibilityRulerUnitValue; +} + +extern "C" { + static NSAccessibilityCentimetersUnitValue: &'static NSAccessibilityRulerUnitValue; +} + +extern "C" { + static NSAccessibilityPointsUnitValue: &'static NSAccessibilityRulerUnitValue; +} + +extern "C" { + static NSAccessibilityPicasUnitValue: &'static NSAccessibilityRulerUnitValue; +} + +extern "C" { + static NSAccessibilityUnknownUnitValue: &'static NSAccessibilityRulerUnitValue; +} + pub type NSAccessibilityUnits = NSInteger; pub const NSAccessibilityUnitsUnknown: NSAccessibilityUnits = 0; pub const NSAccessibilityUnitsInches: NSAccessibilityUnits = 1; @@ -55,17 +805,571 @@ pub const NSAccessibilityUnitsPicas: NSAccessibilityUnits = 4; pub type NSAccessibilityActionName = NSString; +extern "C" { + static NSAccessibilityPressAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityIncrementAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityDecrementAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityConfirmAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityPickAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityCancelAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityRaiseAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityShowMenuAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityDeleteAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityShowAlternateUIAction: &'static NSAccessibilityActionName; +} + +extern "C" { + static NSAccessibilityShowDefaultUIAction: &'static NSAccessibilityActionName; +} + pub type NSAccessibilityNotificationName = NSString; +extern "C" { + static NSAccessibilityMainWindowChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityFocusedWindowChangedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityFocusedUIElementChangedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityApplicationActivatedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityApplicationDeactivatedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityApplicationHiddenNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityApplicationShownNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityWindowCreatedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityWindowMovedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityWindowResizedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityWindowMiniaturizedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityWindowDeminiaturizedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityDrawerCreatedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySheetCreatedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityUIElementDestroyedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityValueChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityTitleChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityResizedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityMovedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityCreatedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityLayoutChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityHelpTagCreatedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySelectedTextChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityRowCountChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySelectedChildrenChangedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySelectedRowsChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySelectedColumnsChangedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityRowExpandedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityRowCollapsedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySelectedCellsChangedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityUnitsChangedNotification: &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilitySelectedChildrenMovedNotification: + &'static NSAccessibilityNotificationName; +} + +extern "C" { + static NSAccessibilityAnnouncementRequestedNotification: + &'static NSAccessibilityNotificationName; +} + pub type NSAccessibilityRole = NSString; +extern "C" { + static NSAccessibilityUnknownRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityButtonRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityRadioButtonRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityCheckBoxRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilitySliderRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityTabGroupRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityTextFieldRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityStaticTextRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityTextAreaRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityScrollAreaRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityPopUpButtonRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityMenuButtonRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityTableRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityApplicationRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityGroupRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityRadioGroupRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityListRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityScrollBarRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityValueIndicatorRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityImageRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityMenuBarRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityMenuBarItemRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityMenuRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityMenuItemRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityColumnRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityRowRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityToolbarRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityBusyIndicatorRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityProgressIndicatorRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityWindowRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityDrawerRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilitySystemWideRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityOutlineRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityIncrementorRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityBrowserRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityComboBoxRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilitySplitGroupRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilitySplitterRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityColorWellRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityGrowAreaRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilitySheetRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityHelpTagRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityMatteRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityRulerRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityRulerMarkerRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityLinkRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityDisclosureTriangleRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityGridRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityRelevanceIndicatorRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityLevelIndicatorRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityCellRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityPopoverRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityPageRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityLayoutAreaRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityLayoutItemRole: &'static NSAccessibilityRole; +} + +extern "C" { + static NSAccessibilityHandleRole: &'static NSAccessibilityRole; +} + pub type NSAccessibilitySubrole = NSString; +extern "C" { + static NSAccessibilityUnknownSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityCloseButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityZoomButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityMinimizeButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityToolbarButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityTableRowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityOutlineRowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySecureTextFieldSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityStandardWindowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityDialogSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySystemDialogSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityFloatingWindowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySystemFloatingWindowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityIncrementArrowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityDecrementArrowSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityIncrementPageSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityDecrementPageSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySearchFieldSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityTextAttachmentSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityTextLinkSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityTimelineSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySortButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityRatingIndicatorSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityContentListSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityDefinitionListSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityFullScreenButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityToggleSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySwitchSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityDescriptionListSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityTabButtonSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilityCollectionListSubrole: &'static NSAccessibilitySubrole; +} + +extern "C" { + static NSAccessibilitySectionListSubrole: &'static NSAccessibilitySubrole; +} + pub type NSAccessibilityNotificationUserInfoKey = NSString; +extern "C" { + static NSAccessibilityUIElementsKey: &'static NSAccessibilityNotificationUserInfoKey; +} + +extern "C" { + static NSAccessibilityPriorityKey: &'static NSAccessibilityNotificationUserInfoKey; +} + +extern "C" { + static NSAccessibilityAnnouncementKey: &'static NSAccessibilityNotificationUserInfoKey; +} + pub type NSAccessibilityPriorityLevel = NSInteger; pub const NSAccessibilityPriorityLow: NSAccessibilityPriorityLevel = 10; pub const NSAccessibilityPriorityMedium: NSAccessibilityPriorityLevel = 50; pub const NSAccessibilityPriorityHigh: NSAccessibilityPriorityLevel = 90; pub type NSAccessibilityLoadingToken = TodoProtocols; + +extern "C" { + static NSAccessibilitySortButtonRole: &'static NSAccessibilityRole; +} diff --git a/icrate/src/AppKit/generated/NSAlert.rs b/icrate/src/AppKit/generated/NSAlert.rs index 7e24456f9..975a09010 100644 --- a/icrate/src/AppKit/generated/NSAlert.rs +++ b/icrate/src/AppKit/generated/NSAlert.rs @@ -10,6 +10,12 @@ pub const NSAlertStyleWarning: NSAlertStyle = 0; pub const NSAlertStyleInformational: NSAlertStyle = 1; pub const NSAlertStyleCritical: NSAlertStyle = 2; +static NSAlertFirstButtonReturn: NSModalResponse = 1000; + +static NSAlertSecondButtonReturn: NSModalResponse = 1001; + +static NSAlertThirdButtonReturn: NSModalResponse = 1002; + extern_class!( #[derive(Debug)] pub struct NSAlert; @@ -120,3 +126,9 @@ extern_methods!( ); } ); + +static NSWarningAlertStyle: NSAlertStyle = NSAlertStyleWarning; + +static NSInformationalAlertStyle: NSAlertStyle = NSAlertStyleInformational; + +static NSCriticalAlertStyle: NSAlertStyle = NSAlertStyleCritical; diff --git a/icrate/src/AppKit/generated/NSAnimation.rs b/icrate/src/AppKit/generated/NSAnimation.rs index 6a03dcc62..04c697e22 100644 --- a/icrate/src/AppKit/generated/NSAnimation.rs +++ b/icrate/src/AppKit/generated/NSAnimation.rs @@ -16,6 +16,14 @@ pub const NSAnimationBlocking: NSAnimationBlockingMode = 0; pub const NSAnimationNonblocking: NSAnimationBlockingMode = 1; pub const NSAnimationNonblockingThreaded: NSAnimationBlockingMode = 2; +extern "C" { + static NSAnimationProgressMarkNotification: &'static NSNotificationName; +} + +extern "C" { + static NSAnimationProgressMark: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSAnimation; @@ -130,8 +138,32 @@ pub type NSAnimationDelegate = NSObject; pub type NSViewAnimationKey = NSString; +extern "C" { + static NSViewAnimationTargetKey: &'static NSViewAnimationKey; +} + +extern "C" { + static NSViewAnimationStartFrameKey: &'static NSViewAnimationKey; +} + +extern "C" { + static NSViewAnimationEndFrameKey: &'static NSViewAnimationKey; +} + +extern "C" { + static NSViewAnimationEffectKey: &'static NSViewAnimationKey; +} + pub type NSViewAnimationEffectName = NSString; +extern "C" { + static NSViewAnimationFadeInEffect: &'static NSViewAnimationEffectName; +} + +extern "C" { + static NSViewAnimationFadeOutEffect: &'static NSViewAnimationEffectName; +} + extern_class!( #[derive(Debug)] pub struct NSViewAnimation; @@ -165,3 +197,11 @@ extern_methods!( pub type NSAnimatablePropertyKey = NSString; pub type NSAnimatablePropertyContainer = NSObject; + +extern "C" { + static NSAnimationTriggerOrderIn: &'static NSAnimatablePropertyKey; +} + +extern "C" { + static NSAnimationTriggerOrderOut: &'static NSAnimatablePropertyKey; +} diff --git a/icrate/src/AppKit/generated/NSAppearance.rs b/icrate/src/AppKit/generated/NSAppearance.rs index 878e5b430..c3804a355 100644 --- a/icrate/src/AppKit/generated/NSAppearance.rs +++ b/icrate/src/AppKit/generated/NSAppearance.rs @@ -57,4 +57,40 @@ extern_methods!( } ); +extern "C" { + static NSAppearanceNameAqua: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameDarkAqua: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameLightContent: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameVibrantDark: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameVibrantLight: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameAccessibilityHighContrastAqua: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameAccessibilityHighContrastDarkAqua: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameAccessibilityHighContrastVibrantLight: &'static NSAppearanceName; +} + +extern "C" { + static NSAppearanceNameAccessibilityHighContrastVibrantDark: &'static NSAppearanceName; +} + pub type NSAppearanceCustomization = NSObject; diff --git a/icrate/src/AppKit/generated/NSApplication.rs b/icrate/src/AppKit/generated/NSApplication.rs index 2d8e55629..76bba56c2 100644 --- a/icrate/src/AppKit/generated/NSApplication.rs +++ b/icrate/src/AppKit/generated/NSApplication.rs @@ -5,8 +5,146 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSAppKitVersionNumber: NSAppKitVersion; +} + +static NSAppKitVersionNumber10_0: NSAppKitVersion = 577; + +static NSAppKitVersionNumber10_1: NSAppKitVersion = 620; + +static NSAppKitVersionNumber10_2: NSAppKitVersion = 663; + +static NSAppKitVersionNumber10_2_3: NSAppKitVersion = 663.6; + +static NSAppKitVersionNumber10_3: NSAppKitVersion = 743; + +static NSAppKitVersionNumber10_3_2: NSAppKitVersion = 743.14; + +static NSAppKitVersionNumber10_3_3: NSAppKitVersion = 743.2; + +static NSAppKitVersionNumber10_3_5: NSAppKitVersion = 743.24; + +static NSAppKitVersionNumber10_3_7: NSAppKitVersion = 743.33; + +static NSAppKitVersionNumber10_3_9: NSAppKitVersion = 743.36; + +static NSAppKitVersionNumber10_4: NSAppKitVersion = 824; + +static NSAppKitVersionNumber10_4_1: NSAppKitVersion = 824.1; + +static NSAppKitVersionNumber10_4_3: NSAppKitVersion = 824.23; + +static NSAppKitVersionNumber10_4_4: NSAppKitVersion = 824.33; + +static NSAppKitVersionNumber10_4_7: NSAppKitVersion = 824.41; + +static NSAppKitVersionNumber10_5: NSAppKitVersion = 949; + +static NSAppKitVersionNumber10_5_2: NSAppKitVersion = 949.27; + +static NSAppKitVersionNumber10_5_3: NSAppKitVersion = 949.33; + +static NSAppKitVersionNumber10_6: NSAppKitVersion = 1038; + +static NSAppKitVersionNumber10_7: NSAppKitVersion = 1138; + +static NSAppKitVersionNumber10_7_2: NSAppKitVersion = 1138.23; + +static NSAppKitVersionNumber10_7_3: NSAppKitVersion = 1138.32; + +static NSAppKitVersionNumber10_7_4: NSAppKitVersion = 1138.47; + +static NSAppKitVersionNumber10_8: NSAppKitVersion = 1187; + +static NSAppKitVersionNumber10_9: NSAppKitVersion = 1265; + +static NSAppKitVersionNumber10_10: NSAppKitVersion = 1343; + +static NSAppKitVersionNumber10_10_2: NSAppKitVersion = 1344; + +static NSAppKitVersionNumber10_10_3: NSAppKitVersion = 1347; + +static NSAppKitVersionNumber10_10_4: NSAppKitVersion = 1348; + +static NSAppKitVersionNumber10_10_5: NSAppKitVersion = 1348; + +static NSAppKitVersionNumber10_10_Max: NSAppKitVersion = 1349; + +static NSAppKitVersionNumber10_11: NSAppKitVersion = 1404; + +static NSAppKitVersionNumber10_11_1: NSAppKitVersion = 1404.13; + +static NSAppKitVersionNumber10_11_2: NSAppKitVersion = 1404.34; + +static NSAppKitVersionNumber10_11_3: NSAppKitVersion = 1404.34; + +static NSAppKitVersionNumber10_12: NSAppKitVersion = 1504; + +static NSAppKitVersionNumber10_12_1: NSAppKitVersion = 1504.60; + +static NSAppKitVersionNumber10_12_2: NSAppKitVersion = 1504.76; + +static NSAppKitVersionNumber10_13: NSAppKitVersion = 1561; + +static NSAppKitVersionNumber10_13_1: NSAppKitVersion = 1561.1; + +static NSAppKitVersionNumber10_13_2: NSAppKitVersion = 1561.2; + +static NSAppKitVersionNumber10_13_4: NSAppKitVersion = 1561.4; + +static NSAppKitVersionNumber10_14: NSAppKitVersion = 1671; + +static NSAppKitVersionNumber10_14_1: NSAppKitVersion = 1671.1; + +static NSAppKitVersionNumber10_14_2: NSAppKitVersion = 1671.2; + +static NSAppKitVersionNumber10_14_3: NSAppKitVersion = 1671.3; + +static NSAppKitVersionNumber10_14_4: NSAppKitVersion = 1671.4; + +static NSAppKitVersionNumber10_14_5: NSAppKitVersion = 1671.5; + +static NSAppKitVersionNumber10_15: NSAppKitVersion = 1894; + +static NSAppKitVersionNumber10_15_1: NSAppKitVersion = 1894.1; + +static NSAppKitVersionNumber10_15_2: NSAppKitVersion = 1894.2; + +static NSAppKitVersionNumber10_15_3: NSAppKitVersion = 1894.3; + +static NSAppKitVersionNumber10_15_4: NSAppKitVersion = 1894.4; + +static NSAppKitVersionNumber10_15_5: NSAppKitVersion = 1894.5; + +static NSAppKitVersionNumber10_15_6: NSAppKitVersion = 1894.6; + +static NSAppKitVersionNumber11_0: NSAppKitVersion = 2022; + +static NSAppKitVersionNumber11_1: NSAppKitVersion = 2022.2; + +static NSAppKitVersionNumber11_2: NSAppKitVersion = 2022.3; + +static NSAppKitVersionNumber11_3: NSAppKitVersion = 2022.4; + +static NSAppKitVersionNumber11_4: NSAppKitVersion = 2022.5; + +extern "C" { + static NSModalPanelRunLoopMode: &'static NSRunLoopMode; +} + +extern "C" { + static NSEventTrackingRunLoopMode: &'static NSRunLoopMode; +} + pub type NSModalResponse = NSInteger; +static NSModalResponseStop: NSModalResponse = (-1000); + +static NSModalResponseAbort: NSModalResponse = (-1001); + +static NSModalResponseContinue: NSModalResponse = (-1002); + pub const NSUpdateWindowsRunLoopOrdering: i32 = 500000; pub type NSApplicationPresentationOptions = NSUInteger; @@ -36,6 +174,10 @@ pub const NSApplicationOcclusionStateVisible: NSApplicationOcclusionState = 1 << pub type NSWindowListOptions = NSInteger; pub const NSWindowListOrderedFrontToBack: NSWindowListOptions = (1 << 0); +extern "C" { + static NSApp: Option<&'static NSApplication>; +} + pub type NSRequestUserAttentionType = NSUInteger; pub const NSCriticalRequest: NSRequestUserAttentionType = 0; pub const NSInformationalRequest: NSRequestUserAttentionType = 10; @@ -411,6 +553,26 @@ extern_methods!( pub type NSAboutPanelOptionKey = NSString; +extern "C" { + static NSAboutPanelOptionCredits: &'static NSAboutPanelOptionKey; +} + +extern "C" { + static NSAboutPanelOptionApplicationName: &'static NSAboutPanelOptionKey; +} + +extern "C" { + static NSAboutPanelOptionApplicationIcon: &'static NSAboutPanelOptionKey; +} + +extern "C" { + static NSAboutPanelOptionVersion: &'static NSAboutPanelOptionKey; +} + +extern "C" { + static NSAboutPanelOptionApplicationVersion: &'static NSAboutPanelOptionKey; +} + extern_methods!( /// NSStandardAboutPanel unsafe impl NSApplication { @@ -472,6 +634,86 @@ extern_methods!( pub type NSServiceProviderName = NSString; +extern "C" { + static NSApplicationDidBecomeActiveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationDidHideNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationDidFinishLaunchingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationDidResignActiveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationDidUnhideNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationDidUpdateNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillBecomeActiveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillHideNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillFinishLaunchingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillResignActiveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillUnhideNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillUpdateNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationWillTerminateNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationDidChangeScreenParametersNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationProtectedDataWillBecomeUnavailableNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationProtectedDataDidBecomeAvailableNotification: &'static NSNotificationName; +} + +extern "C" { + static NSApplicationLaunchIsDefaultLaunchKey: &'static NSString; +} + +extern "C" { + static NSApplicationLaunchUserNotificationKey: &'static NSString; +} + +extern "C" { + static NSApplicationLaunchRemoteNotificationKey: &'static NSString; +} + +extern "C" { + static NSApplicationDidChangeOcclusionStateNotification: &'static NSNotificationName; +} + pub const NSRunStoppedResponse: i32 = (-1000); pub const NSRunAbortedResponse: i32 = (-1001); pub const NSRunContinuesResponse: i32 = (-1002); diff --git a/icrate/src/AppKit/generated/NSAttributedString.rs b/icrate/src/AppKit/generated/NSAttributedString.rs index e907117f5..ab26e3f75 100644 --- a/icrate/src/AppKit/generated/NSAttributedString.rs +++ b/icrate/src/AppKit/generated/NSAttributedString.rs @@ -5,6 +5,122 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSFontAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSParagraphStyleAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSForegroundColorAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSBackgroundColorAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSLigatureAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSKernAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSTrackingAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSStrikethroughStyleAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSUnderlineStyleAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSStrokeColorAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSStrokeWidthAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSShadowAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSTextEffectAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAttachmentAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSLinkAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSBaselineOffsetAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSUnderlineColorAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSStrikethroughColorAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSObliquenessAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSExpansionAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSWritingDirectionAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSVerticalGlyphFormAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSCursorAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSToolTipAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSMarkedClauseSegmentAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSTextAlternativesAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSSpellingStateAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSSuperscriptAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSGlyphInfoAttributeName: &'static NSAttributedStringKey; +} + pub type NSUnderlineStyle = NSInteger; pub const NSUnderlineStyleNone: NSUnderlineStyle = 0x00; pub const NSUnderlineStyleSingle: NSUnderlineStyle = 0x01; @@ -23,6 +139,10 @@ pub const NSWritingDirectionOverride: NSWritingDirectionFormatType = (1 << 1); pub type NSTextEffectStyle = NSString; +extern "C" { + static NSTextEffectLetterpressStyle: &'static NSTextEffectStyle; +} + pub type NSSpellingState = NSInteger; pub const NSSpellingStateSpellingFlag: NSSpellingState = (1 << 0); pub const NSSpellingStateGrammarFlag: NSSpellingState = (1 << 1); @@ -46,16 +166,261 @@ extern_methods!( pub type NSAttributedStringDocumentType = NSString; +extern "C" { + static NSPlainTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSRTFTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSRTFDTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSHTMLTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSMacSimpleTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSDocFormatTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSWordMLTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSWebArchiveTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSOfficeOpenXMLTextDocumentType: &'static NSAttributedStringDocumentType; +} + +extern "C" { + static NSOpenDocumentTextDocumentType: &'static NSAttributedStringDocumentType; +} + pub type NSTextLayoutSectionKey = NSString; +extern "C" { + static NSTextLayoutSectionOrientation: &'static NSTextLayoutSectionKey; +} + +extern "C" { + static NSTextLayoutSectionRange: &'static NSTextLayoutSectionKey; +} + pub type NSTextScalingType = NSInteger; pub const NSTextScalingStandard: NSTextScalingType = 0; pub const NSTextScalingiOS: NSTextScalingType = 1; pub type NSAttributedStringDocumentAttributeKey = NSString; +extern "C" { + static NSDocumentTypeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSConvertedDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCocoaVersionDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSFileTypeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSTitleDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCompanyDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCopyrightDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSSubjectDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSAuthorDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSKeywordsDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCommentDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSEditorDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCreationTimeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSModificationTimeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSManagerDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCategoryDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSAppearanceDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSCharacterEncodingDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSDefaultAttributesDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSPaperSizeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSLeftMarginDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSRightMarginDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSTopMarginDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSBottomMarginDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSViewSizeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSViewZoomDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSViewModeDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSReadOnlyDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSBackgroundColorDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSHyphenationFactorDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSDefaultTabIntervalDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSTextLayoutSectionsAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSExcludedElementsDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSTextEncodingNameDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSPrefixSpacesDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSTextScalingDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + +extern "C" { + static NSSourceTextScalingDocumentAttribute: &'static NSAttributedStringDocumentAttributeKey; +} + pub type NSAttributedStringDocumentReadingOptionKey = NSString; +extern "C" { + static NSDocumentTypeDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSDefaultAttributesDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSCharacterEncodingDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSTextEncodingNameDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSBaseURLDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSTimeoutDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSWebPreferencesDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSWebResourceLoadDelegateDocumentOption: + &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSTextSizeMultiplierDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSFileTypeDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSTargetTextScalingDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + +extern "C" { + static NSSourceTextScalingDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey; +} + extern_methods!( /// NSAttributedStringDocumentFormats unsafe impl NSAttributedString { @@ -345,9 +710,37 @@ extern_methods!( } ); +static NSUnderlinePatternSolid: NSUnderlineStyle = NSUnderlineStylePatternSolid; + +static NSUnderlinePatternDot: NSUnderlineStyle = NSUnderlineStylePatternDot; + +static NSUnderlinePatternDash: NSUnderlineStyle = NSUnderlineStylePatternDash; + +static NSUnderlinePatternDashDot: NSUnderlineStyle = NSUnderlineStylePatternDashDot; + +static NSUnderlinePatternDashDotDot: NSUnderlineStyle = NSUnderlineStylePatternDashDotDot; + +static NSUnderlineByWord: NSUnderlineStyle = NSUnderlineStyleByWord; + +extern "C" { + static NSCharacterShapeAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSUsesScreenFontsDocumentAttribute: &'static NSAttributedStringKey; +} + pub const NSNoUnderlineStyle: i32 = 0; pub const NSSingleUnderlineStyle: i32 = 1; +extern "C" { + static NSUnderlineStrikethroughMask: NSUInteger; +} + +extern "C" { + static NSUnderlineByWordMask: NSUInteger; +} + extern_methods!( /// NSDeprecatedKitAdditions unsafe impl NSAttributedString { diff --git a/icrate/src/AppKit/generated/NSBezierPath.rs b/icrate/src/AppKit/generated/NSBezierPath.rs index 084c75d95..6f4444187 100644 --- a/icrate/src/AppKit/generated/NSBezierPath.rs +++ b/icrate/src/AppKit/generated/NSBezierPath.rs @@ -329,3 +329,27 @@ extern_methods!( pub unsafe fn appendBezierPathWithPackedGlyphs(&self, packedGlyphs: NonNull); } ); + +static NSButtLineCapStyle: NSLineCapStyle = NSLineCapStyleButt; + +static NSRoundLineCapStyle: NSLineCapStyle = NSLineCapStyleRound; + +static NSSquareLineCapStyle: NSLineCapStyle = NSLineCapStyleSquare; + +static NSMiterLineJoinStyle: NSLineJoinStyle = NSLineJoinStyleMiter; + +static NSRoundLineJoinStyle: NSLineJoinStyle = NSLineJoinStyleRound; + +static NSBevelLineJoinStyle: NSLineJoinStyle = NSLineJoinStyleBevel; + +static NSNonZeroWindingRule: NSWindingRule = NSWindingRuleNonZero; + +static NSEvenOddWindingRule: NSWindingRule = NSWindingRuleEvenOdd; + +static NSMoveToBezierPathElement: NSBezierPathElement = NSBezierPathElementMoveTo; + +static NSLineToBezierPathElement: NSBezierPathElement = NSBezierPathElementLineTo; + +static NSCurveToBezierPathElement: NSBezierPathElement = NSBezierPathElementCurveTo; + +static NSClosePathBezierPathElement: NSBezierPathElement = NSBezierPathElementClosePath; diff --git a/icrate/src/AppKit/generated/NSBitmapImageRep.rs b/icrate/src/AppKit/generated/NSBitmapImageRep.rs index 2b764101a..8a41909bb 100644 --- a/icrate/src/AppKit/generated/NSBitmapImageRep.rs +++ b/icrate/src/AppKit/generated/NSBitmapImageRep.rs @@ -42,6 +42,66 @@ pub const NSBitmapFormatThirtyTwoBitBigEndian: NSBitmapFormat = (1 << 11); pub type NSBitmapImageRepPropertyKey = NSString; +extern "C" { + static NSImageCompressionMethod: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageCompressionFactor: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageDitherTransparency: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageRGBColorTable: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageInterlaced: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageColorSyncProfileData: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageFrameCount: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageCurrentFrame: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageCurrentFrameDuration: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageLoopCount: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageGamma: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageProgressive: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageEXIFData: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageIPTCData: &'static NSBitmapImageRepPropertyKey; +} + +extern "C" { + static NSImageFallbackBackgroundColor: &'static NSBitmapImageRepPropertyKey; +} + extern_class!( #[derive(Debug)] pub struct NSBitmapImageRep; @@ -258,3 +318,29 @@ extern_methods!( ) -> Option>; } ); + +static NSTIFFFileType: NSBitmapImageFileType = NSBitmapImageFileTypeTIFF; + +static NSBMPFileType: NSBitmapImageFileType = NSBitmapImageFileTypeBMP; + +static NSGIFFileType: NSBitmapImageFileType = NSBitmapImageFileTypeGIF; + +static NSJPEGFileType: NSBitmapImageFileType = NSBitmapImageFileTypeJPEG; + +static NSPNGFileType: NSBitmapImageFileType = NSBitmapImageFileTypePNG; + +static NSJPEG2000FileType: NSBitmapImageFileType = NSBitmapImageFileTypeJPEG2000; + +static NSAlphaFirstBitmapFormat: NSBitmapFormat = NSBitmapFormatAlphaFirst; + +static NSAlphaNonpremultipliedBitmapFormat: NSBitmapFormat = NSBitmapFormatAlphaNonpremultiplied; + +static NSFloatingPointSamplesBitmapFormat: NSBitmapFormat = NSBitmapFormatFloatingPointSamples; + +static NS16BitLittleEndianBitmapFormat: NSBitmapFormat = NSBitmapFormatSixteenBitLittleEndian; + +static NS32BitLittleEndianBitmapFormat: NSBitmapFormat = NSBitmapFormatThirtyTwoBitLittleEndian; + +static NS16BitBigEndianBitmapFormat: NSBitmapFormat = NSBitmapFormatSixteenBitBigEndian; + +static NS32BitBigEndianBitmapFormat: NSBitmapFormat = NSBitmapFormatThirtyTwoBitBigEndian; diff --git a/icrate/src/AppKit/generated/NSBox.rs b/icrate/src/AppKit/generated/NSBox.rs index 7c5472bb5..501f617d9 100644 --- a/icrate/src/AppKit/generated/NSBox.rs +++ b/icrate/src/AppKit/generated/NSBox.rs @@ -126,3 +126,7 @@ extern_methods!( pub unsafe fn setTitleWithMnemonic(&self, stringWithAmpersand: Option<&NSString>); } ); + +static NSBoxSecondary: NSBoxType = 1; + +static NSBoxOldStyle: NSBoxType = 3; diff --git a/icrate/src/AppKit/generated/NSBrowser.rs b/icrate/src/AppKit/generated/NSBrowser.rs index 5c5c1ef00..67c75676a 100644 --- a/icrate/src/AppKit/generated/NSBrowser.rs +++ b/icrate/src/AppKit/generated/NSBrowser.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSAppKitVersionNumberWithContinuousScrollingBrowser: NSAppKitVersion = 680.0; + +static NSAppKitVersionNumberWithColumnResizingBrowser: NSAppKitVersion = 685.0; + pub type NSBrowserColumnsAutosaveName = NSString; pub type NSBrowserColumnResizingType = NSUInteger; @@ -413,6 +417,10 @@ extern_methods!( } ); +extern "C" { + static NSBrowserColumnConfigurationDidChangeNotification: &'static NSNotificationName; +} + pub type NSBrowserDelegate = NSObject; extern_methods!( diff --git a/icrate/src/AppKit/generated/NSButtonCell.rs b/icrate/src/AppKit/generated/NSButtonCell.rs index 4332d846d..67de1672f 100644 --- a/icrate/src/AppKit/generated/NSButtonCell.rs +++ b/icrate/src/AppKit/generated/NSButtonCell.rs @@ -216,6 +216,62 @@ pub const NSGradientConcaveStrong: NSGradientType = 2; pub const NSGradientConvexWeak: NSGradientType = 3; pub const NSGradientConvexStrong: NSGradientType = 4; +static NSMomentaryLightButton: NSButtonType = NSButtonTypeMomentaryLight; + +static NSPushOnPushOffButton: NSButtonType = NSButtonTypePushOnPushOff; + +static NSToggleButton: NSButtonType = NSButtonTypeToggle; + +static NSSwitchButton: NSButtonType = NSButtonTypeSwitch; + +static NSRadioButton: NSButtonType = NSButtonTypeRadio; + +static NSMomentaryChangeButton: NSButtonType = NSButtonTypeMomentaryChange; + +static NSOnOffButton: NSButtonType = NSButtonTypeOnOff; + +static NSMomentaryPushInButton: NSButtonType = NSButtonTypeMomentaryPushIn; + +static NSAcceleratorButton: NSButtonType = NSButtonTypeAccelerator; + +static NSMultiLevelAcceleratorButton: NSButtonType = NSButtonTypeMultiLevelAccelerator; + +static NSMomentaryPushButton: NSButtonType = NSButtonTypeMomentaryLight; + +static NSMomentaryLight: NSButtonType = NSButtonTypeMomentaryPushIn; + +static NSRoundedBezelStyle: NSBezelStyle = NSBezelStyleRounded; + +static NSRegularSquareBezelStyle: NSBezelStyle = NSBezelStyleRegularSquare; + +static NSDisclosureBezelStyle: NSBezelStyle = NSBezelStyleDisclosure; + +static NSShadowlessSquareBezelStyle: NSBezelStyle = NSBezelStyleShadowlessSquare; + +static NSCircularBezelStyle: NSBezelStyle = NSBezelStyleCircular; + +static NSTexturedSquareBezelStyle: NSBezelStyle = NSBezelStyleTexturedSquare; + +static NSHelpButtonBezelStyle: NSBezelStyle = NSBezelStyleHelpButton; + +static NSSmallSquareBezelStyle: NSBezelStyle = NSBezelStyleSmallSquare; + +static NSTexturedRoundedBezelStyle: NSBezelStyle = NSBezelStyleTexturedRounded; + +static NSRoundRectBezelStyle: NSBezelStyle = NSBezelStyleRoundRect; + +static NSRecessedBezelStyle: NSBezelStyle = NSBezelStyleRecessed; + +static NSRoundedDisclosureBezelStyle: NSBezelStyle = NSBezelStyleRoundedDisclosure; + +static NSInlineBezelStyle: NSBezelStyle = NSBezelStyleInline; + +static NSSmallIconButtonBezelStyle: NSBezelStyle = 2; + +static NSThickSquareBezelStyle: NSBezelStyle = 3; + +static NSThickerSquareBezelStyle: NSBezelStyle = 4; + extern_methods!( /// NSDeprecated unsafe impl NSButtonCell { diff --git a/icrate/src/AppKit/generated/NSCandidateListTouchBarItem.rs b/icrate/src/AppKit/generated/NSCandidateListTouchBarItem.rs index 2a70da17a..036323b83 100644 --- a/icrate/src/AppKit/generated/NSCandidateListTouchBarItem.rs +++ b/icrate/src/AppKit/generated/NSCandidateListTouchBarItem.rs @@ -94,3 +94,7 @@ extern_methods!( ) -> Option>; } ); + +extern "C" { + static NSTouchBarItemIdentifierCandidateList: &'static NSTouchBarItemIdentifier; +} diff --git a/icrate/src/AppKit/generated/NSCell.rs b/icrate/src/AppKit/generated/NSCell.rs index 3176c2d28..c9319155a 100644 --- a/icrate/src/AppKit/generated/NSCell.rs +++ b/icrate/src/AppKit/generated/NSCell.rs @@ -51,6 +51,12 @@ pub const NSScaleNone: NSImageScaling = 2; pub type NSControlStateValue = NSInteger; +static NSControlStateValueMixed: NSControlStateValue = -1; + +static NSControlStateValueOff: NSControlStateValue = 0; + +static NSControlStateValueOn: NSControlStateValue = 1; + pub type NSCellStyleMask = NSUInteger; pub const NSNoCellMask: NSCellStyleMask = 0; pub const NSContentsCellMask: NSCellStyleMask = 1; @@ -675,8 +681,28 @@ extern_methods!( } ); +static NSBackgroundStyleLight: NSBackgroundStyle = NSBackgroundStyleNormal; + +static NSBackgroundStyleDark: NSBackgroundStyle = NSBackgroundStyleEmphasized; + pub type NSCellStateValue = NSControlStateValue; +static NSMixedState: NSControlStateValue = NSControlStateValueMixed; + +static NSOffState: NSControlStateValue = NSControlStateValueOff; + +static NSOnState: NSControlStateValue = NSControlStateValueOn; + +static NSRegularControlSize: NSControlSize = NSControlSizeRegular; + +static NSSmallControlSize: NSControlSize = NSControlSizeSmall; + +static NSMiniControlSize: NSControlSize = NSControlSizeMini; + +extern "C" { + static NSControlTintDidChangeNotification: &'static NSNotificationName; +} + pub const NSAnyType: i32 = 0; pub const NSIntType: i32 = 1; pub const NSPositiveIntType: i32 = 2; diff --git a/icrate/src/AppKit/generated/NSCollectionViewCompositionalLayout.rs b/icrate/src/AppKit/generated/NSCollectionViewCompositionalLayout.rs index cb1ba4133..035a05b9e 100644 --- a/icrate/src/AppKit/generated/NSCollectionViewCompositionalLayout.rs +++ b/icrate/src/AppKit/generated/NSCollectionViewCompositionalLayout.rs @@ -16,6 +16,10 @@ pub const NSDirectionalRectEdgeAll: NSDirectionalRectEdge = NSDirectionalRectEdg | NSDirectionalRectEdgeBottom | NSDirectionalRectEdgeTrailing; +extern "C" { + static NSDirectionalEdgeInsetsZero: NSDirectionalEdgeInsets; +} + pub type NSRectAlignment = NSInteger; pub const NSRectAlignmentNone: NSRectAlignment = 0; pub const NSRectAlignmentTop: NSRectAlignment = 1; diff --git a/icrate/src/AppKit/generated/NSCollectionViewFlowLayout.rs b/icrate/src/AppKit/generated/NSCollectionViewFlowLayout.rs index 70eaa1522..ed19466c2 100644 --- a/icrate/src/AppKit/generated/NSCollectionViewFlowLayout.rs +++ b/icrate/src/AppKit/generated/NSCollectionViewFlowLayout.rs @@ -9,6 +9,14 @@ pub type NSCollectionViewScrollDirection = NSInteger; pub const NSCollectionViewScrollDirectionVertical: NSCollectionViewScrollDirection = 0; pub const NSCollectionViewScrollDirectionHorizontal: NSCollectionViewScrollDirection = 1; +extern "C" { + static NSCollectionElementKindSectionHeader: &'static NSCollectionViewSupplementaryElementKind; +} + +extern "C" { + static NSCollectionElementKindSectionFooter: &'static NSCollectionViewSupplementaryElementKind; +} + extern_class!( #[derive(Debug)] pub struct NSCollectionViewFlowLayoutInvalidationContext; diff --git a/icrate/src/AppKit/generated/NSCollectionViewLayout.rs b/icrate/src/AppKit/generated/NSCollectionViewLayout.rs index 5d9bf1ccc..5476e22b1 100644 --- a/icrate/src/AppKit/generated/NSCollectionViewLayout.rs +++ b/icrate/src/AppKit/generated/NSCollectionViewLayout.rs @@ -13,6 +13,11 @@ pub const NSCollectionElementCategoryInterItemGap: NSCollectionElementCategory = pub type NSCollectionViewDecorationElementKind = NSString; +extern "C" { + static NSCollectionElementKindInterItemGapIndicator: + &'static NSCollectionViewSupplementaryElementKind; +} + extern_class!( #[derive(Debug)] pub struct NSCollectionViewLayoutAttributes; diff --git a/icrate/src/AppKit/generated/NSColor.rs b/icrate/src/AppKit/generated/NSColor.rs index 0fb2e98b0..e4fe1e262 100644 --- a/icrate/src/AppKit/generated/NSColor.rs +++ b/icrate/src/AppKit/generated/NSColor.rs @@ -5,6 +5,8 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSAppKitVersionNumberWithPatternColorLeakFix: NSAppKitVersion = 641.0; + pub type NSColorType = NSInteger; pub const NSColorTypeComponentBased: NSColorType = 0; pub const NSColorTypePattern: NSColorType = 1; @@ -604,3 +606,7 @@ extern_methods!( pub unsafe fn decodeNXColor(&self) -> Option>; } ); + +extern "C" { + static NSSystemColorsDidChangeNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSColorList.rs b/icrate/src/AppKit/generated/NSColorList.rs index 976c0c647..1e0c147a5 100644 --- a/icrate/src/AppKit/generated/NSColorList.rs +++ b/icrate/src/AppKit/generated/NSColorList.rs @@ -75,3 +75,7 @@ extern_methods!( pub unsafe fn removeFile(&self); } ); + +extern "C" { + static NSColorListDidChangeNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSColorPanel.rs b/icrate/src/AppKit/generated/NSColorPanel.rs index a16873b76..31bd67b3f 100644 --- a/icrate/src/AppKit/generated/NSColorPanel.rs +++ b/icrate/src/AppKit/generated/NSColorPanel.rs @@ -121,3 +121,25 @@ extern_methods!( pub unsafe fn changeColor(&self, sender: Option<&Object>); } ); + +extern "C" { + static NSColorPanelColorDidChangeNotification: &'static NSNotificationName; +} + +static NSNoModeColorPanel: NSColorPanelMode = NSColorPanelModeNone; + +static NSGrayModeColorPanel: NSColorPanelMode = NSColorPanelModeGray; + +static NSRGBModeColorPanel: NSColorPanelMode = NSColorPanelModeRGB; + +static NSCMYKModeColorPanel: NSColorPanelMode = NSColorPanelModeCMYK; + +static NSHSBModeColorPanel: NSColorPanelMode = NSColorPanelModeHSB; + +static NSCustomPaletteModeColorPanel: NSColorPanelMode = NSColorPanelModeCustomPalette; + +static NSColorListModeColorPanel: NSColorPanelMode = NSColorPanelModeColorList; + +static NSWheelModeColorPanel: NSColorPanelMode = NSColorPanelModeWheel; + +static NSCrayonModeColorPanel: NSColorPanelMode = NSColorPanelModeCrayon; diff --git a/icrate/src/AppKit/generated/NSColorSpace.rs b/icrate/src/AppKit/generated/NSColorSpace.rs index 28da1da00..1d75343e9 100644 --- a/icrate/src/AppKit/generated/NSColorSpace.rs +++ b/icrate/src/AppKit/generated/NSColorSpace.rs @@ -101,3 +101,19 @@ extern_methods!( ) -> Id, Shared>; } ); + +static NSUnknownColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelUnknown; + +static NSGrayColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelGray; + +static NSRGBColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelRGB; + +static NSCMYKColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelCMYK; + +static NSLABColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelLAB; + +static NSDeviceNColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelDeviceN; + +static NSIndexedColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelIndexed; + +static NSPatternColorSpaceModel: NSColorSpaceModel = NSColorSpaceModelPatterned; diff --git a/icrate/src/AppKit/generated/NSComboBox.rs b/icrate/src/AppKit/generated/NSComboBox.rs index f6832fbfd..88a601136 100644 --- a/icrate/src/AppKit/generated/NSComboBox.rs +++ b/icrate/src/AppKit/generated/NSComboBox.rs @@ -5,6 +5,22 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSComboBoxWillPopUpNotification: &'static NSNotificationName; +} + +extern "C" { + static NSComboBoxWillDismissNotification: &'static NSNotificationName; +} + +extern "C" { + static NSComboBoxSelectionDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSComboBoxSelectionIsChangingNotification: &'static NSNotificationName; +} + pub type NSComboBoxDataSource = NSObject; pub type NSComboBoxDelegate = NSObject; diff --git a/icrate/src/AppKit/generated/NSControl.rs b/icrate/src/AppKit/generated/NSControl.rs index 205b18f1e..f791abcfa 100644 --- a/icrate/src/AppKit/generated/NSControl.rs +++ b/icrate/src/AppKit/generated/NSControl.rs @@ -242,6 +242,18 @@ extern_methods!( pub type NSControlTextEditingDelegate = NSObject; +extern "C" { + static NSControlTextDidBeginEditingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSControlTextDidEndEditingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSControlTextDidChangeNotification: &'static NSNotificationName; +} + extern_methods!( /// NSDeprecated unsafe impl NSControl { diff --git a/icrate/src/AppKit/generated/NSCursor.rs b/icrate/src/AppKit/generated/NSCursor.rs index 88d1c1267..d80729113 100644 --- a/icrate/src/AppKit/generated/NSCursor.rs +++ b/icrate/src/AppKit/generated/NSCursor.rs @@ -115,6 +115,8 @@ extern_methods!( } ); +static NSAppKitVersionNumberWithCursorSizeSupport: NSAppKitVersion = 682.0; + extern_methods!( /// NSDeprecated unsafe impl NSCursor { diff --git a/icrate/src/AppKit/generated/NSDatePickerCell.rs b/icrate/src/AppKit/generated/NSDatePickerCell.rs index 2519ce3e6..ba90775a3 100644 --- a/icrate/src/AppKit/generated/NSDatePickerCell.rs +++ b/icrate/src/AppKit/generated/NSDatePickerCell.rs @@ -129,3 +129,30 @@ extern_methods!( ); pub type NSDatePickerCellDelegate = NSObject; + +static NSTextFieldAndStepperDatePickerStyle: NSDatePickerStyle = + NSDatePickerStyleTextFieldAndStepper; + +static NSClockAndCalendarDatePickerStyle: NSDatePickerStyle = NSDatePickerStyleClockAndCalendar; + +static NSTextFieldDatePickerStyle: NSDatePickerStyle = NSDatePickerStyleTextField; + +static NSSingleDateMode: NSDatePickerMode = NSDatePickerModeSingle; + +static NSRangeDateMode: NSDatePickerMode = NSDatePickerModeRange; + +static NSHourMinuteDatePickerElementFlag: NSDatePickerElementFlags = + NSDatePickerElementFlagHourMinute; + +static NSHourMinuteSecondDatePickerElementFlag: NSDatePickerElementFlags = + NSDatePickerElementFlagHourMinuteSecond; + +static NSTimeZoneDatePickerElementFlag: NSDatePickerElementFlags = NSDatePickerElementFlagTimeZone; + +static NSYearMonthDatePickerElementFlag: NSDatePickerElementFlags = + NSDatePickerElementFlagYearMonth; + +static NSYearMonthDayDatePickerElementFlag: NSDatePickerElementFlags = + NSDatePickerElementFlagYearMonthDay; + +static NSEraDatePickerElementFlag: NSDatePickerElementFlags = NSDatePickerElementFlagEra; diff --git a/icrate/src/AppKit/generated/NSDockTile.rs b/icrate/src/AppKit/generated/NSDockTile.rs index e77c023db..3b6384a07 100644 --- a/icrate/src/AppKit/generated/NSDockTile.rs +++ b/icrate/src/AppKit/generated/NSDockTile.rs @@ -5,6 +5,8 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSAppKitVersionNumberWithDockTilePlugInSupport: NSAppKitVersion = 1001.0; + extern_class!( #[derive(Debug)] pub struct NSDockTile; diff --git a/icrate/src/AppKit/generated/NSDraggingItem.rs b/icrate/src/AppKit/generated/NSDraggingItem.rs index a5fa583cf..a717d5983 100644 --- a/icrate/src/AppKit/generated/NSDraggingItem.rs +++ b/icrate/src/AppKit/generated/NSDraggingItem.rs @@ -7,6 +7,14 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSDraggingImageComponentKey = NSString; +extern "C" { + static NSDraggingImageComponentIconKey: &'static NSDraggingImageComponentKey; +} + +extern "C" { + static NSDraggingImageComponentLabelKey: &'static NSDraggingImageComponentKey; +} + extern_class!( #[derive(Debug)] pub struct NSDraggingImageComponent; diff --git a/icrate/src/AppKit/generated/NSDrawer.rs b/icrate/src/AppKit/generated/NSDrawer.rs index 84e7f6e96..b37309393 100644 --- a/icrate/src/AppKit/generated/NSDrawer.rs +++ b/icrate/src/AppKit/generated/NSDrawer.rs @@ -118,3 +118,19 @@ extern_methods!( ); pub type NSDrawerDelegate = NSObject; + +extern "C" { + static NSDrawerWillOpenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSDrawerDidOpenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSDrawerWillCloseNotification: &'static NSNotificationName; +} + +extern "C" { + static NSDrawerDidCloseNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSErrors.rs b/icrate/src/AppKit/generated/NSErrors.rs index 9810872e4..c6a954b5e 100644 --- a/icrate/src/AppKit/generated/NSErrors.rs +++ b/icrate/src/AppKit/generated/NSErrors.rs @@ -4,3 +4,147 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; + +extern "C" { + static NSTextLineTooLongException: &'static NSExceptionName; +} + +extern "C" { + static NSTextNoSelectionException: &'static NSExceptionName; +} + +extern "C" { + static NSWordTablesWriteException: &'static NSExceptionName; +} + +extern "C" { + static NSWordTablesReadException: &'static NSExceptionName; +} + +extern "C" { + static NSTextReadException: &'static NSExceptionName; +} + +extern "C" { + static NSTextWriteException: &'static NSExceptionName; +} + +extern "C" { + static NSPasteboardCommunicationException: &'static NSExceptionName; +} + +extern "C" { + static NSPrintingCommunicationException: &'static NSExceptionName; +} + +extern "C" { + static NSAbortModalException: &'static NSExceptionName; +} + +extern "C" { + static NSAbortPrintingException: &'static NSExceptionName; +} + +extern "C" { + static NSIllegalSelectorException: &'static NSExceptionName; +} + +extern "C" { + static NSAppKitVirtualMemoryException: &'static NSExceptionName; +} + +extern "C" { + static NSBadRTFDirectiveException: &'static NSExceptionName; +} + +extern "C" { + static NSBadRTFFontTableException: &'static NSExceptionName; +} + +extern "C" { + static NSBadRTFStyleSheetException: &'static NSExceptionName; +} + +extern "C" { + static NSTypedStreamVersionException: &'static NSExceptionName; +} + +extern "C" { + static NSTIFFException: &'static NSExceptionName; +} + +extern "C" { + static NSPrintPackageException: &'static NSExceptionName; +} + +extern "C" { + static NSBadRTFColorTableException: &'static NSExceptionName; +} + +extern "C" { + static NSDraggingException: &'static NSExceptionName; +} + +extern "C" { + static NSColorListIOException: &'static NSExceptionName; +} + +extern "C" { + static NSColorListNotEditableException: &'static NSExceptionName; +} + +extern "C" { + static NSBadBitmapParametersException: &'static NSExceptionName; +} + +extern "C" { + static NSWindowServerCommunicationException: &'static NSExceptionName; +} + +extern "C" { + static NSFontUnavailableException: &'static NSExceptionName; +} + +extern "C" { + static NSPPDIncludeNotFoundException: &'static NSExceptionName; +} + +extern "C" { + static NSPPDParseException: &'static NSExceptionName; +} + +extern "C" { + static NSPPDIncludeStackOverflowException: &'static NSExceptionName; +} + +extern "C" { + static NSPPDIncludeStackUnderflowException: &'static NSExceptionName; +} + +extern "C" { + static NSRTFPropertyStackOverflowException: &'static NSExceptionName; +} + +extern "C" { + static NSAppKitIgnoredException: &'static NSExceptionName; +} + +extern "C" { + static NSBadComparisonException: &'static NSExceptionName; +} + +extern "C" { + static NSImageCacheException: &'static NSExceptionName; +} + +extern "C" { + static NSNibLoadingException: &'static NSExceptionName; +} + +extern "C" { + static NSBrowserIllegalDelegateException: &'static NSExceptionName; +} + +extern "C" { + static NSAccessibilityException: &'static NSExceptionName; +} diff --git a/icrate/src/AppKit/generated/NSEvent.rs b/icrate/src/AppKit/generated/NSEvent.rs index 03486a2e0..8c73fda06 100644 --- a/icrate/src/AppKit/generated/NSEvent.rs +++ b/icrate/src/AppKit/generated/NSEvent.rs @@ -41,6 +41,52 @@ pub const NSEventTypePressure: NSEventType = 34; pub const NSEventTypeDirectTouch: NSEventType = 37; pub const NSEventTypeChangeMode: NSEventType = 38; +static NSLeftMouseDown: NSEventType = NSEventTypeLeftMouseDown; + +static NSLeftMouseUp: NSEventType = NSEventTypeLeftMouseUp; + +static NSRightMouseDown: NSEventType = NSEventTypeRightMouseDown; + +static NSRightMouseUp: NSEventType = NSEventTypeRightMouseUp; + +static NSMouseMoved: NSEventType = NSEventTypeMouseMoved; + +static NSLeftMouseDragged: NSEventType = NSEventTypeLeftMouseDragged; + +static NSRightMouseDragged: NSEventType = NSEventTypeRightMouseDragged; + +static NSMouseEntered: NSEventType = NSEventTypeMouseEntered; + +static NSMouseExited: NSEventType = NSEventTypeMouseExited; + +static NSKeyDown: NSEventType = NSEventTypeKeyDown; + +static NSKeyUp: NSEventType = NSEventTypeKeyUp; + +static NSFlagsChanged: NSEventType = NSEventTypeFlagsChanged; + +static NSAppKitDefined: NSEventType = NSEventTypeAppKitDefined; + +static NSSystemDefined: NSEventType = NSEventTypeSystemDefined; + +static NSApplicationDefined: NSEventType = NSEventTypeApplicationDefined; + +static NSPeriodic: NSEventType = NSEventTypePeriodic; + +static NSCursorUpdate: NSEventType = NSEventTypeCursorUpdate; + +static NSScrollWheel: NSEventType = NSEventTypeScrollWheel; + +static NSTabletPoint: NSEventType = NSEventTypeTabletPoint; + +static NSTabletProximity: NSEventType = NSEventTypeTabletProximity; + +static NSOtherMouseDown: NSEventType = NSEventTypeOtherMouseDown; + +static NSOtherMouseUp: NSEventType = NSEventTypeOtherMouseUp; + +static NSOtherMouseDragged: NSEventType = NSEventTypeOtherMouseDragged; + pub type NSEventMask = c_ulonglong; pub const NSEventMaskLeftMouseDown: NSEventMask = 1 << NSEventTypeLeftMouseDown; pub const NSEventMaskLeftMouseUp: NSEventMask = 1 << NSEventTypeLeftMouseUp; @@ -77,6 +123,54 @@ pub const NSEventMaskDirectTouch: NSEventMask = 1 << NSEventTypeDirectTouch; pub const NSEventMaskChangeMode: NSEventMask = 1 << NSEventTypeChangeMode; pub const NSEventMaskAny: NSEventMask = 18446744073709551615; +static NSLeftMouseDownMask: NSEventMask = NSEventMaskLeftMouseDown; + +static NSLeftMouseUpMask: NSEventMask = NSEventMaskLeftMouseUp; + +static NSRightMouseDownMask: NSEventMask = NSEventMaskRightMouseDown; + +static NSRightMouseUpMask: NSEventMask = NSEventMaskRightMouseUp; + +static NSMouseMovedMask: NSEventMask = NSEventMaskMouseMoved; + +static NSLeftMouseDraggedMask: NSEventMask = NSEventMaskLeftMouseDragged; + +static NSRightMouseDraggedMask: NSEventMask = NSEventMaskRightMouseDragged; + +static NSMouseEnteredMask: NSEventMask = NSEventMaskMouseEntered; + +static NSMouseExitedMask: NSEventMask = NSEventMaskMouseExited; + +static NSKeyDownMask: NSEventMask = NSEventMaskKeyDown; + +static NSKeyUpMask: NSEventMask = NSEventMaskKeyUp; + +static NSFlagsChangedMask: NSEventMask = NSEventMaskFlagsChanged; + +static NSAppKitDefinedMask: NSEventMask = NSEventMaskAppKitDefined; + +static NSSystemDefinedMask: NSEventMask = NSEventMaskSystemDefined; + +static NSApplicationDefinedMask: NSEventMask = NSEventMaskApplicationDefined; + +static NSPeriodicMask: NSEventMask = NSEventMaskPeriodic; + +static NSCursorUpdateMask: NSEventMask = NSEventMaskCursorUpdate; + +static NSScrollWheelMask: NSEventMask = NSEventMaskScrollWheel; + +static NSTabletPointMask: NSEventMask = NSEventMaskTabletPoint; + +static NSTabletProximityMask: NSEventMask = NSEventMaskTabletProximity; + +static NSOtherMouseDownMask: NSEventMask = NSEventMaskOtherMouseDown; + +static NSOtherMouseUpMask: NSEventMask = NSEventMaskOtherMouseUp; + +static NSOtherMouseDraggedMask: NSEventMask = NSEventMaskOtherMouseDragged; + +static NSAnyEventMask: NSEventMask = todo; + pub type NSEventModifierFlags = NSUInteger; pub const NSEventModifierFlagCapsLock: NSEventModifierFlags = 1 << 16; pub const NSEventModifierFlagShift: NSEventModifierFlags = 1 << 17; @@ -88,17 +182,50 @@ pub const NSEventModifierFlagHelp: NSEventModifierFlags = 1 << 22; pub const NSEventModifierFlagFunction: NSEventModifierFlags = 1 << 23; pub const NSEventModifierFlagDeviceIndependentFlagsMask: NSEventModifierFlags = 0xffff0000; +static NSAlphaShiftKeyMask: NSEventModifierFlags = NSEventModifierFlagCapsLock; + +static NSShiftKeyMask: NSEventModifierFlags = NSEventModifierFlagShift; + +static NSControlKeyMask: NSEventModifierFlags = NSEventModifierFlagControl; + +static NSAlternateKeyMask: NSEventModifierFlags = NSEventModifierFlagOption; + +static NSCommandKeyMask: NSEventModifierFlags = NSEventModifierFlagCommand; + +static NSNumericPadKeyMask: NSEventModifierFlags = NSEventModifierFlagNumericPad; + +static NSHelpKeyMask: NSEventModifierFlags = NSEventModifierFlagHelp; + +static NSFunctionKeyMask: NSEventModifierFlags = NSEventModifierFlagFunction; + +static NSDeviceIndependentModifierFlagsMask: NSEventModifierFlags = + NSEventModifierFlagDeviceIndependentFlagsMask; + pub type NSPointingDeviceType = NSUInteger; pub const NSPointingDeviceTypeUnknown: NSPointingDeviceType = 0; pub const NSPointingDeviceTypePen: NSPointingDeviceType = 1; pub const NSPointingDeviceTypeCursor: NSPointingDeviceType = 2; pub const NSPointingDeviceTypeEraser: NSPointingDeviceType = 3; +static NSUnknownPointingDevice: NSPointingDeviceType = NSPointingDeviceTypeUnknown; + +static NSPenPointingDevice: NSPointingDeviceType = NSPointingDeviceTypePen; + +static NSCursorPointingDevice: NSPointingDeviceType = NSPointingDeviceTypeCursor; + +static NSEraserPointingDevice: NSPointingDeviceType = NSPointingDeviceTypeEraser; + pub type NSEventButtonMask = NSUInteger; pub const NSEventButtonMaskPenTip: NSEventButtonMask = 1; pub const NSEventButtonMaskPenLowerSide: NSEventButtonMask = 2; pub const NSEventButtonMaskPenUpperSide: NSEventButtonMask = 4; +static NSPenTipMask: NSEventButtonMask = NSEventButtonMaskPenTip; + +static NSPenLowerSideMask: NSEventButtonMask = NSEventButtonMaskPenLowerSide; + +static NSPenUpperSideMask: NSEventButtonMask = NSEventButtonMaskPenUpperSide; + pub type NSEventPhase = NSUInteger; pub const NSEventPhaseNone: NSEventPhase = 0; pub const NSEventPhaseBegan: NSEventPhase = 0x1 << 0; @@ -129,6 +256,28 @@ pub const NSEventSubtypeTabletPoint: NSEventSubtype = 1; pub const NSEventSubtypeTabletProximity: NSEventSubtype = 2; pub const NSEventSubtypeTouch: NSEventSubtype = 3; +static NSWindowExposedEventType: NSEventSubtype = NSEventSubtypeWindowExposed; + +static NSApplicationActivatedEventType: NSEventSubtype = NSEventSubtypeApplicationActivated; + +static NSApplicationDeactivatedEventType: NSEventSubtype = NSEventSubtypeApplicationDeactivated; + +static NSWindowMovedEventType: NSEventSubtype = NSEventSubtypeWindowMoved; + +static NSScreenChangedEventType: NSEventSubtype = NSEventSubtypeScreenChanged; + +static NSAWTEventType: NSEventSubtype = 16; + +static NSPowerOffEventType: NSEventSubtype = NSEventSubtypePowerOff; + +static NSMouseEventSubtype: NSEventSubtype = NSEventSubtypeMouseEvent; + +static NSTabletPointEventSubtype: NSEventSubtype = NSEventSubtypeTabletPoint; + +static NSTabletProximityEventSubtype: NSEventSubtype = NSEventSubtypeTabletProximity; + +static NSTouchEventSubtype: NSEventSubtype = NSEventSubtypeTouch; + pub type NSPressureBehavior = NSInteger; pub const NSPressureBehaviorUnknown: NSPressureBehavior = -1; pub const NSPressureBehaviorPrimaryDefault: NSPressureBehavior = 0; diff --git a/icrate/src/AppKit/generated/NSFont.rs b/icrate/src/AppKit/generated/NSFont.rs index 6cbca8306..ec0d17567 100644 --- a/icrate/src/AppKit/generated/NSFont.rs +++ b/icrate/src/AppKit/generated/NSFont.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSFontIdentityMatrix: NonNull; +} + extern_class!( #[derive(Debug)] pub struct NSFont; @@ -214,6 +218,14 @@ extern_methods!( } ); +extern "C" { + static NSAntialiasThresholdChangedNotification: &'static NSNotificationName; +} + +extern "C" { + static NSFontSetChangedNotification: &'static NSNotificationName; +} + pub const NSControlGlyph: i32 = 0x00FFFFFF; pub const NSNullGlyph: i32 = 0x0; diff --git a/icrate/src/AppKit/generated/NSFontCollection.rs b/icrate/src/AppKit/generated/NSFontCollection.rs index acedd0826..946e845dc 100644 --- a/icrate/src/AppKit/generated/NSFontCollection.rs +++ b/icrate/src/AppKit/generated/NSFontCollection.rs @@ -12,6 +12,18 @@ pub const NSFontCollectionVisibilityComputer: NSFontCollectionVisibility = (1 << pub type NSFontCollectionMatchingOptionKey = NSString; +extern "C" { + static NSFontCollectionIncludeDisabledFontsOption: &'static NSFontCollectionMatchingOptionKey; +} + +extern "C" { + static NSFontCollectionRemoveDuplicatesOption: &'static NSFontCollectionMatchingOptionKey; +} + +extern "C" { + static NSFontCollectionDisallowAutoActivationOption: &'static NSFontCollectionMatchingOptionKey; +} + pub type NSFontCollectionName = NSString; extern_class!( @@ -164,6 +176,54 @@ extern_methods!( } ); +extern "C" { + static NSFontCollectionDidChangeNotification: &'static NSNotificationName; +} + pub type NSFontCollectionUserInfoKey = NSString; +extern "C" { + static NSFontCollectionActionKey: &'static NSFontCollectionUserInfoKey; +} + +extern "C" { + static NSFontCollectionNameKey: &'static NSFontCollectionUserInfoKey; +} + +extern "C" { + static NSFontCollectionOldNameKey: &'static NSFontCollectionUserInfoKey; +} + +extern "C" { + static NSFontCollectionVisibilityKey: &'static NSFontCollectionUserInfoKey; +} + pub type NSFontCollectionActionTypeKey = NSString; + +extern "C" { + static NSFontCollectionWasShown: &'static NSFontCollectionActionTypeKey; +} + +extern "C" { + static NSFontCollectionWasHidden: &'static NSFontCollectionActionTypeKey; +} + +extern "C" { + static NSFontCollectionWasRenamed: &'static NSFontCollectionActionTypeKey; +} + +extern "C" { + static NSFontCollectionAllFonts: &'static NSFontCollectionName; +} + +extern "C" { + static NSFontCollectionUser: &'static NSFontCollectionName; +} + +extern "C" { + static NSFontCollectionFavorites: &'static NSFontCollectionName; +} + +extern "C" { + static NSFontCollectionRecentlyUsed: &'static NSFontCollectionName; +} diff --git a/icrate/src/AppKit/generated/NSFontDescriptor.rs b/icrate/src/AppKit/generated/NSFontDescriptor.rs index 8c63ce0de..79c817627 100644 --- a/icrate/src/AppKit/generated/NSFontDescriptor.rs +++ b/icrate/src/AppKit/generated/NSFontDescriptor.rs @@ -164,6 +164,194 @@ extern_methods!( } ); +extern "C" { + static NSFontFamilyAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontNameAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontFaceAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontSizeAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontVisibleNameAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontMatrixAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontVariationAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontCharacterSetAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontCascadeListAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontTraitsAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontFixedAdvanceAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontFeatureSettingsAttribute: &'static NSFontDescriptorAttributeName; +} + +extern "C" { + static NSFontSymbolicTrait: &'static NSFontDescriptorTraitKey; +} + +extern "C" { + static NSFontWeightTrait: &'static NSFontDescriptorTraitKey; +} + +extern "C" { + static NSFontWidthTrait: &'static NSFontDescriptorTraitKey; +} + +extern "C" { + static NSFontSlantTrait: &'static NSFontDescriptorTraitKey; +} + +extern "C" { + static NSFontVariationAxisIdentifierKey: &'static NSFontDescriptorVariationKey; +} + +extern "C" { + static NSFontVariationAxisMinimumValueKey: &'static NSFontDescriptorVariationKey; +} + +extern "C" { + static NSFontVariationAxisMaximumValueKey: &'static NSFontDescriptorVariationKey; +} + +extern "C" { + static NSFontVariationAxisDefaultValueKey: &'static NSFontDescriptorVariationKey; +} + +extern "C" { + static NSFontVariationAxisNameKey: &'static NSFontDescriptorVariationKey; +} + +extern "C" { + static NSFontFeatureTypeIdentifierKey: &'static NSFontDescriptorFeatureKey; +} + +extern "C" { + static NSFontFeatureSelectorIdentifierKey: &'static NSFontDescriptorFeatureKey; +} + +extern "C" { + static NSFontWeightUltraLight: NSFontWeight; +} + +extern "C" { + static NSFontWeightThin: NSFontWeight; +} + +extern "C" { + static NSFontWeightLight: NSFontWeight; +} + +extern "C" { + static NSFontWeightRegular: NSFontWeight; +} + +extern "C" { + static NSFontWeightMedium: NSFontWeight; +} + +extern "C" { + static NSFontWeightSemibold: NSFontWeight; +} + +extern "C" { + static NSFontWeightBold: NSFontWeight; +} + +extern "C" { + static NSFontWeightHeavy: NSFontWeight; +} + +extern "C" { + static NSFontWeightBlack: NSFontWeight; +} + +extern "C" { + static NSFontDescriptorSystemDesignDefault: &'static NSFontDescriptorSystemDesign; +} + +extern "C" { + static NSFontDescriptorSystemDesignSerif: &'static NSFontDescriptorSystemDesign; +} + +extern "C" { + static NSFontDescriptorSystemDesignMonospaced: &'static NSFontDescriptorSystemDesign; +} + +extern "C" { + static NSFontDescriptorSystemDesignRounded: &'static NSFontDescriptorSystemDesign; +} + +extern "C" { + static NSFontTextStyleLargeTitle: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleTitle1: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleTitle2: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleTitle3: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleHeadline: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleSubheadline: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleBody: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleCallout: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleFootnote: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleCaption1: &'static NSFontTextStyle; +} + +extern "C" { + static NSFontTextStyleCaption2: &'static NSFontTextStyle; +} + pub type NSFontFamilyClass = u32; pub const NSFontUnknownClass: i32 = 0 << 28; @@ -188,6 +376,10 @@ pub const NSFontMonoSpaceTrait: i32 = (1 << 10); pub const NSFontVerticalTrait: i32 = (1 << 11); pub const NSFontUIOptimizedTrait: i32 = (1 << 12); +extern "C" { + static NSFontColorAttribute: &'static NSString; +} + extern_methods!( /// NSFontDescriptor_TextStyles unsafe impl NSFontDescriptor { diff --git a/icrate/src/AppKit/generated/NSGraphics.rs b/icrate/src/AppKit/generated/NSGraphics.rs index 0da298619..51756f6fa 100644 --- a/icrate/src/AppKit/generated/NSGraphics.rs +++ b/icrate/src/AppKit/generated/NSGraphics.rs @@ -36,6 +36,64 @@ pub const NSCompositingOperationSaturation: NSCompositingOperation = 26; pub const NSCompositingOperationColor: NSCompositingOperation = 27; pub const NSCompositingOperationLuminosity: NSCompositingOperation = 28; +static NSCompositeClear: NSCompositingOperation = NSCompositingOperationClear; + +static NSCompositeCopy: NSCompositingOperation = NSCompositingOperationCopy; + +static NSCompositeSourceOver: NSCompositingOperation = NSCompositingOperationSourceOver; + +static NSCompositeSourceIn: NSCompositingOperation = NSCompositingOperationSourceIn; + +static NSCompositeSourceOut: NSCompositingOperation = NSCompositingOperationSourceOut; + +static NSCompositeSourceAtop: NSCompositingOperation = NSCompositingOperationSourceAtop; + +static NSCompositeDestinationOver: NSCompositingOperation = NSCompositingOperationDestinationOver; + +static NSCompositeDestinationIn: NSCompositingOperation = NSCompositingOperationDestinationIn; + +static NSCompositeDestinationOut: NSCompositingOperation = NSCompositingOperationDestinationOut; + +static NSCompositeDestinationAtop: NSCompositingOperation = NSCompositingOperationDestinationAtop; + +static NSCompositeXOR: NSCompositingOperation = NSCompositingOperationXOR; + +static NSCompositePlusDarker: NSCompositingOperation = NSCompositingOperationPlusDarker; + +static NSCompositeHighlight: NSCompositingOperation = NSCompositingOperationHighlight; + +static NSCompositePlusLighter: NSCompositingOperation = NSCompositingOperationPlusLighter; + +static NSCompositeMultiply: NSCompositingOperation = NSCompositingOperationMultiply; + +static NSCompositeScreen: NSCompositingOperation = NSCompositingOperationScreen; + +static NSCompositeOverlay: NSCompositingOperation = NSCompositingOperationOverlay; + +static NSCompositeDarken: NSCompositingOperation = NSCompositingOperationDarken; + +static NSCompositeLighten: NSCompositingOperation = NSCompositingOperationLighten; + +static NSCompositeColorDodge: NSCompositingOperation = NSCompositingOperationColorDodge; + +static NSCompositeColorBurn: NSCompositingOperation = NSCompositingOperationColorBurn; + +static NSCompositeSoftLight: NSCompositingOperation = NSCompositingOperationSoftLight; + +static NSCompositeHardLight: NSCompositingOperation = NSCompositingOperationHardLight; + +static NSCompositeDifference: NSCompositingOperation = NSCompositingOperationDifference; + +static NSCompositeExclusion: NSCompositingOperation = NSCompositingOperationExclusion; + +static NSCompositeHue: NSCompositingOperation = NSCompositingOperationHue; + +static NSCompositeSaturation: NSCompositingOperation = NSCompositingOperationSaturation; + +static NSCompositeColor: NSCompositingOperation = NSCompositingOperationColor; + +static NSCompositeLuminosity: NSCompositingOperation = NSCompositingOperationLuminosity; + pub type NSBackingStoreType = NSUInteger; pub const NSBackingStoreRetained: NSBackingStoreType = 0; pub const NSBackingStoreNonretained: NSBackingStoreType = 1; @@ -65,17 +123,97 @@ pub const NSColorRenderingIntentSaturation: NSColorRenderingIntent = 4; pub type NSColorSpaceName = NSString; +extern "C" { + static NSCalibratedWhiteColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSCalibratedRGBColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSDeviceWhiteColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSDeviceRGBColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSDeviceCMYKColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSNamedColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSPatternColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSCustomColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSCalibratedBlackColorSpace: &'static NSColorSpaceName; +} + +extern "C" { + static NSDeviceBlackColorSpace: &'static NSColorSpaceName; +} + pub type NSWindowDepth = i32; pub const NSWindowDepthTwentyfourBitRGB: NSWindowDepth = 0x208; pub const NSWindowDepthSixtyfourBitRGB: NSWindowDepth = 0x210; pub const NSWindowDepthOnehundredtwentyeightBitRGB: NSWindowDepth = 0x220; +extern "C" { + static NSWhite: CGFloat; +} + +extern "C" { + static NSLightGray: CGFloat; +} + +extern "C" { + static NSDarkGray: CGFloat; +} + +extern "C" { + static NSBlack: CGFloat; +} + pub type NSDisplayGamut = NSInteger; pub const NSDisplayGamutSRGB: NSDisplayGamut = 1; pub const NSDisplayGamutP3: NSDisplayGamut = 2; pub type NSDeviceDescriptionKey = NSString; +extern "C" { + static NSDeviceResolution: &'static NSDeviceDescriptionKey; +} + +extern "C" { + static NSDeviceColorSpaceName: &'static NSDeviceDescriptionKey; +} + +extern "C" { + static NSDeviceBitsPerSample: &'static NSDeviceDescriptionKey; +} + +extern "C" { + static NSDeviceIsScreen: &'static NSDeviceDescriptionKey; +} + +extern "C" { + static NSDeviceIsPrinter: &'static NSDeviceDescriptionKey; +} + +extern "C" { + static NSDeviceSize: &'static NSDeviceDescriptionKey; +} + pub type NSAnimationEffect = NSUInteger; pub const NSAnimationEffectDisappearingItemDefault: NSAnimationEffect = 0; pub const NSAnimationEffectPoof: NSAnimationEffect = 10; diff --git a/icrate/src/AppKit/generated/NSGraphicsContext.rs b/icrate/src/AppKit/generated/NSGraphicsContext.rs index e48d6e37a..313184a70 100644 --- a/icrate/src/AppKit/generated/NSGraphicsContext.rs +++ b/icrate/src/AppKit/generated/NSGraphicsContext.rs @@ -7,8 +7,25 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSGraphicsContextAttributeKey = NSString; +extern "C" { + static NSGraphicsContextDestinationAttributeName: &'static NSGraphicsContextAttributeKey; +} + +extern "C" { + static NSGraphicsContextRepresentationFormatAttributeName: + &'static NSGraphicsContextAttributeKey; +} + pub type NSGraphicsContextRepresentationFormatName = NSString; +extern "C" { + static NSGraphicsContextPSFormat: &'static NSGraphicsContextRepresentationFormatName; +} + +extern "C" { + static NSGraphicsContextPDFFormat: &'static NSGraphicsContextRepresentationFormatName; +} + pub type NSImageInterpolation = NSUInteger; pub const NSImageInterpolationDefault: NSImageInterpolation = 0; pub const NSImageInterpolationNone: NSImageInterpolation = 1; diff --git a/icrate/src/AppKit/generated/NSGridView.rs b/icrate/src/AppKit/generated/NSGridView.rs index 75d8a6dd3..8eca28713 100644 --- a/icrate/src/AppKit/generated/NSGridView.rs +++ b/icrate/src/AppKit/generated/NSGridView.rs @@ -21,6 +21,10 @@ pub const NSGridRowAlignmentNone: NSGridRowAlignment = 1; pub const NSGridRowAlignmentFirstBaseline: NSGridRowAlignment = 2; pub const NSGridRowAlignmentLastBaseline: NSGridRowAlignment = 3; +extern "C" { + static NSGridViewSizeForContent: CGFloat; +} + extern_class!( #[derive(Debug)] pub struct NSGridView; diff --git a/icrate/src/AppKit/generated/NSHelpManager.rs b/icrate/src/AppKit/generated/NSHelpManager.rs index 55ee6e43c..4ac8757d3 100644 --- a/icrate/src/AppKit/generated/NSHelpManager.rs +++ b/icrate/src/AppKit/generated/NSHelpManager.rs @@ -69,6 +69,14 @@ extern_methods!( } ); +extern "C" { + static NSContextHelpModeDidActivateNotification: &'static NSNotificationName; +} + +extern "C" { + static NSContextHelpModeDidDeactivateNotification: &'static NSNotificationName; +} + extern_methods!( /// NSBundleHelpExtension unsafe impl NSBundle { diff --git a/icrate/src/AppKit/generated/NSImage.rs b/icrate/src/AppKit/generated/NSImage.rs index 088a0bcb8..a5b541988 100644 --- a/icrate/src/AppKit/generated/NSImage.rs +++ b/icrate/src/AppKit/generated/NSImage.rs @@ -7,6 +7,18 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSImageName = NSString; +extern "C" { + static NSImageHintCTM: &'static NSImageHintKey; +} + +extern "C" { + static NSImageHintInterpolation: &'static NSImageHintKey; +} + +extern "C" { + static NSImageHintUserInterfaceLayoutDirection: &'static NSImageHintKey; +} + pub type NSImageLoadStatus = NSUInteger; pub const NSImageLoadStatusCompleted: NSImageLoadStatus = 0; pub const NSImageLoadStatusCancelled: NSImageLoadStatus = 1; @@ -436,6 +448,562 @@ extern_methods!( } ); +extern "C" { + static NSImageNameAddTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameBluetoothTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameBonjour: &'static NSImageName; +} + +extern "C" { + static NSImageNameBookmarksTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameCaution: &'static NSImageName; +} + +extern "C" { + static NSImageNameComputer: &'static NSImageName; +} + +extern "C" { + static NSImageNameEnterFullScreenTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameExitFullScreenTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameFolder: &'static NSImageName; +} + +extern "C" { + static NSImageNameFolderBurnable: &'static NSImageName; +} + +extern "C" { + static NSImageNameFolderSmart: &'static NSImageName; +} + +extern "C" { + static NSImageNameFollowLinkFreestandingTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameHomeTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameIChatTheaterTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameLockLockedTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameLockUnlockedTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameNetwork: &'static NSImageName; +} + +extern "C" { + static NSImageNamePathTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameQuickLookTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameRefreshFreestandingTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameRefreshTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameRemoveTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameRevealFreestandingTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameShareTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameSlideshowTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameStatusAvailable: &'static NSImageName; +} + +extern "C" { + static NSImageNameStatusNone: &'static NSImageName; +} + +extern "C" { + static NSImageNameStatusPartiallyAvailable: &'static NSImageName; +} + +extern "C" { + static NSImageNameStatusUnavailable: &'static NSImageName; +} + +extern "C" { + static NSImageNameStopProgressFreestandingTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameStopProgressTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTrashEmpty: &'static NSImageName; +} + +extern "C" { + static NSImageNameTrashFull: &'static NSImageName; +} + +extern "C" { + static NSImageNameActionTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameSmartBadgeTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameIconViewTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameListViewTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameColumnViewTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameFlowViewTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameInvalidDataFreestandingTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameGoForwardTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameGoBackTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameGoRightTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameGoLeftTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameRightFacingTriangleTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameLeftFacingTriangleTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameDotMac: &'static NSImageName; +} + +extern "C" { + static NSImageNameMobileMe: &'static NSImageName; +} + +extern "C" { + static NSImageNameMultipleDocuments: &'static NSImageName; +} + +extern "C" { + static NSImageNameUserAccounts: &'static NSImageName; +} + +extern "C" { + static NSImageNamePreferencesGeneral: &'static NSImageName; +} + +extern "C" { + static NSImageNameAdvanced: &'static NSImageName; +} + +extern "C" { + static NSImageNameInfo: &'static NSImageName; +} + +extern "C" { + static NSImageNameFontPanel: &'static NSImageName; +} + +extern "C" { + static NSImageNameColorPanel: &'static NSImageName; +} + +extern "C" { + static NSImageNameUser: &'static NSImageName; +} + +extern "C" { + static NSImageNameUserGroup: &'static NSImageName; +} + +extern "C" { + static NSImageNameEveryone: &'static NSImageName; +} + +extern "C" { + static NSImageNameUserGuest: &'static NSImageName; +} + +extern "C" { + static NSImageNameMenuOnStateTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameMenuMixedStateTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameApplicationIcon: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAddDetailTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAddTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAlarmTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioInputMuteTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioInputTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioOutputMuteTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioOutputVolumeHighTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioOutputVolumeLowTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioOutputVolumeMediumTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarAudioOutputVolumeOffTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarBookmarksTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarColorPickerFill: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarColorPickerFont: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarColorPickerStroke: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarCommunicationAudioTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarCommunicationVideoTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarComposeTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarDeleteTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarDownloadTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarEnterFullScreenTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarExitFullScreenTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarFastForwardTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarFolderCopyToTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarFolderMoveToTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarFolderTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarGetInfoTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarGoBackTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarGoDownTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarGoForwardTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarGoUpTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarHistoryTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarIconViewTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarListViewTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarMailTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarNewFolderTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarNewMessageTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarOpenInBrowserTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarPauseTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarPlayPauseTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarPlayTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarQuickLookTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRecordStartTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRecordStopTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRefreshTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRemoveTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRewindTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRotateLeftTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarRotateRightTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSearchTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarShareTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSidebarTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipAhead15SecondsTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipAhead30SecondsTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipAheadTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipBack15SecondsTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipBack30SecondsTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipBackTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipToEndTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSkipToStartTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarSlideshowTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTagIconTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextBoldTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextBoxTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextCenterAlignTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextItalicTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextJustifiedAlignTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextLeftAlignTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextListTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextRightAlignTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextStrikethroughTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarTextUnderlineTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarUserAddTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarUserGroupTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarUserTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarVolumeDownTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarVolumeUpTemplate: &'static NSImageName; +} + +extern "C" { + static NSImageNameTouchBarPlayheadTemplate: &'static NSImageName; +} + pub type NSImageSymbolScale = NSInteger; pub const NSImageSymbolScaleSmall: NSImageSymbolScale = 1; pub const NSImageSymbolScaleMedium: NSImageSymbolScale = 2; diff --git a/icrate/src/AppKit/generated/NSImageRep.rs b/icrate/src/AppKit/generated/NSImageRep.rs index 6af78cd63..451998a75 100644 --- a/icrate/src/AppKit/generated/NSImageRep.rs +++ b/icrate/src/AppKit/generated/NSImageRep.rs @@ -181,3 +181,7 @@ extern_methods!( ) -> CGImageRef; } ); + +extern "C" { + static NSImageRepRegistryDidChangeNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSInterfaceStyle.rs b/icrate/src/AppKit/generated/NSInterfaceStyle.rs index 804f4a3ae..7e8ba3361 100644 --- a/icrate/src/AppKit/generated/NSInterfaceStyle.rs +++ b/icrate/src/AppKit/generated/NSInterfaceStyle.rs @@ -22,3 +22,7 @@ extern_methods!( pub unsafe fn setInterfaceStyle(&self, interfaceStyle: NSInterfaceStyle); } ); + +extern "C" { + static NSInterfaceStyleDefault: Option<&'static NSString>; +} diff --git a/icrate/src/AppKit/generated/NSItemProvider.rs b/icrate/src/AppKit/generated/NSItemProvider.rs index 85621e0ec..cc651a191 100644 --- a/icrate/src/AppKit/generated/NSItemProvider.rs +++ b/icrate/src/AppKit/generated/NSItemProvider.rs @@ -18,3 +18,19 @@ extern_methods!( pub unsafe fn preferredPresentationSize(&self) -> NSSize; } ); + +extern "C" { + static NSTypeIdentifierDateText: &'static NSString; +} + +extern "C" { + static NSTypeIdentifierAddressText: &'static NSString; +} + +extern "C" { + static NSTypeIdentifierPhoneNumberText: &'static NSString; +} + +extern "C" { + static NSTypeIdentifierTransitInformationText: &'static NSString; +} diff --git a/icrate/src/AppKit/generated/NSKeyValueBinding.rs b/icrate/src/AppKit/generated/NSKeyValueBinding.rs index 7ce11e789..36c7c637c 100644 --- a/icrate/src/AppKit/generated/NSKeyValueBinding.rs +++ b/icrate/src/AppKit/generated/NSKeyValueBinding.rs @@ -49,8 +49,32 @@ extern_methods!( } ); +extern "C" { + static NSMultipleValuesMarker: &'static Object; +} + +extern "C" { + static NSNoSelectionMarker: &'static Object; +} + +extern "C" { + static NSNotApplicableMarker: &'static Object; +} + pub type NSBindingInfoKey = NSString; +extern "C" { + static NSObservedObjectKey: &'static NSBindingInfoKey; +} + +extern "C" { + static NSObservedKeyPathKey: &'static NSBindingInfoKey; +} + +extern "C" { + static NSOptionsKey: &'static NSBindingInfoKey; +} + extern_methods!( /// NSKeyValueBindingCreation unsafe impl NSObject { @@ -144,6 +168,426 @@ extern_methods!( } ); +extern "C" { + static NSAlignmentBinding: &'static NSBindingName; +} + +extern "C" { + static NSAlternateImageBinding: &'static NSBindingName; +} + +extern "C" { + static NSAlternateTitleBinding: &'static NSBindingName; +} + +extern "C" { + static NSAnimateBinding: &'static NSBindingName; +} + +extern "C" { + static NSAnimationDelayBinding: &'static NSBindingName; +} + +extern "C" { + static NSArgumentBinding: &'static NSBindingName; +} + +extern "C" { + static NSAttributedStringBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentArrayBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentArrayForMultipleSelectionBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentDictionaryBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentHeightBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentObjectBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentObjectsBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentSetBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentValuesBinding: &'static NSBindingName; +} + +extern "C" { + static NSContentWidthBinding: &'static NSBindingName; +} + +extern "C" { + static NSCriticalValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSDataBinding: &'static NSBindingName; +} + +extern "C" { + static NSDisplayPatternTitleBinding: &'static NSBindingName; +} + +extern "C" { + static NSDisplayPatternValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSDocumentEditedBinding: &'static NSBindingName; +} + +extern "C" { + static NSDoubleClickArgumentBinding: &'static NSBindingName; +} + +extern "C" { + static NSDoubleClickTargetBinding: &'static NSBindingName; +} + +extern "C" { + static NSEditableBinding: &'static NSBindingName; +} + +extern "C" { + static NSEnabledBinding: &'static NSBindingName; +} + +extern "C" { + static NSExcludedKeysBinding: &'static NSBindingName; +} + +extern "C" { + static NSFilterPredicateBinding: &'static NSBindingName; +} + +extern "C" { + static NSFontBinding: &'static NSBindingName; +} + +extern "C" { + static NSFontBoldBinding: &'static NSBindingName; +} + +extern "C" { + static NSFontFamilyNameBinding: &'static NSBindingName; +} + +extern "C" { + static NSFontItalicBinding: &'static NSBindingName; +} + +extern "C" { + static NSFontNameBinding: &'static NSBindingName; +} + +extern "C" { + static NSFontSizeBinding: &'static NSBindingName; +} + +extern "C" { + static NSHeaderTitleBinding: &'static NSBindingName; +} + +extern "C" { + static NSHiddenBinding: &'static NSBindingName; +} + +extern "C" { + static NSImageBinding: &'static NSBindingName; +} + +extern "C" { + static NSIncludedKeysBinding: &'static NSBindingName; +} + +extern "C" { + static NSInitialKeyBinding: &'static NSBindingName; +} + +extern "C" { + static NSInitialValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSIsIndeterminateBinding: &'static NSBindingName; +} + +extern "C" { + static NSLabelBinding: &'static NSBindingName; +} + +extern "C" { + static NSLocalizedKeyDictionaryBinding: &'static NSBindingName; +} + +extern "C" { + static NSManagedObjectContextBinding: &'static NSBindingName; +} + +extern "C" { + static NSMaximumRecentsBinding: &'static NSBindingName; +} + +extern "C" { + static NSMaxValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSMaxWidthBinding: &'static NSBindingName; +} + +extern "C" { + static NSMinValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSMinWidthBinding: &'static NSBindingName; +} + +extern "C" { + static NSMixedStateImageBinding: &'static NSBindingName; +} + +extern "C" { + static NSOffStateImageBinding: &'static NSBindingName; +} + +extern "C" { + static NSOnStateImageBinding: &'static NSBindingName; +} + +extern "C" { + static NSPositioningRectBinding: &'static NSBindingName; +} + +extern "C" { + static NSPredicateBinding: &'static NSBindingName; +} + +extern "C" { + static NSRecentSearchesBinding: &'static NSBindingName; +} + +extern "C" { + static NSRepresentedFilenameBinding: &'static NSBindingName; +} + +extern "C" { + static NSRowHeightBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedIdentifierBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedIndexBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedLabelBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedObjectBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedObjectsBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedTagBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectedValuesBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectionIndexesBinding: &'static NSBindingName; +} + +extern "C" { + static NSSelectionIndexPathsBinding: &'static NSBindingName; +} + +extern "C" { + static NSSortDescriptorsBinding: &'static NSBindingName; +} + +extern "C" { + static NSTargetBinding: &'static NSBindingName; +} + +extern "C" { + static NSTextColorBinding: &'static NSBindingName; +} + +extern "C" { + static NSTitleBinding: &'static NSBindingName; +} + +extern "C" { + static NSToolTipBinding: &'static NSBindingName; +} + +extern "C" { + static NSTransparentBinding: &'static NSBindingName; +} + +extern "C" { + static NSValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSValuePathBinding: &'static NSBindingName; +} + +extern "C" { + static NSValueURLBinding: &'static NSBindingName; +} + +extern "C" { + static NSVisibleBinding: &'static NSBindingName; +} + +extern "C" { + static NSWarningValueBinding: &'static NSBindingName; +} + +extern "C" { + static NSWidthBinding: &'static NSBindingName; +} + +extern "C" { + static NSAllowsEditingMultipleValuesSelectionBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSAllowsNullArgumentBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSAlwaysPresentsApplicationModalAlertsBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSConditionallySetsEditableBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSConditionallySetsEnabledBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSConditionallySetsHiddenBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSContinuouslyUpdatesValueBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSCreatesSortDescriptorBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSDeletesObjectsOnRemoveBindingsOption: &'static NSBindingOption; +} + +extern "C" { + static NSDisplayNameBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSDisplayPatternBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSContentPlacementTagBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSHandlesContentAsCompoundValueBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSInsertsNullPlaceholderBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSInvokesSeparatelyWithArrayObjectsBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSMultipleValuesPlaceholderBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSNoSelectionPlaceholderBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSNotApplicablePlaceholderBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSNullPlaceholderBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSRaisesForNotApplicableKeysBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSPredicateFormatBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSSelectorNameBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSSelectsAllWhenSettingContentBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSValidatesImmediatelyBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSValueTransformerNameBindingOption: &'static NSBindingOption; +} + +extern "C" { + static NSValueTransformerBindingOption: &'static NSBindingOption; +} + extern_methods!( /// NSEditorAndEditorRegistrationConformance unsafe impl NSManagedObjectContext {} diff --git a/icrate/src/AppKit/generated/NSLayoutConstraint.rs b/icrate/src/AppKit/generated/NSLayoutConstraint.rs index 69f5706c9..7648e8d4b 100644 --- a/icrate/src/AppKit/generated/NSLayoutConstraint.rs +++ b/icrate/src/AppKit/generated/NSLayoutConstraint.rs @@ -5,6 +5,20 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSLayoutPriorityRequired: NSLayoutPriority = 1000; + +static NSLayoutPriorityDefaultHigh: NSLayoutPriority = 750; + +static NSLayoutPriorityDragThatCanResizeWindow: NSLayoutPriority = 510; + +static NSLayoutPriorityWindowSizeStayPut: NSLayoutPriority = 500; + +static NSLayoutPriorityDragThatCannotResizeWindow: NSLayoutPriority = 490; + +static NSLayoutPriorityDefaultLow: NSLayoutPriority = 250; + +static NSLayoutPriorityFittingSizeCompression: NSLayoutPriority = 50; + pub type NSLayoutConstraintOrientation = NSInteger; pub const NSLayoutConstraintOrientationHorizontal: NSLayoutConstraintOrientation = 0; pub const NSLayoutConstraintOrientationVertical: NSLayoutConstraintOrientation = 1; @@ -253,6 +267,14 @@ extern_methods!( } ); +extern "C" { + static NSViewNoInstrinsicMetric: CGFloat; +} + +extern "C" { + static NSViewNoIntrinsicMetric: CGFloat; +} + extern_methods!( /// NSConstraintBasedLayoutLayering unsafe impl NSView { diff --git a/icrate/src/AppKit/generated/NSLevelIndicatorCell.rs b/icrate/src/AppKit/generated/NSLevelIndicatorCell.rs index 8c1f6b1d1..6b776b43d 100644 --- a/icrate/src/AppKit/generated/NSLevelIndicatorCell.rs +++ b/icrate/src/AppKit/generated/NSLevelIndicatorCell.rs @@ -83,3 +83,13 @@ extern_methods!( pub unsafe fn tickMarkValueAtIndex(&self, index: NSInteger) -> c_double; } ); + +static NSRelevancyLevelIndicatorStyle: NSLevelIndicatorStyle = NSLevelIndicatorStyleRelevancy; + +static NSContinuousCapacityLevelIndicatorStyle: NSLevelIndicatorStyle = + NSLevelIndicatorStyleContinuousCapacity; + +static NSDiscreteCapacityLevelIndicatorStyle: NSLevelIndicatorStyle = + NSLevelIndicatorStyleDiscreteCapacity; + +static NSRatingLevelIndicatorStyle: NSLevelIndicatorStyle = NSLevelIndicatorStyleRating; diff --git a/icrate/src/AppKit/generated/NSMenu.rs b/icrate/src/AppKit/generated/NSMenu.rs index 1db1c3719..a12497e0e 100644 --- a/icrate/src/AppKit/generated/NSMenu.rs +++ b/icrate/src/AppKit/generated/NSMenu.rs @@ -249,6 +249,34 @@ extern_methods!( } ); +extern "C" { + static NSMenuWillSendActionNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMenuDidSendActionNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMenuDidAddItemNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMenuDidRemoveItemNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMenuDidChangeItemNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMenuDidBeginTrackingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMenuDidEndTrackingNotification: &'static NSNotificationName; +} + extern_methods!( /// NSDeprecated unsafe impl NSMenu { diff --git a/icrate/src/AppKit/generated/NSMenuItem.rs b/icrate/src/AppKit/generated/NSMenuItem.rs index 8c490548b..ad5533ff5 100644 --- a/icrate/src/AppKit/generated/NSMenuItem.rs +++ b/icrate/src/AppKit/generated/NSMenuItem.rs @@ -217,6 +217,10 @@ extern_methods!( } ); +extern "C" { + static NSMenuItemImportFromDeviceIdentifier: &'static NSUserInterfaceItemIdentifier; +} + extern_methods!( /// NSDeprecated unsafe impl NSMenuItem { diff --git a/icrate/src/AppKit/generated/NSNib.rs b/icrate/src/AppKit/generated/NSNib.rs index dc33a6df5..863458d5c 100644 --- a/icrate/src/AppKit/generated/NSNib.rs +++ b/icrate/src/AppKit/generated/NSNib.rs @@ -64,3 +64,11 @@ extern_methods!( ) -> bool; } ); + +extern "C" { + static NSNibOwner: &'static NSString; +} + +extern "C" { + static NSNibTopLevelObjects: &'static NSString; +} diff --git a/icrate/src/AppKit/generated/NSOpenGL.rs b/icrate/src/AppKit/generated/NSOpenGL.rs index 5865f8900..596f28d5e 100644 --- a/icrate/src/AppKit/generated/NSOpenGL.rs +++ b/icrate/src/AppKit/generated/NSOpenGL.rs @@ -302,3 +302,43 @@ extern_methods!( ); } ); + +static NSOpenGLCPSwapInterval: NSOpenGLContextParameter = NSOpenGLContextParameterSwapInterval; + +static NSOpenGLCPSurfaceOrder: NSOpenGLContextParameter = NSOpenGLContextParameterSurfaceOrder; + +static NSOpenGLCPSurfaceOpacity: NSOpenGLContextParameter = NSOpenGLContextParameterSurfaceOpacity; + +static NSOpenGLCPSurfaceBackingSize: NSOpenGLContextParameter = + NSOpenGLContextParameterSurfaceBackingSize; + +static NSOpenGLCPReclaimResources: NSOpenGLContextParameter = + NSOpenGLContextParameterReclaimResources; + +static NSOpenGLCPCurrentRendererID: NSOpenGLContextParameter = + NSOpenGLContextParameterCurrentRendererID; + +static NSOpenGLCPGPUVertexProcessing: NSOpenGLContextParameter = + NSOpenGLContextParameterGPUVertexProcessing; + +static NSOpenGLCPGPUFragmentProcessing: NSOpenGLContextParameter = + NSOpenGLContextParameterGPUFragmentProcessing; + +static NSOpenGLCPHasDrawable: NSOpenGLContextParameter = NSOpenGLContextParameterHasDrawable; + +static NSOpenGLCPMPSwapsInFlight: NSOpenGLContextParameter = + NSOpenGLContextParameterMPSwapsInFlight; + +static NSOpenGLCPSwapRectangle: NSOpenGLContextParameter = NSOpenGLContextParameterSwapRectangle; + +static NSOpenGLCPSwapRectangleEnable: NSOpenGLContextParameter = + NSOpenGLContextParameterSwapRectangleEnable; + +static NSOpenGLCPRasterizationEnable: NSOpenGLContextParameter = + NSOpenGLContextParameterRasterizationEnable; + +static NSOpenGLCPStateValidation: NSOpenGLContextParameter = + NSOpenGLContextParameterStateValidation; + +static NSOpenGLCPSurfaceSurfaceVolatile: NSOpenGLContextParameter = + NSOpenGLContextParameterSurfaceSurfaceVolatile; diff --git a/icrate/src/AppKit/generated/NSOutlineView.rs b/icrate/src/AppKit/generated/NSOutlineView.rs index 92a9f0ac3..289214fac 100644 --- a/icrate/src/AppKit/generated/NSOutlineView.rs +++ b/icrate/src/AppKit/generated/NSOutlineView.rs @@ -187,3 +187,43 @@ extern_methods!( pub type NSOutlineViewDataSource = NSObject; pub type NSOutlineViewDelegate = NSObject; + +extern "C" { + static NSOutlineViewDisclosureButtonKey: &'static NSUserInterfaceItemIdentifier; +} + +extern "C" { + static NSOutlineViewShowHideButtonKey: &'static NSUserInterfaceItemIdentifier; +} + +extern "C" { + static NSOutlineViewSelectionDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewColumnDidMoveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewColumnDidResizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewSelectionIsChangingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewItemWillExpandNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewItemDidExpandNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewItemWillCollapseNotification: &'static NSNotificationName; +} + +extern "C" { + static NSOutlineViewItemDidCollapseNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSParagraphStyle.rs b/icrate/src/AppKit/generated/NSParagraphStyle.rs index 7ef516845..b3f8e21a0 100644 --- a/icrate/src/AppKit/generated/NSParagraphStyle.rs +++ b/icrate/src/AppKit/generated/NSParagraphStyle.rs @@ -21,6 +21,10 @@ pub const NSLineBreakStrategyStandard: NSLineBreakStrategy = 0xFFFF; pub type NSTextTabOptionKey = NSString; +extern "C" { + static NSTabColumnTerminatorsAttributeName: &'static NSTextTabOptionKey; +} + extern_class!( #[derive(Debug)] pub struct NSTextTab; diff --git a/icrate/src/AppKit/generated/NSPasteboard.rs b/icrate/src/AppKit/generated/NSPasteboard.rs index 72e31ea0f..701068204 100644 --- a/icrate/src/AppKit/generated/NSPasteboard.rs +++ b/icrate/src/AppKit/generated/NSPasteboard.rs @@ -7,13 +7,105 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSPasteboardType = NSString; +extern "C" { + static NSPasteboardTypeString: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypePDF: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeTIFF: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypePNG: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeRTF: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeRTFD: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeHTML: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeTabularText: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeFont: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeRuler: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeColor: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeSound: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeMultipleTextSelection: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeTextFinderOptions: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeURL: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeFileURL: &'static NSPasteboardType; +} + pub type NSPasteboardName = NSString; +extern "C" { + static NSPasteboardNameGeneral: &'static NSPasteboardName; +} + +extern "C" { + static NSPasteboardNameFont: &'static NSPasteboardName; +} + +extern "C" { + static NSPasteboardNameRuler: &'static NSPasteboardName; +} + +extern "C" { + static NSPasteboardNameFind: &'static NSPasteboardName; +} + +extern "C" { + static NSPasteboardNameDrag: &'static NSPasteboardName; +} + pub type NSPasteboardContentsOptions = NSUInteger; pub const NSPasteboardContentsCurrentHostOnly: NSPasteboardContentsOptions = 1 << 0; pub type NSPasteboardReadingOptionKey = NSString; +extern "C" { + static NSPasteboardURLReadingFileURLsOnlyKey: &'static NSPasteboardReadingOptionKey; +} + +extern "C" { + static NSPasteboardURLReadingContentsConformToTypesKey: &'static NSPasteboardReadingOptionKey; +} + extern_class!( #[derive(Debug)] pub struct NSPasteboard; @@ -231,3 +323,103 @@ extern_methods!( pub unsafe fn readFileWrapper(&self) -> Option>; } ); + +extern "C" { + static NSFileContentsPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSStringPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSFilenamesPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSTIFFPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSRTFPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSTabularTextPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSFontPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSRulerPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSColorPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSRTFDPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSHTMLPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSURLPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSPDFPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSMultipleTextSelectionPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSPostScriptPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSVCardPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSInkTextPboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSFilesPromisePboardType: &'static NSPasteboardType; +} + +extern "C" { + static NSPasteboardTypeFindPanelSearchOptions: &'static NSPasteboardType; +} + +extern "C" { + static NSGeneralPboard: &'static NSPasteboardName; +} + +extern "C" { + static NSFontPboard: &'static NSPasteboardName; +} + +extern "C" { + static NSRulerPboard: &'static NSPasteboardName; +} + +extern "C" { + static NSFindPboard: &'static NSPasteboardName; +} + +extern "C" { + static NSDragPboard: &'static NSPasteboardName; +} + +extern "C" { + static NSPICTPboardType: &'static NSPasteboardType; +} diff --git a/icrate/src/AppKit/generated/NSPopUpButton.rs b/icrate/src/AppKit/generated/NSPopUpButton.rs index 0740c2721..ea7a9b760 100644 --- a/icrate/src/AppKit/generated/NSPopUpButton.rs +++ b/icrate/src/AppKit/generated/NSPopUpButton.rs @@ -136,3 +136,7 @@ extern_methods!( pub unsafe fn titleOfSelectedItem(&self) -> Option>; } ); + +extern "C" { + static NSPopUpButtonWillPopUpNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSPopUpButtonCell.rs b/icrate/src/AppKit/generated/NSPopUpButtonCell.rs index c1f5a4ee6..137ef97a9 100644 --- a/icrate/src/AppKit/generated/NSPopUpButtonCell.rs +++ b/icrate/src/AppKit/generated/NSPopUpButtonCell.rs @@ -168,3 +168,7 @@ extern_methods!( pub unsafe fn setArrowPosition(&self, arrowPosition: NSPopUpArrowPosition); } ); + +extern "C" { + static NSPopUpButtonCellWillPopUpNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSPopover.rs b/icrate/src/AppKit/generated/NSPopover.rs index 15b0e8d51..32378c329 100644 --- a/icrate/src/AppKit/generated/NSPopover.rs +++ b/icrate/src/AppKit/generated/NSPopover.rs @@ -98,6 +98,34 @@ extern_methods!( } ); +extern "C" { + static NSPopoverCloseReasonKey: &'static NSString; +} + pub type NSPopoverCloseReasonValue = NSString; +extern "C" { + static NSPopoverCloseReasonStandard: &'static NSPopoverCloseReasonValue; +} + +extern "C" { + static NSPopoverCloseReasonDetachToWindow: &'static NSPopoverCloseReasonValue; +} + +extern "C" { + static NSPopoverWillShowNotification: &'static NSNotificationName; +} + +extern "C" { + static NSPopoverDidShowNotification: &'static NSNotificationName; +} + +extern "C" { + static NSPopoverWillCloseNotification: &'static NSNotificationName; +} + +extern "C" { + static NSPopoverDidCloseNotification: &'static NSNotificationName; +} + pub type NSPopoverDelegate = NSObject; diff --git a/icrate/src/AppKit/generated/NSPrintInfo.rs b/icrate/src/AppKit/generated/NSPrintInfo.rs index 28555fc83..593cf78fc 100644 --- a/icrate/src/AppKit/generated/NSPrintInfo.rs +++ b/icrate/src/AppKit/generated/NSPrintInfo.rs @@ -16,8 +16,144 @@ pub const NSPrintingPaginationModeClip: NSPrintingPaginationMode = 2; pub type NSPrintInfoAttributeKey = NSString; +extern "C" { + static NSPrintPaperName: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintPaperSize: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintOrientation: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintScalingFactor: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintLeftMargin: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintRightMargin: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintTopMargin: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintBottomMargin: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintHorizontallyCentered: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintVerticallyCentered: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintHorizontalPagination: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintVerticalPagination: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintPrinter: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintCopies: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintAllPages: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintFirstPage: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintLastPage: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintMustCollate: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintReversePageOrder: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintJobDisposition: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintPagesAcross: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintPagesDown: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintTime: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintDetailedErrorReporting: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintFaxNumber: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintPrinterName: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintSelectionOnly: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintJobSavingURL: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintJobSavingFileNameExtensionHidden: &'static NSPrintInfoAttributeKey; +} + +extern "C" { + static NSPrintHeaderAndFooter: &'static NSPrintInfoAttributeKey; +} + pub type NSPrintJobDispositionValue = NSString; +extern "C" { + static NSPrintSpoolJob: &'static NSPrintJobDispositionValue; +} + +extern "C" { + static NSPrintPreviewJob: &'static NSPrintJobDispositionValue; +} + +extern "C" { + static NSPrintSaveJob: &'static NSPrintJobDispositionValue; +} + +extern "C" { + static NSPrintCancelJob: &'static NSPrintJobDispositionValue; +} + pub type NSPrintInfoSettingKey = NSString; extern_class!( @@ -195,6 +331,36 @@ extern_methods!( } ); +extern "C" { + static NSPrintFormName: &'static NSString; +} + +extern "C" { + static NSPrintJobFeatures: &'static NSString; +} + +extern "C" { + static NSPrintManualFeed: &'static NSString; +} + +extern "C" { + static NSPrintPagesPerSheet: &'static NSString; +} + +extern "C" { + static NSPrintPaperFeed: &'static NSString; +} + +extern "C" { + static NSPrintSavePath: &'static NSString; +} + pub type NSPrintingOrientation = NSUInteger; pub const NSPortraitOrientation: NSPrintingOrientation = 0; pub const NSLandscapeOrientation: NSPrintingOrientation = 1; + +static NSAutoPagination: NSPrintingPaginationMode = NSPrintingPaginationModeAutomatic; + +static NSFitPagination: NSPrintingPaginationMode = NSPrintingPaginationModeFit; + +static NSClipPagination: NSPrintingPaginationMode = NSPrintingPaginationModeClip; diff --git a/icrate/src/AppKit/generated/NSPrintOperation.rs b/icrate/src/AppKit/generated/NSPrintOperation.rs index e27183c80..ca8eedc61 100644 --- a/icrate/src/AppKit/generated/NSPrintOperation.rs +++ b/icrate/src/AppKit/generated/NSPrintOperation.rs @@ -15,6 +15,10 @@ pub type NSPrintRenderingQuality = NSInteger; pub const NSPrintRenderingQualityBest: NSPrintRenderingQuality = 0; pub const NSPrintRenderingQualityResponsive: NSPrintRenderingQuality = 1; +extern "C" { + static NSPrintOperationExistsException: &'static NSExceptionName; +} + extern_class!( #[derive(Debug)] pub struct NSPrintOperation; diff --git a/icrate/src/AppKit/generated/NSPrintPanel.rs b/icrate/src/AppKit/generated/NSPrintPanel.rs index 17499ef2d..e30da3c10 100644 --- a/icrate/src/AppKit/generated/NSPrintPanel.rs +++ b/icrate/src/AppKit/generated/NSPrintPanel.rs @@ -17,8 +17,28 @@ pub const NSPrintPanelShowsPreview: NSPrintPanelOptions = 1 << 17; pub type NSPrintPanelJobStyleHint = NSString; +extern "C" { + static NSPrintPhotoJobStyleHint: &'static NSPrintPanelJobStyleHint; +} + +extern "C" { + static NSPrintAllPresetsJobStyleHint: &'static NSPrintPanelJobStyleHint; +} + +extern "C" { + static NSPrintNoPresetsJobStyleHint: &'static NSPrintPanelJobStyleHint; +} + pub type NSPrintPanelAccessorySummaryKey = NSString; +extern "C" { + static NSPrintPanelAccessorySummaryItemNameKey: &'static NSPrintPanelAccessorySummaryKey; +} + +extern "C" { + static NSPrintPanelAccessorySummaryItemDescriptionKey: &'static NSPrintPanelAccessorySummaryKey; +} + pub type NSPrintPanelAccessorizing = NSObject; extern_class!( diff --git a/icrate/src/AppKit/generated/NSProgressIndicator.rs b/icrate/src/AppKit/generated/NSProgressIndicator.rs index f7b99d107..4e28211c5 100644 --- a/icrate/src/AppKit/generated/NSProgressIndicator.rs +++ b/icrate/src/AppKit/generated/NSProgressIndicator.rs @@ -100,6 +100,11 @@ pub const NSProgressIndicatorPreferredSmallThickness: NSProgressIndicatorThickne pub const NSProgressIndicatorPreferredLargeThickness: NSProgressIndicatorThickness = 18; pub const NSProgressIndicatorPreferredAquaThickness: NSProgressIndicatorThickness = 12; +static NSProgressIndicatorBarStyle: NSProgressIndicatorStyle = NSProgressIndicatorStyleBar; + +static NSProgressIndicatorSpinningStyle: NSProgressIndicatorStyle = + NSProgressIndicatorStyleSpinning; + extern_methods!( /// NSProgressIndicatorDeprecated unsafe impl NSProgressIndicator { diff --git a/icrate/src/AppKit/generated/NSRuleEditor.rs b/icrate/src/AppKit/generated/NSRuleEditor.rs index 6302cedd3..3378747ff 100644 --- a/icrate/src/AppKit/generated/NSRuleEditor.rs +++ b/icrate/src/AppKit/generated/NSRuleEditor.rs @@ -7,6 +7,34 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSRuleEditorPredicatePartKey = NSString; +extern "C" { + static NSRuleEditorPredicateLeftExpression: &'static NSRuleEditorPredicatePartKey; +} + +extern "C" { + static NSRuleEditorPredicateRightExpression: &'static NSRuleEditorPredicatePartKey; +} + +extern "C" { + static NSRuleEditorPredicateComparisonModifier: &'static NSRuleEditorPredicatePartKey; +} + +extern "C" { + static NSRuleEditorPredicateOptions: &'static NSRuleEditorPredicatePartKey; +} + +extern "C" { + static NSRuleEditorPredicateOperatorType: &'static NSRuleEditorPredicatePartKey; +} + +extern "C" { + static NSRuleEditorPredicateCustomSelector: &'static NSRuleEditorPredicatePartKey; +} + +extern "C" { + static NSRuleEditorPredicateCompoundType: &'static NSRuleEditorPredicatePartKey; +} + pub type NSRuleEditorNestingMode = NSUInteger; pub const NSRuleEditorNestingModeSingle: NSRuleEditorNestingMode = 0; pub const NSRuleEditorNestingModeList: NSRuleEditorNestingMode = 1; @@ -184,3 +212,7 @@ extern_methods!( ); pub type NSRuleEditorDelegate = NSObject; + +extern "C" { + static NSRuleEditorRowsDidChangeNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSRulerView.rs b/icrate/src/AppKit/generated/NSRulerView.rs index f57472f9c..8f86d7d4f 100644 --- a/icrate/src/AppKit/generated/NSRulerView.rs +++ b/icrate/src/AppKit/generated/NSRulerView.rs @@ -11,6 +11,22 @@ pub const NSVerticalRuler: NSRulerOrientation = 1; pub type NSRulerViewUnitName = NSString; +extern "C" { + static NSRulerViewUnitInches: &'static NSRulerViewUnitName; +} + +extern "C" { + static NSRulerViewUnitCentimeters: &'static NSRulerViewUnitName; +} + +extern "C" { + static NSRulerViewUnitPoints: &'static NSRulerViewUnitName; +} + +extern "C" { + static NSRulerViewUnitPicas: &'static NSRulerViewUnitName; +} + extern_class!( #[derive(Debug)] pub struct NSRulerView; diff --git a/icrate/src/AppKit/generated/NSScreen.rs b/icrate/src/AppKit/generated/NSScreen.rs index 3acd3ce05..b2f1eca50 100644 --- a/icrate/src/AppKit/generated/NSScreen.rs +++ b/icrate/src/AppKit/generated/NSScreen.rs @@ -81,6 +81,10 @@ extern_methods!( } ); +extern "C" { + static NSScreenColorSpaceDidChangeNotification: &'static NSNotificationName; +} + extern_methods!( unsafe impl NSScreen { #[method(maximumExtendedDynamicRangeColorComponentValue)] diff --git a/icrate/src/AppKit/generated/NSScrollView.rs b/icrate/src/AppKit/generated/NSScrollView.rs index 2e3fe765e..31dae38e5 100644 --- a/icrate/src/AppKit/generated/NSScrollView.rs +++ b/icrate/src/AppKit/generated/NSScrollView.rs @@ -285,6 +285,26 @@ extern_methods!( } ); +extern "C" { + static NSScrollViewWillStartLiveMagnifyNotification: &'static NSNotificationName; +} + +extern "C" { + static NSScrollViewDidEndLiveMagnifyNotification: &'static NSNotificationName; +} + +extern "C" { + static NSScrollViewWillStartLiveScrollNotification: &'static NSNotificationName; +} + +extern "C" { + static NSScrollViewDidLiveScrollNotification: &'static NSNotificationName; +} + +extern "C" { + static NSScrollViewDidEndLiveScrollNotification: &'static NSNotificationName; +} + extern_methods!( /// NSRulerSupport unsafe impl NSScrollView { diff --git a/icrate/src/AppKit/generated/NSScroller.rs b/icrate/src/AppKit/generated/NSScroller.rs index a3410d018..21cacfd60 100644 --- a/icrate/src/AppKit/generated/NSScroller.rs +++ b/icrate/src/AppKit/generated/NSScroller.rs @@ -101,6 +101,10 @@ extern_methods!( } ); +extern "C" { + static NSPreferredScrollerStyleDidChangeNotification: &'static NSNotificationName; +} + pub type NSScrollArrowPosition = NSUInteger; pub const NSScrollerArrowsMaxEnd: NSScrollArrowPosition = 0; pub const NSScrollerArrowsMinEnd: NSScrollArrowPosition = 1; diff --git a/icrate/src/AppKit/generated/NSSearchFieldCell.rs b/icrate/src/AppKit/generated/NSSearchFieldCell.rs index 5fb3a0753..6600bbeec 100644 --- a/icrate/src/AppKit/generated/NSSearchFieldCell.rs +++ b/icrate/src/AppKit/generated/NSSearchFieldCell.rs @@ -5,6 +5,14 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSSearchFieldRecentsTitleMenuItemTag: NSInteger = 1000; + +static NSSearchFieldRecentsMenuItemTag: NSInteger = 1001; + +static NSSearchFieldClearRecentsMenuItemTag: NSInteger = 1002; + +static NSSearchFieldNoRecentsMenuItemTag: NSInteger = 1003; + extern_class!( #[derive(Debug)] pub struct NSSearchFieldCell; diff --git a/icrate/src/AppKit/generated/NSSharingService.rs b/icrate/src/AppKit/generated/NSSharingService.rs index 183d94eed..a542c7e67 100644 --- a/icrate/src/AppKit/generated/NSSharingService.rs +++ b/icrate/src/AppKit/generated/NSSharingService.rs @@ -7,6 +7,86 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSSharingServiceName = NSString; +extern "C" { + static NSSharingServiceNameComposeEmail: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameComposeMessage: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameSendViaAirDrop: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameAddToSafariReadingList: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameAddToIPhoto: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameAddToAperture: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameUseAsDesktopPicture: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostOnFacebook: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostOnTwitter: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostOnSinaWeibo: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostOnTencentWeibo: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostOnLinkedIn: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameUseAsTwitterProfileImage: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameUseAsFacebookProfileImage: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameUseAsLinkedInProfileImage: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostImageOnFlickr: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostVideoOnVimeo: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostVideoOnYouku: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNamePostVideoOnTudou: &'static NSSharingServiceName; +} + +extern "C" { + static NSSharingServiceNameCloudSharing: &'static NSSharingServiceName; +} + extern_class!( #[derive(Debug)] pub struct NSSharingService; diff --git a/icrate/src/AppKit/generated/NSSliderCell.rs b/icrate/src/AppKit/generated/NSSliderCell.rs index 66a9bec81..7e2d30e34 100644 --- a/icrate/src/AppKit/generated/NSSliderCell.rs +++ b/icrate/src/AppKit/generated/NSSliderCell.rs @@ -165,3 +165,15 @@ extern_methods!( pub unsafe fn image(&self) -> Option>; } ); + +static NSTickMarkBelow: NSTickMarkPosition = NSTickMarkPositionBelow; + +static NSTickMarkAbove: NSTickMarkPosition = NSTickMarkPositionAbove; + +static NSTickMarkLeft: NSTickMarkPosition = NSTickMarkPositionLeading; + +static NSTickMarkRight: NSTickMarkPosition = NSTickMarkPositionTrailing; + +static NSLinearSlider: NSSliderType = NSSliderTypeLinear; + +static NSCircularSlider: NSSliderType = NSSliderTypeCircular; diff --git a/icrate/src/AppKit/generated/NSSliderTouchBarItem.rs b/icrate/src/AppKit/generated/NSSliderTouchBarItem.rs index 26aa44460..d92bc26e1 100644 --- a/icrate/src/AppKit/generated/NSSliderTouchBarItem.rs +++ b/icrate/src/AppKit/generated/NSSliderTouchBarItem.rs @@ -7,6 +7,14 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSSliderAccessoryWidth = CGFloat; +extern "C" { + static NSSliderAccessoryWidthDefault: NSSliderAccessoryWidth; +} + +extern "C" { + static NSSliderAccessoryWidthWide: NSSliderAccessoryWidth; +} + extern_class!( #[derive(Debug)] pub struct NSSliderTouchBarItem; diff --git a/icrate/src/AppKit/generated/NSSound.rs b/icrate/src/AppKit/generated/NSSound.rs index 1783156a8..6d8cd449f 100644 --- a/icrate/src/AppKit/generated/NSSound.rs +++ b/icrate/src/AppKit/generated/NSSound.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSSoundPboardType: &'static NSPasteboardType; +} + pub type NSSoundName = NSString; pub type NSSoundPlaybackDeviceIdentifier = NSString; diff --git a/icrate/src/AppKit/generated/NSSpeechSynthesizer.rs b/icrate/src/AppKit/generated/NSSpeechSynthesizer.rs index 8c861ac41..bd63125dd 100644 --- a/icrate/src/AppKit/generated/NSSpeechSynthesizer.rs +++ b/icrate/src/AppKit/generated/NSSpeechSynthesizer.rs @@ -9,12 +9,152 @@ pub type NSSpeechSynthesizerVoiceName = NSString; pub type NSVoiceAttributeKey = NSString; +extern "C" { + static NSVoiceName: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceIdentifier: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceAge: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceGender: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceDemoText: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceLocaleIdentifier: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceSupportedCharacters: &'static NSVoiceAttributeKey; +} + +extern "C" { + static NSVoiceIndividuallySpokenCharacters: &'static NSVoiceAttributeKey; +} + pub type NSSpeechDictionaryKey = NSString; +extern "C" { + static NSSpeechDictionaryLocaleIdentifier: &'static NSSpeechDictionaryKey; +} + +extern "C" { + static NSSpeechDictionaryModificationDate: &'static NSSpeechDictionaryKey; +} + +extern "C" { + static NSSpeechDictionaryPronunciations: &'static NSSpeechDictionaryKey; +} + +extern "C" { + static NSSpeechDictionaryAbbreviations: &'static NSSpeechDictionaryKey; +} + +extern "C" { + static NSSpeechDictionaryEntrySpelling: &'static NSSpeechDictionaryKey; +} + +extern "C" { + static NSSpeechDictionaryEntryPhonemes: &'static NSSpeechDictionaryKey; +} + pub type NSVoiceGenderName = NSString; +extern "C" { + static NSVoiceGenderNeuter: &'static NSVoiceGenderName; +} + +extern "C" { + static NSVoiceGenderMale: &'static NSVoiceGenderName; +} + +extern "C" { + static NSVoiceGenderFemale: &'static NSVoiceGenderName; +} + +extern "C" { + static NSVoiceGenderNeutral: &'static NSVoiceGenderName; +} + pub type NSSpeechPropertyKey = NSString; +extern "C" { + static NSSpeechStatusProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechErrorsProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechInputModeProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechCharacterModeProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechNumberModeProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechRateProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechPitchBaseProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechPitchModProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechVolumeProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechSynthesizerInfoProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechRecentSyncProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechPhonemeSymbolsProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechCurrentVoiceProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechCommandDelimiterProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechResetProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSSpeechOutputToFileURLProperty: &'static NSSpeechPropertyKey; +} + +extern "C" { + static NSVoiceLanguage: &'static NSVoiceAttributeKey; +} + pub type NSSpeechBoundary = NSUInteger; pub const NSSpeechImmediateBoundary: NSSpeechBoundary = 0; pub const NSSpeechWordBoundary: NSSpeechBoundary = 1; @@ -130,12 +270,100 @@ pub type NSSpeechSynthesizerDelegate = NSObject; pub type NSSpeechMode = NSString; +extern "C" { + static NSSpeechModeText: &'static NSSpeechMode; +} + +extern "C" { + static NSSpeechModePhoneme: &'static NSSpeechMode; +} + +extern "C" { + static NSSpeechModeNormal: &'static NSSpeechMode; +} + +extern "C" { + static NSSpeechModeLiteral: &'static NSSpeechMode; +} + pub type NSSpeechStatusKey = NSString; +extern "C" { + static NSSpeechStatusOutputBusy: &'static NSSpeechStatusKey; +} + +extern "C" { + static NSSpeechStatusOutputPaused: &'static NSSpeechStatusKey; +} + +extern "C" { + static NSSpeechStatusNumberOfCharactersLeft: &'static NSSpeechStatusKey; +} + +extern "C" { + static NSSpeechStatusPhonemeCode: &'static NSSpeechStatusKey; +} + pub type NSSpeechErrorKey = NSString; +extern "C" { + static NSSpeechErrorCount: &'static NSSpeechErrorKey; +} + +extern "C" { + static NSSpeechErrorOldestCode: &'static NSSpeechErrorKey; +} + +extern "C" { + static NSSpeechErrorOldestCharacterOffset: &'static NSSpeechErrorKey; +} + +extern "C" { + static NSSpeechErrorNewestCode: &'static NSSpeechErrorKey; +} + +extern "C" { + static NSSpeechErrorNewestCharacterOffset: &'static NSSpeechErrorKey; +} + pub type NSSpeechSynthesizerInfoKey = NSString; +extern "C" { + static NSSpeechSynthesizerInfoIdentifier: &'static NSSpeechSynthesizerInfoKey; +} + +extern "C" { + static NSSpeechSynthesizerInfoVersion: &'static NSSpeechSynthesizerInfoKey; +} + pub type NSSpeechPhonemeInfoKey = NSString; +extern "C" { + static NSSpeechPhonemeInfoOpcode: &'static NSSpeechPhonemeInfoKey; +} + +extern "C" { + static NSSpeechPhonemeInfoSymbol: &'static NSSpeechPhonemeInfoKey; +} + +extern "C" { + static NSSpeechPhonemeInfoExample: &'static NSSpeechPhonemeInfoKey; +} + +extern "C" { + static NSSpeechPhonemeInfoHiliteStart: &'static NSSpeechPhonemeInfoKey; +} + +extern "C" { + static NSSpeechPhonemeInfoHiliteEnd: &'static NSSpeechPhonemeInfoKey; +} + pub type NSSpeechCommandDelimiterKey = NSString; + +extern "C" { + static NSSpeechCommandPrefix: &'static NSSpeechCommandDelimiterKey; +} + +extern "C" { + static NSSpeechCommandSuffix: &'static NSSpeechCommandDelimiterKey; +} diff --git a/icrate/src/AppKit/generated/NSSpellChecker.rs b/icrate/src/AppKit/generated/NSSpellChecker.rs index fb004a2c3..b6b2d33c9 100644 --- a/icrate/src/AppKit/generated/NSSpellChecker.rs +++ b/icrate/src/AppKit/generated/NSSpellChecker.rs @@ -7,6 +7,46 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSTextCheckingOptionKey = NSString; +extern "C" { + static NSTextCheckingOrthographyKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingQuotesKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingReplacementsKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingReferenceDateKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingReferenceTimeZoneKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingDocumentURLKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingDocumentTitleKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingDocumentAuthorKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingRegularExpressionsKey: &'static NSTextCheckingOptionKey; +} + +extern "C" { + static NSTextCheckingSelectedRangeKey: &'static NSTextCheckingOptionKey; +} + pub type NSCorrectionResponse = NSInteger; pub const NSCorrectionResponseNone: NSCorrectionResponse = 0; pub const NSCorrectionResponseAccepted: NSCorrectionResponse = 1; @@ -320,6 +360,38 @@ extern_methods!( } ); +extern "C" { + static NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification: + &'static NSNotificationName; +} + +extern "C" { + static NSSpellCheckerDidChangeAutomaticTextReplacementNotification: &'static NSNotificationName; +} + +extern "C" { + static NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification: + &'static NSNotificationName; +} + +extern "C" { + static NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification: + &'static NSNotificationName; +} + +extern "C" { + static NSSpellCheckerDidChangeAutomaticCapitalizationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSSpellCheckerDidChangeAutomaticPeriodSubstitutionNotification: + &'static NSNotificationName; +} + +extern "C" { + static NSSpellCheckerDidChangeAutomaticTextCompletionNotification: &'static NSNotificationName; +} + extern_methods!( /// NSDeprecated unsafe impl NSSpellChecker { diff --git a/icrate/src/AppKit/generated/NSSplitView.rs b/icrate/src/AppKit/generated/NSSplitView.rs index 73a6f1972..bb804f08b 100644 --- a/icrate/src/AppKit/generated/NSSplitView.rs +++ b/icrate/src/AppKit/generated/NSSplitView.rs @@ -121,6 +121,14 @@ extern_methods!( pub type NSSplitViewDelegate = NSObject; +extern "C" { + static NSSplitViewWillResizeSubviewsNotification: &'static NSNotificationName; +} + +extern "C" { + static NSSplitViewDidResizeSubviewsNotification: &'static NSNotificationName; +} + extern_methods!( /// NSDeprecated unsafe impl NSSplitView { diff --git a/icrate/src/AppKit/generated/NSSplitViewController.rs b/icrate/src/AppKit/generated/NSSplitViewController.rs index a8a379f57..8f1a6f653 100644 --- a/icrate/src/AppKit/generated/NSSplitViewController.rs +++ b/icrate/src/AppKit/generated/NSSplitViewController.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSSplitViewControllerAutomaticDimension: CGFloat; +} + extern_class!( #[derive(Debug)] pub struct NSSplitViewController; diff --git a/icrate/src/AppKit/generated/NSSplitViewItem.rs b/icrate/src/AppKit/generated/NSSplitViewItem.rs index 614ee63c6..5690dcd55 100644 --- a/icrate/src/AppKit/generated/NSSplitViewItem.rs +++ b/icrate/src/AppKit/generated/NSSplitViewItem.rs @@ -18,6 +18,10 @@ pub const NSSplitViewItemCollapseBehaviorPreferResizingSiblingsWithFixedSplitVie NSSplitViewItemCollapseBehavior = 2; pub const NSSplitViewItemCollapseBehaviorUseConstraints: NSSplitViewItemCollapseBehavior = 3; +extern "C" { + static NSSplitViewItemUnspecifiedDimension: CGFloat; +} + extern_class!( #[derive(Debug)] pub struct NSSplitViewItem; diff --git a/icrate/src/AppKit/generated/NSStackView.rs b/icrate/src/AppKit/generated/NSStackView.rs index 4cb714297..e47d30f1a 100644 --- a/icrate/src/AppKit/generated/NSStackView.rs +++ b/icrate/src/AppKit/generated/NSStackView.rs @@ -20,6 +20,14 @@ pub const NSStackViewDistributionFillProportionally: NSStackViewDistribution = 2 pub const NSStackViewDistributionEqualSpacing: NSStackViewDistribution = 3; pub const NSStackViewDistributionEqualCentering: NSStackViewDistribution = 4; +static NSStackViewVisibilityPriorityMustHold: NSStackViewVisibilityPriority = 1000; + +static NSStackViewVisibilityPriorityDetachOnlyIfNecessary: NSStackViewVisibilityPriority = 900; + +static NSStackViewVisibilityPriorityNotVisible: NSStackViewVisibilityPriority = 0; + +static NSStackViewSpacingUseDefault: CGFloat = todo; + extern_class!( #[derive(Debug)] pub struct NSStackView; diff --git a/icrate/src/AppKit/generated/NSStatusBar.rs b/icrate/src/AppKit/generated/NSStatusBar.rs index 02011f4a2..8faa80900 100644 --- a/icrate/src/AppKit/generated/NSStatusBar.rs +++ b/icrate/src/AppKit/generated/NSStatusBar.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSVariableStatusItemLength: CGFloat = -1.0; + +static NSSquareStatusItemLength: CGFloat = -2.0; + extern_class!( #[derive(Debug)] pub struct NSStatusBar; diff --git a/icrate/src/AppKit/generated/NSTabView.rs b/icrate/src/AppKit/generated/NSTabView.rs index 24316e4c3..2904b8efe 100644 --- a/icrate/src/AppKit/generated/NSTabView.rs +++ b/icrate/src/AppKit/generated/NSTabView.rs @@ -5,6 +5,8 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSAppKitVersionNumberWithDirectionalTabs: NSAppKitVersion = 631.0; + pub type NSTabViewType = NSUInteger; pub const NSTopTabsBezelBorder: NSTabViewType = 0; pub const NSLeftTabsBezelBorder: NSTabViewType = 1; diff --git a/icrate/src/AppKit/generated/NSTableView.rs b/icrate/src/AppKit/generated/NSTableView.rs index 5013502e0..64925a551 100644 --- a/icrate/src/AppKit/generated/NSTableView.rs +++ b/icrate/src/AppKit/generated/NSTableView.rs @@ -604,6 +604,26 @@ extern_methods!( pub type NSTableViewDelegate = NSObject; +extern "C" { + static NSTableViewSelectionDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTableViewColumnDidMoveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTableViewColumnDidResizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTableViewSelectionIsChangingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTableViewRowViewKey: &'static NSUserInterfaceItemIdentifier; +} + pub type NSTableViewDataSource = NSObject; extern_methods!( diff --git a/icrate/src/AppKit/generated/NSText.rs b/icrate/src/AppKit/generated/NSText.rs index 3ca2cad17..41472c2f8 100644 --- a/icrate/src/AppKit/generated/NSText.rs +++ b/icrate/src/AppKit/generated/NSText.rs @@ -268,6 +268,22 @@ pub const NSTextMovementDown: NSTextMovement = 0x16; pub const NSTextMovementCancel: NSTextMovement = 0x17; pub const NSTextMovementOther: NSTextMovement = 0; +extern "C" { + static NSTextDidBeginEditingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextDidEndEditingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextMovementUserInfoKey: &'static NSString; +} + pub const NSIllegalTextMovement: i32 = 0; pub const NSReturnTextMovement: i32 = 0x10; pub const NSTabTextMovement: i32 = 0x11; @@ -283,3 +299,13 @@ pub type NSTextDelegate = NSObject; pub const NSTextWritingDirectionEmbedding: i32 = (0 << 1); pub const NSTextWritingDirectionOverride: i32 = (1 << 1); + +static NSLeftTextAlignment: NSTextAlignment = NSTextAlignmentLeft; + +static NSRightTextAlignment: NSTextAlignment = NSTextAlignmentRight; + +static NSCenterTextAlignment: NSTextAlignment = NSTextAlignmentCenter; + +static NSJustifiedTextAlignment: NSTextAlignment = NSTextAlignmentJustified; + +static NSNaturalTextAlignment: NSTextAlignment = NSTextAlignmentNatural; diff --git a/icrate/src/AppKit/generated/NSTextAlternatives.rs b/icrate/src/AppKit/generated/NSTextAlternatives.rs index ada6b0094..69d5334a2 100644 --- a/icrate/src/AppKit/generated/NSTextAlternatives.rs +++ b/icrate/src/AppKit/generated/NSTextAlternatives.rs @@ -33,3 +33,7 @@ extern_methods!( pub unsafe fn noteSelectedAlternativeString(&self, alternativeString: &NSString); } ); + +extern "C" { + static NSTextAlternativesSelectedAlternativeStringNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSTextContent.rs b/icrate/src/AppKit/generated/NSTextContent.rs index 0b9512d5d..81703a67e 100644 --- a/icrate/src/AppKit/generated/NSTextContent.rs +++ b/icrate/src/AppKit/generated/NSTextContent.rs @@ -7,4 +7,16 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSTextContentType = NSString; +extern "C" { + static NSTextContentTypeUsername: &'static NSTextContentType; +} + +extern "C" { + static NSTextContentTypePassword: &'static NSTextContentType; +} + +extern "C" { + static NSTextContentTypeOneTimeCode: &'static NSTextContentType; +} + pub type NSTextContent = NSObject; diff --git a/icrate/src/AppKit/generated/NSTextContentManager.rs b/icrate/src/AppKit/generated/NSTextContentManager.rs index 074f84582..b06ab58e8 100644 --- a/icrate/src/AppKit/generated/NSTextContentManager.rs +++ b/icrate/src/AppKit/generated/NSTextContentManager.rs @@ -156,3 +156,7 @@ extern_methods!( ) -> Option>; } ); + +extern "C" { + static NSTextContentStorageUnsupportedAttributeAddedNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSTextFinder.rs b/icrate/src/AppKit/generated/NSTextFinder.rs index a23e569a1..bfb0f4c9c 100644 --- a/icrate/src/AppKit/generated/NSTextFinder.rs +++ b/icrate/src/AppKit/generated/NSTextFinder.rs @@ -22,6 +22,14 @@ pub const NSTextFinderActionHideReplaceInterface: NSTextFinderAction = 13; pub type NSPasteboardTypeTextFinderOptionKey = NSString; +extern "C" { + static NSTextFinderCaseInsensitiveKey: &'static NSPasteboardTypeTextFinderOptionKey; +} + +extern "C" { + static NSTextFinderMatchingTypeKey: &'static NSPasteboardTypeTextFinderOptionKey; +} + pub type NSTextFinderMatchingType = NSInteger; pub const NSTextFinderMatchingTypeContains: NSTextFinderMatchingType = 0; pub const NSTextFinderMatchingTypeStartsWith: NSTextFinderMatchingType = 1; diff --git a/icrate/src/AppKit/generated/NSTextInputContext.rs b/icrate/src/AppKit/generated/NSTextInputContext.rs index 56d06943c..8e02b3821 100644 --- a/icrate/src/AppKit/generated/NSTextInputContext.rs +++ b/icrate/src/AppKit/generated/NSTextInputContext.rs @@ -82,3 +82,7 @@ extern_methods!( ) -> Option>; } ); + +extern "C" { + static NSTextInputContextKeyboardSelectionDidChangeNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSTextList.rs b/icrate/src/AppKit/generated/NSTextList.rs index 4184d1427..db035a667 100644 --- a/icrate/src/AppKit/generated/NSTextList.rs +++ b/icrate/src/AppKit/generated/NSTextList.rs @@ -7,6 +7,74 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSTextListMarkerFormat = NSString; +extern "C" { + static NSTextListMarkerBox: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerCheck: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerCircle: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerDiamond: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerDisc: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerHyphen: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerSquare: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerLowercaseHexadecimal: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerUppercaseHexadecimal: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerOctal: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerLowercaseAlpha: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerUppercaseAlpha: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerLowercaseLatin: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerUppercaseLatin: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerLowercaseRoman: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerUppercaseRoman: &'static NSTextListMarkerFormat; +} + +extern "C" { + static NSTextListMarkerDecimal: &'static NSTextListMarkerFormat; +} + pub type NSTextListOptions = NSUInteger; pub const NSTextListPrependEnclosingMarker: NSTextListOptions = (1 << 0); diff --git a/icrate/src/AppKit/generated/NSTextStorage.rs b/icrate/src/AppKit/generated/NSTextStorage.rs index f31dc7436..a14a49fd0 100644 --- a/icrate/src/AppKit/generated/NSTextStorage.rs +++ b/icrate/src/AppKit/generated/NSTextStorage.rs @@ -77,6 +77,14 @@ extern_methods!( pub type NSTextStorageDelegate = NSObject; +extern "C" { + static NSTextStorageWillProcessEditingNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextStorageDidProcessEditingNotification: &'static NSNotificationName; +} + pub type NSTextStorageObserving = NSObject; pub type NSTextStorageEditedOptions = NSUInteger; diff --git a/icrate/src/AppKit/generated/NSTextView.rs b/icrate/src/AppKit/generated/NSTextView.rs index 2cc242d90..e727b13f5 100644 --- a/icrate/src/AppKit/generated/NSTextView.rs +++ b/icrate/src/AppKit/generated/NSTextView.rs @@ -14,6 +14,10 @@ pub type NSSelectionAffinity = NSUInteger; pub const NSSelectionAffinityUpstream: NSSelectionAffinity = 0; pub const NSSelectionAffinityDownstream: NSSelectionAffinity = 1; +extern "C" { + static NSAllRomanInputSourcesLocaleIdentifier: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSTextView; @@ -941,6 +945,50 @@ extern_methods!( pub type NSTextViewDelegate = NSObject; +extern "C" { + static NSTouchBarItemIdentifierCharacterPicker: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierTextColorPicker: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierTextStyle: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierTextAlignment: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierTextList: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierTextFormat: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTextViewWillChangeNotifyingTextViewNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextViewDidChangeSelectionNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextViewDidChangeTypingAttributesNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextViewWillSwitchToNSLayoutManagerNotification: &'static NSNotificationName; +} + +extern "C" { + static NSTextViewDidSwitchToNSLayoutManagerNotification: &'static NSNotificationName; +} + pub type NSFindPanelAction = NSUInteger; pub const NSFindPanelActionShowFindPanel: NSFindPanelAction = 1; pub const NSFindPanelActionNext: NSFindPanelAction = 2; @@ -953,8 +1001,20 @@ pub const NSFindPanelActionReplaceAllInSelection: NSFindPanelAction = 8; pub const NSFindPanelActionSelectAll: NSFindPanelAction = 9; pub const NSFindPanelActionSelectAllInSelection: NSFindPanelAction = 10; +extern "C" { + static NSFindPanelSearchOptionsPboardType: &'static NSPasteboardType; +} + pub type NSPasteboardTypeFindPanelSearchOptionKey = NSString; +extern "C" { + static NSFindPanelCaseInsensitiveSearch: &'static NSPasteboardTypeFindPanelSearchOptionKey; +} + +extern "C" { + static NSFindPanelSubstringMatch: &'static NSPasteboardTypeFindPanelSearchOptionKey; +} + pub type NSFindPanelSubstringMatchType = NSUInteger; pub const NSFindPanelSubstringMatchTypeContains: NSFindPanelSubstringMatchType = 0; pub const NSFindPanelSubstringMatchTypeStartsWith: NSFindPanelSubstringMatchType = 1; diff --git a/icrate/src/AppKit/generated/NSTokenFieldCell.rs b/icrate/src/AppKit/generated/NSTokenFieldCell.rs index f5b3553ee..43c3fd323 100644 --- a/icrate/src/AppKit/generated/NSTokenFieldCell.rs +++ b/icrate/src/AppKit/generated/NSTokenFieldCell.rs @@ -59,3 +59,9 @@ extern_methods!( ); pub type NSTokenFieldCellDelegate = NSObject; + +static NSDefaultTokenStyle: NSTokenStyle = NSTokenStyleDefault; + +static NSPlainTextTokenStyle: NSTokenStyle = NSTokenStyleNone; + +static NSRoundedTokenStyle: NSTokenStyle = NSTokenStyleRounded; diff --git a/icrate/src/AppKit/generated/NSToolbar.rs b/icrate/src/AppKit/generated/NSToolbar.rs index a535a8108..8e167dfe2 100644 --- a/icrate/src/AppKit/generated/NSToolbar.rs +++ b/icrate/src/AppKit/generated/NSToolbar.rs @@ -147,6 +147,14 @@ extern_methods!( pub type NSToolbarDelegate = NSObject; +extern "C" { + static NSToolbarWillAddItemNotification: &'static NSNotificationName; +} + +extern "C" { + static NSToolbarDidRemoveItemNotification: &'static NSNotificationName; +} + extern_methods!( /// NSDeprecated unsafe impl NSToolbar { diff --git a/icrate/src/AppKit/generated/NSToolbarItem.rs b/icrate/src/AppKit/generated/NSToolbarItem.rs index 981297780..2b9cb9268 100644 --- a/icrate/src/AppKit/generated/NSToolbarItem.rs +++ b/icrate/src/AppKit/generated/NSToolbarItem.rs @@ -7,6 +7,14 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSToolbarItemVisibilityPriority = NSInteger; +static NSToolbarItemVisibilityPriorityStandard: NSToolbarItemVisibilityPriority = 0; + +static NSToolbarItemVisibilityPriorityLow: NSToolbarItemVisibilityPriority = -1000; + +static NSToolbarItemVisibilityPriorityHigh: NSToolbarItemVisibilityPriority = 1000; + +static NSToolbarItemVisibilityPriorityUser: NSToolbarItemVisibilityPriority = 2000; + extern_class!( #[derive(Debug)] pub struct NSToolbarItem; @@ -158,3 +166,43 @@ extern_methods!( ); pub type NSCloudSharingValidation = NSObject; + +extern "C" { + static NSToolbarSeparatorItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarSpaceItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarFlexibleSpaceItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarShowColorsItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarShowFontsItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarCustomizeToolbarItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarPrintItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarToggleSidebarItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarCloudSharingItemIdentifier: &'static NSToolbarItemIdentifier; +} + +extern "C" { + static NSToolbarSidebarTrackingSeparatorItemIdentifier: &'static NSToolbarItemIdentifier; +} diff --git a/icrate/src/AppKit/generated/NSTouchBarItem.rs b/icrate/src/AppKit/generated/NSTouchBarItem.rs index a2f052f80..06e31661a 100644 --- a/icrate/src/AppKit/generated/NSTouchBarItem.rs +++ b/icrate/src/AppKit/generated/NSTouchBarItem.rs @@ -7,6 +7,12 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSTouchBarItemIdentifier = NSString; +static NSTouchBarItemPriorityHigh: NSTouchBarItemPriority = 1000; + +static NSTouchBarItemPriorityNormal: NSTouchBarItemPriority = 0; + +static NSTouchBarItemPriorityLow: NSTouchBarItemPriority = -1000; + extern_class!( #[derive(Debug)] pub struct NSTouchBarItem; @@ -52,3 +58,19 @@ extern_methods!( pub unsafe fn isVisible(&self) -> bool; } ); + +extern "C" { + static NSTouchBarItemIdentifierFixedSpaceSmall: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierFixedSpaceLarge: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierFlexibleSpace: &'static NSTouchBarItemIdentifier; +} + +extern "C" { + static NSTouchBarItemIdentifierOtherItemsProxy: &'static NSTouchBarItemIdentifier; +} diff --git a/icrate/src/AppKit/generated/NSUserActivity.rs b/icrate/src/AppKit/generated/NSUserActivity.rs index 33806a731..e96775a0a 100644 --- a/icrate/src/AppKit/generated/NSUserActivity.rs +++ b/icrate/src/AppKit/generated/NSUserActivity.rs @@ -34,3 +34,7 @@ extern_methods!( pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity); } ); + +extern "C" { + static NSUserActivityDocumentURLKey: &'static NSString; +} diff --git a/icrate/src/AppKit/generated/NSView.rs b/icrate/src/AppKit/generated/NSView.rs index f4ef944b2..74ce5518d 100644 --- a/icrate/src/AppKit/generated/NSView.rs +++ b/icrate/src/AppKit/generated/NSView.rs @@ -881,6 +881,22 @@ extern_methods!( pub type NSViewFullScreenModeOptionKey = NSString; +extern "C" { + static NSFullScreenModeAllScreens: &'static NSViewFullScreenModeOptionKey; +} + +extern "C" { + static NSFullScreenModeSetting: &'static NSViewFullScreenModeOptionKey; +} + +extern "C" { + static NSFullScreenModeWindowLevel: &'static NSViewFullScreenModeOptionKey; +} + +extern "C" { + static NSFullScreenModeApplicationPresentationOptions: &'static NSViewFullScreenModeOptionKey; +} + extern_methods!( /// NSFullScreenMode unsafe impl NSView { @@ -904,8 +920,20 @@ extern_methods!( pub type NSDefinitionOptionKey = NSString; +extern "C" { + static NSDefinitionPresentationTypeKey: &'static NSDefinitionOptionKey; +} + pub type NSDefinitionPresentationType = NSString; +extern "C" { + static NSDefinitionPresentationTypeOverlay: &'static NSDefinitionPresentationType; +} + +extern "C" { + static NSDefinitionPresentationTypeDictionaryApplication: &'static NSDefinitionPresentationType; +} + extern_methods!( /// NSDefinition unsafe impl NSView { @@ -1060,3 +1088,23 @@ extern_methods!( pub unsafe fn renewGState(&self); } ); + +extern "C" { + static NSViewFrameDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSViewFocusDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSViewBoundsDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSViewGlobalFrameDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSViewDidUpdateTrackingAreasNotification: &'static NSNotificationName; +} diff --git a/icrate/src/AppKit/generated/NSWindow.rs b/icrate/src/AppKit/generated/NSWindow.rs index 8fd8b459b..9b6b412cd 100644 --- a/icrate/src/AppKit/generated/NSWindow.rs +++ b/icrate/src/AppKit/generated/NSWindow.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSAppKitVersionNumberWithCustomSheetPosition: NSAppKitVersion = 686.0; + +static NSAppKitVersionNumberWithDeferredWindowDisplaySupport: NSAppKitVersion = 1019.0; + pub type NSWindowStyleMask = NSUInteger; pub const NSWindowStyleMaskBorderless: NSWindowStyleMask = 0; pub const NSWindowStyleMaskTitled: NSWindowStyleMask = 1 << 0; @@ -20,6 +24,10 @@ pub const NSWindowStyleMaskDocModalWindow: NSWindowStyleMask = 1 << 6; pub const NSWindowStyleMaskNonactivatingPanel: NSWindowStyleMask = 1 << 7; pub const NSWindowStyleMaskHUDWindow: NSWindowStyleMask = 1 << 13; +static NSModalResponseOK: NSModalResponse = 1; + +static NSModalResponseCancel: NSModalResponse = 0; + pub const NSDisplayWindowRunLoopOrdering: i32 = 600000; pub const NSResetCursorRectsRunLoopOrdering: i32 = 700000; @@ -59,6 +67,24 @@ pub const NSWindowOcclusionStateVisible: NSWindowOcclusionState = 1 << 1; pub type NSWindowLevel = NSInteger; +static NSNormalWindowLevel: NSWindowLevel = todo; + +static NSFloatingWindowLevel: NSWindowLevel = todo; + +static NSSubmenuWindowLevel: NSWindowLevel = todo; + +static NSTornOffMenuWindowLevel: NSWindowLevel = todo; + +static NSMainMenuWindowLevel: NSWindowLevel = todo; + +static NSStatusWindowLevel: NSWindowLevel = todo; + +static NSModalPanelWindowLevel: NSWindowLevel = todo; + +static NSPopUpMenuWindowLevel: NSWindowLevel = todo; + +static NSScreenSaverWindowLevel: NSWindowLevel = todo; + pub type NSSelectionDirection = NSUInteger; pub const NSDirectSelection: NSSelectionDirection = 0; pub const NSSelectingNext: NSSelectionDirection = 1; @@ -83,6 +109,8 @@ pub const NSWindowToolbarStylePreference: NSWindowToolbarStyle = 2; pub const NSWindowToolbarStyleUnified: NSWindowToolbarStyle = 3; pub const NSWindowToolbarStyleUnifiedCompact: NSWindowToolbarStyle = 4; +static NSEventDurationForever: NSTimeInterval = todo; + pub type NSWindowUserTabbingPreference = NSInteger; pub const NSWindowUserTabbingPreferenceManual: NSWindowUserTabbingPreference = 0; pub const NSWindowUserTabbingPreferenceAlways: NSWindowUserTabbingPreference = 1; @@ -1154,6 +1182,130 @@ extern_methods!( pub type NSWindowDelegate = NSObject; +extern "C" { + static NSWindowDidBecomeKeyNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidBecomeMainNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidChangeScreenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidDeminiaturizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidExposeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidMiniaturizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidMoveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidResignKeyNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidResignMainNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidResizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidUpdateNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillCloseNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillMiniaturizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillMoveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillBeginSheetNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidEndSheetNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidChangeBackingPropertiesNotification: &'static NSNotificationName; +} + +extern "C" { + static NSBackingPropertyOldScaleFactorKey: &'static NSString; +} + +extern "C" { + static NSBackingPropertyOldColorSpaceKey: &'static NSString; +} + +extern "C" { + static NSWindowDidChangeScreenProfileNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillStartLiveResizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidEndLiveResizeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillEnterFullScreenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidEnterFullScreenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillExitFullScreenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidExitFullScreenNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillEnterVersionBrowserNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidEnterVersionBrowserNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowWillExitVersionBrowserNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidExitVersionBrowserNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWindowDidChangeOcclusionStateNotification: &'static NSNotificationName; +} + pub type NSWindowBackingLocation = NSUInteger; pub const NSWindowBackingLocationDefault: NSWindowBackingLocation = 0; pub const NSWindowBackingLocationVideoMemory: NSWindowBackingLocation = 1; @@ -1241,3 +1393,36 @@ extern_methods!( pub unsafe fn setShowsResizeIndicator(&self, showsResizeIndicator: bool); } ); + +static NSBorderlessWindowMask: NSWindowStyleMask = NSWindowStyleMaskBorderless; + +static NSTitledWindowMask: NSWindowStyleMask = NSWindowStyleMaskTitled; + +static NSClosableWindowMask: NSWindowStyleMask = NSWindowStyleMaskClosable; + +static NSMiniaturizableWindowMask: NSWindowStyleMask = NSWindowStyleMaskMiniaturizable; + +static NSResizableWindowMask: NSWindowStyleMask = NSWindowStyleMaskResizable; + +static NSTexturedBackgroundWindowMask: NSWindowStyleMask = NSWindowStyleMaskTexturedBackground; + +static NSUnifiedTitleAndToolbarWindowMask: NSWindowStyleMask = + NSWindowStyleMaskUnifiedTitleAndToolbar; + +static NSFullScreenWindowMask: NSWindowStyleMask = NSWindowStyleMaskFullScreen; + +static NSFullSizeContentViewWindowMask: NSWindowStyleMask = NSWindowStyleMaskFullSizeContentView; + +static NSUtilityWindowMask: NSWindowStyleMask = NSWindowStyleMaskUtilityWindow; + +static NSDocModalWindowMask: NSWindowStyleMask = NSWindowStyleMaskDocModalWindow; + +static NSNonactivatingPanelMask: NSWindowStyleMask = NSWindowStyleMaskNonactivatingPanel; + +static NSHUDWindowMask: NSWindowStyleMask = NSWindowStyleMaskHUDWindow; + +static NSUnscaledWindowMask: NSWindowStyleMask = 1 << 11; + +static NSWindowFullScreenButton: NSWindowButton = 7; + +static NSDockWindowLevel: NSWindowLevel = todo; diff --git a/icrate/src/AppKit/generated/NSWindowRestoration.rs b/icrate/src/AppKit/generated/NSWindowRestoration.rs index 953f8fe0a..a73036b89 100644 --- a/icrate/src/AppKit/generated/NSWindowRestoration.rs +++ b/icrate/src/AppKit/generated/NSWindowRestoration.rs @@ -25,6 +25,10 @@ extern_methods!( } ); +extern "C" { + static NSApplicationDidFinishRestoringWindowsNotification: &'static NSNotificationName; +} + extern_methods!( /// NSUserInterfaceRestoration unsafe impl NSWindow { diff --git a/icrate/src/AppKit/generated/NSWorkspace.rs b/icrate/src/AppKit/generated/NSWorkspace.rs index 257ea4592..c344e4e72 100644 --- a/icrate/src/AppKit/generated/NSWorkspace.rs +++ b/icrate/src/AppKit/generated/NSWorkspace.rs @@ -311,6 +311,18 @@ extern_methods!( pub type NSWorkspaceDesktopImageOptionKey = NSString; +extern "C" { + static NSWorkspaceDesktopImageScalingKey: &'static NSWorkspaceDesktopImageOptionKey; +} + +extern "C" { + static NSWorkspaceDesktopImageAllowClippingKey: &'static NSWorkspaceDesktopImageOptionKey; +} + +extern "C" { + static NSWorkspaceDesktopImageFillColorKey: &'static NSWorkspaceDesktopImageOptionKey; +} + extern_methods!( /// NSDesktopImages unsafe impl NSWorkspace { @@ -376,6 +388,106 @@ extern_methods!( } ); +extern "C" { + static NSWorkspaceApplicationKey: &'static NSString; +} + +extern "C" { + static NSWorkspaceWillLaunchApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidLaunchApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidTerminateApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidHideApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidUnhideApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidActivateApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidDeactivateApplicationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceVolumeLocalizedNameKey: &'static NSString; +} + +extern "C" { + static NSWorkspaceVolumeURLKey: &'static NSString; +} + +extern "C" { + static NSWorkspaceVolumeOldLocalizedNameKey: &'static NSString; +} + +extern "C" { + static NSWorkspaceVolumeOldURLKey: &'static NSString; +} + +extern "C" { + static NSWorkspaceDidMountNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidUnmountNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceWillUnmountNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidRenameVolumeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceWillPowerOffNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceWillSleepNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidWakeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceScreensDidSleepNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceScreensDidWakeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceSessionDidBecomeActiveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceSessionDidResignActiveNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceDidChangeFileLabelsNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWorkspaceActiveSpaceDidChangeNotification: &'static NSNotificationName; +} + pub type NSWorkspaceFileOperationName = NSString; pub type NSWorkspaceLaunchOptions = NSUInteger; @@ -394,6 +506,22 @@ pub const NSWorkspaceLaunchPreferringClassic: NSWorkspaceLaunchOptions = 0x00040 pub type NSWorkspaceLaunchConfigurationKey = NSString; +extern "C" { + static NSWorkspaceLaunchConfigurationAppleEvent: &'static NSWorkspaceLaunchConfigurationKey; +} + +extern "C" { + static NSWorkspaceLaunchConfigurationArguments: &'static NSWorkspaceLaunchConfigurationKey; +} + +extern "C" { + static NSWorkspaceLaunchConfigurationEnvironment: &'static NSWorkspaceLaunchConfigurationKey; +} + +extern "C" { + static NSWorkspaceLaunchConfigurationArchitecture: &'static NSWorkspaceLaunchConfigurationKey; +} + extern_methods!( /// NSDeprecated unsafe impl NSWorkspace { @@ -589,3 +717,67 @@ extern_methods!( ) -> bool; } ); + +extern "C" { + static NSWorkspaceMoveOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceCopyOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceLinkOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceCompressOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceDecompressOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceEncryptOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceDecryptOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceDestroyOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceRecycleOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceDuplicateOperation: &'static NSWorkspaceFileOperationName; +} + +extern "C" { + static NSWorkspaceDidPerformFileOperationNotification: &'static NSNotificationName; +} + +extern "C" { + static NSPlainFileType: &'static NSString; +} + +extern "C" { + static NSDirectoryFileType: &'static NSString; +} + +extern "C" { + static NSApplicationFileType: &'static NSString; +} + +extern "C" { + static NSFilesystemFileType: &'static NSString; +} + +extern "C" { + static NSShellCommandFileType: &'static NSString; +} diff --git a/icrate/src/AppKit/generated/mod.rs b/icrate/src/AppKit/generated/mod.rs index c932bc77d..3eb6dfe6f 100644 --- a/icrate/src/AppKit/generated/mod.rs +++ b/icrate/src/AppKit/generated/mod.rs @@ -284,27 +284,193 @@ mod __exported { NSWorkspaceErrorMaximum, NSWorkspaceErrorMinimum, }; pub use super::NSATSTypesetter::NSATSTypesetter; + pub use super::NSAccessibility::NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification; pub use super::NSAccessibilityConstants::{ - NSAccessibilityActionName, NSAccessibilityAnnotationAttributeKey, + NSAccessibilityActionName, NSAccessibilityActivationPointAttribute, + NSAccessibilityAllowedValuesAttribute, NSAccessibilityAlternateUIVisibleAttribute, + NSAccessibilityAnnotationAttributeKey, NSAccessibilityAnnotationElement, + NSAccessibilityAnnotationLabel, NSAccessibilityAnnotationLocation, NSAccessibilityAnnotationPosition, NSAccessibilityAnnotationPositionEnd, NSAccessibilityAnnotationPositionFullRange, NSAccessibilityAnnotationPositionStart, - NSAccessibilityAttributeName, NSAccessibilityFontAttributeKey, NSAccessibilityLoadingToken, - NSAccessibilityNotificationName, NSAccessibilityNotificationUserInfoKey, - NSAccessibilityOrientation, NSAccessibilityOrientationHorizontal, + NSAccessibilityAnnotationTextAttribute, NSAccessibilityAnnouncementKey, + NSAccessibilityAnnouncementRequestedNotification, + NSAccessibilityApplicationActivatedNotification, + NSAccessibilityApplicationDeactivatedNotification, + NSAccessibilityApplicationHiddenNotification, NSAccessibilityApplicationRole, + NSAccessibilityApplicationShownNotification, NSAccessibilityAscendingSortDirectionValue, + NSAccessibilityAttachmentTextAttribute, NSAccessibilityAttributeName, + NSAccessibilityAttributedStringForRangeParameterizedAttribute, + NSAccessibilityAutocorrectedTextAttribute, NSAccessibilityBackgroundColorTextAttribute, + NSAccessibilityBoundsForRangeParameterizedAttribute, NSAccessibilityBrowserRole, + NSAccessibilityBusyIndicatorRole, NSAccessibilityButtonRole, NSAccessibilityCancelAction, + NSAccessibilityCancelButtonAttribute, + NSAccessibilityCellForColumnAndRowParameterizedAttribute, NSAccessibilityCellRole, + NSAccessibilityCenterTabStopMarkerTypeValue, NSAccessibilityCentimetersUnitValue, + NSAccessibilityCheckBoxRole, NSAccessibilityChildrenAttribute, + NSAccessibilityClearButtonAttribute, NSAccessibilityCloseButtonAttribute, + NSAccessibilityCloseButtonSubrole, NSAccessibilityCollectionListSubrole, + NSAccessibilityColorWellRole, NSAccessibilityColumnCountAttribute, + NSAccessibilityColumnHeaderUIElementsAttribute, NSAccessibilityColumnIndexRangeAttribute, + NSAccessibilityColumnRole, NSAccessibilityColumnTitlesAttribute, + NSAccessibilityColumnsAttribute, NSAccessibilityComboBoxRole, NSAccessibilityConfirmAction, + NSAccessibilityContainsProtectedContentAttribute, NSAccessibilityContentListSubrole, + NSAccessibilityContentsAttribute, NSAccessibilityCreatedNotification, + NSAccessibilityCriticalValueAttribute, NSAccessibilityCustomTextAttribute, + NSAccessibilityDecimalTabStopMarkerTypeValue, NSAccessibilityDecrementAction, + NSAccessibilityDecrementArrowSubrole, NSAccessibilityDecrementButtonAttribute, + NSAccessibilityDecrementPageSubrole, NSAccessibilityDefaultButtonAttribute, + NSAccessibilityDefinitionListSubrole, NSAccessibilityDeleteAction, + NSAccessibilityDescendingSortDirectionValue, NSAccessibilityDescriptionAttribute, + NSAccessibilityDescriptionListSubrole, NSAccessibilityDialogSubrole, + NSAccessibilityDisclosedByRowAttribute, NSAccessibilityDisclosedRowsAttribute, + NSAccessibilityDisclosingAttribute, NSAccessibilityDisclosureLevelAttribute, + NSAccessibilityDisclosureTriangleRole, NSAccessibilityDocumentAttribute, + NSAccessibilityDrawerCreatedNotification, NSAccessibilityDrawerRole, + NSAccessibilityEditedAttribute, NSAccessibilityEnabledAttribute, + NSAccessibilityErrorCodeExceptionInfo, NSAccessibilityExpandedAttribute, + NSAccessibilityExtrasMenuBarAttribute, NSAccessibilityFilenameAttribute, + NSAccessibilityFirstLineIndentMarkerTypeValue, NSAccessibilityFloatingWindowSubrole, + NSAccessibilityFocusedAttribute, NSAccessibilityFocusedUIElementAttribute, + NSAccessibilityFocusedUIElementChangedNotification, NSAccessibilityFocusedWindowAttribute, + NSAccessibilityFocusedWindowChangedNotification, NSAccessibilityFontAttributeKey, + NSAccessibilityFontFamilyKey, NSAccessibilityFontNameKey, NSAccessibilityFontSizeKey, + NSAccessibilityFontTextAttribute, NSAccessibilityForegroundColorTextAttribute, + NSAccessibilityFrontmostAttribute, NSAccessibilityFullScreenButtonAttribute, + NSAccessibilityFullScreenButtonSubrole, NSAccessibilityGridRole, NSAccessibilityGroupRole, + NSAccessibilityGrowAreaAttribute, NSAccessibilityGrowAreaRole, NSAccessibilityHandleRole, + NSAccessibilityHandlesAttribute, NSAccessibilityHeadIndentMarkerTypeValue, + NSAccessibilityHeaderAttribute, NSAccessibilityHelpAttribute, + NSAccessibilityHelpTagCreatedNotification, NSAccessibilityHelpTagRole, + NSAccessibilityHiddenAttribute, NSAccessibilityHorizontalOrientationValue, + NSAccessibilityHorizontalScrollBarAttribute, + NSAccessibilityHorizontalUnitDescriptionAttribute, NSAccessibilityHorizontalUnitsAttribute, + NSAccessibilityIdentifierAttribute, NSAccessibilityImageRole, + NSAccessibilityInchesUnitValue, NSAccessibilityIncrementAction, + NSAccessibilityIncrementArrowSubrole, NSAccessibilityIncrementButtonAttribute, + NSAccessibilityIncrementPageSubrole, NSAccessibilityIncrementorRole, + NSAccessibilityIndexAttribute, NSAccessibilityInsertionPointLineNumberAttribute, + NSAccessibilityLabelUIElementsAttribute, NSAccessibilityLabelValueAttribute, + NSAccessibilityLanguageTextAttribute, NSAccessibilityLayoutAreaRole, + NSAccessibilityLayoutChangedNotification, NSAccessibilityLayoutItemRole, + NSAccessibilityLayoutPointForScreenPointParameterizedAttribute, + NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute, + NSAccessibilityLeftTabStopMarkerTypeValue, NSAccessibilityLevelIndicatorRole, + NSAccessibilityLineForIndexParameterizedAttribute, NSAccessibilityLinkRole, + NSAccessibilityLinkTextAttribute, NSAccessibilityLinkedUIElementsAttribute, + NSAccessibilityListItemIndexTextAttribute, NSAccessibilityListItemLevelTextAttribute, + NSAccessibilityListItemPrefixTextAttribute, NSAccessibilityListRole, + NSAccessibilityLoadingToken, NSAccessibilityMainAttribute, + NSAccessibilityMainWindowAttribute, NSAccessibilityMainWindowChangedNotification, + NSAccessibilityMarkedMisspelledTextAttribute, NSAccessibilityMarkerGroupUIElementAttribute, + NSAccessibilityMarkerTypeAttribute, NSAccessibilityMarkerTypeDescriptionAttribute, + NSAccessibilityMarkerUIElementsAttribute, NSAccessibilityMarkerValuesAttribute, + NSAccessibilityMatteContentUIElementAttribute, NSAccessibilityMatteHoleAttribute, + NSAccessibilityMatteRole, NSAccessibilityMaxValueAttribute, + NSAccessibilityMenuBarAttribute, NSAccessibilityMenuBarItemRole, + NSAccessibilityMenuBarRole, NSAccessibilityMenuButtonRole, NSAccessibilityMenuItemRole, + NSAccessibilityMenuRole, NSAccessibilityMinValueAttribute, + NSAccessibilityMinimizeButtonAttribute, NSAccessibilityMinimizeButtonSubrole, + NSAccessibilityMinimizedAttribute, NSAccessibilityMisspelledTextAttribute, + NSAccessibilityModalAttribute, NSAccessibilityMovedNotification, + NSAccessibilityNextContentsAttribute, NSAccessibilityNotificationName, + NSAccessibilityNotificationUserInfoKey, NSAccessibilityNumberOfCharactersAttribute, + NSAccessibilityOrderedByRowAttribute, NSAccessibilityOrientation, + NSAccessibilityOrientationAttribute, NSAccessibilityOrientationHorizontal, NSAccessibilityOrientationUnknown, NSAccessibilityOrientationValue, - NSAccessibilityOrientationVertical, NSAccessibilityParameterizedAttributeName, - NSAccessibilityPriorityHigh, NSAccessibilityPriorityLevel, NSAccessibilityPriorityLow, - NSAccessibilityPriorityMedium, NSAccessibilityRole, NSAccessibilityRulerMarkerType, - NSAccessibilityRulerMarkerTypeIndentFirstLine, NSAccessibilityRulerMarkerTypeIndentHead, - NSAccessibilityRulerMarkerTypeIndentTail, NSAccessibilityRulerMarkerTypeTabStopCenter, - NSAccessibilityRulerMarkerTypeTabStopDecimal, NSAccessibilityRulerMarkerTypeTabStopLeft, - NSAccessibilityRulerMarkerTypeTabStopRight, NSAccessibilityRulerMarkerTypeUnknown, - NSAccessibilityRulerMarkerTypeValue, NSAccessibilityRulerUnitValue, + NSAccessibilityOrientationVertical, NSAccessibilityOutlineRole, + NSAccessibilityOutlineRowSubrole, NSAccessibilityOverflowButtonAttribute, + NSAccessibilityPageRole, NSAccessibilityParameterizedAttributeName, + NSAccessibilityParentAttribute, NSAccessibilityPicasUnitValue, NSAccessibilityPickAction, + NSAccessibilityPlaceholderValueAttribute, NSAccessibilityPointsUnitValue, + NSAccessibilityPopUpButtonRole, NSAccessibilityPopoverRole, + NSAccessibilityPositionAttribute, NSAccessibilityPressAction, + NSAccessibilityPreviousContentsAttribute, NSAccessibilityPriorityHigh, + NSAccessibilityPriorityKey, NSAccessibilityPriorityLevel, NSAccessibilityPriorityLow, + NSAccessibilityPriorityMedium, NSAccessibilityProgressIndicatorRole, + NSAccessibilityProxyAttribute, NSAccessibilityRTFForRangeParameterizedAttribute, + NSAccessibilityRadioButtonRole, NSAccessibilityRadioGroupRole, NSAccessibilityRaiseAction, + NSAccessibilityRangeForIndexParameterizedAttribute, + NSAccessibilityRangeForLineParameterizedAttribute, + NSAccessibilityRangeForPositionParameterizedAttribute, + NSAccessibilityRatingIndicatorSubrole, NSAccessibilityRelevanceIndicatorRole, + NSAccessibilityRequiredAttribute, NSAccessibilityResizedNotification, + NSAccessibilityRightTabStopMarkerTypeValue, NSAccessibilityRole, + NSAccessibilityRoleAttribute, NSAccessibilityRoleDescriptionAttribute, + NSAccessibilityRowCollapsedNotification, NSAccessibilityRowCountAttribute, + NSAccessibilityRowCountChangedNotification, NSAccessibilityRowExpandedNotification, + NSAccessibilityRowHeaderUIElementsAttribute, NSAccessibilityRowIndexRangeAttribute, + NSAccessibilityRowRole, NSAccessibilityRowsAttribute, NSAccessibilityRulerMarkerRole, + NSAccessibilityRulerMarkerType, NSAccessibilityRulerMarkerTypeIndentFirstLine, + NSAccessibilityRulerMarkerTypeIndentHead, NSAccessibilityRulerMarkerTypeIndentTail, + NSAccessibilityRulerMarkerTypeTabStopCenter, NSAccessibilityRulerMarkerTypeTabStopDecimal, + NSAccessibilityRulerMarkerTypeTabStopLeft, NSAccessibilityRulerMarkerTypeTabStopRight, + NSAccessibilityRulerMarkerTypeUnknown, NSAccessibilityRulerMarkerTypeValue, + NSAccessibilityRulerRole, NSAccessibilityRulerUnitValue, + NSAccessibilityScreenPointForLayoutPointParameterizedAttribute, + NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute, + NSAccessibilityScrollAreaRole, NSAccessibilityScrollBarRole, + NSAccessibilitySearchButtonAttribute, NSAccessibilitySearchFieldSubrole, + NSAccessibilitySearchMenuAttribute, NSAccessibilitySectionListSubrole, + NSAccessibilitySecureTextFieldSubrole, NSAccessibilitySelectedAttribute, + NSAccessibilitySelectedCellsAttribute, NSAccessibilitySelectedCellsChangedNotification, + NSAccessibilitySelectedChildrenAttribute, + NSAccessibilitySelectedChildrenChangedNotification, + NSAccessibilitySelectedChildrenMovedNotification, NSAccessibilitySelectedColumnsAttribute, + NSAccessibilitySelectedColumnsChangedNotification, NSAccessibilitySelectedRowsAttribute, + NSAccessibilitySelectedRowsChangedNotification, NSAccessibilitySelectedTextAttribute, + NSAccessibilitySelectedTextChangedNotification, NSAccessibilitySelectedTextRangeAttribute, + NSAccessibilitySelectedTextRangesAttribute, + NSAccessibilityServesAsTitleForUIElementsAttribute, NSAccessibilityShadowTextAttribute, + NSAccessibilitySharedCharacterRangeAttribute, NSAccessibilitySharedFocusElementsAttribute, + NSAccessibilitySharedTextUIElementsAttribute, NSAccessibilitySheetCreatedNotification, + NSAccessibilitySheetRole, NSAccessibilityShowAlternateUIAction, + NSAccessibilityShowDefaultUIAction, NSAccessibilityShowMenuAction, + NSAccessibilityShownMenuAttribute, NSAccessibilitySizeAttribute, NSAccessibilitySliderRole, + NSAccessibilitySortButtonRole, NSAccessibilitySortButtonSubrole, NSAccessibilitySortDirection, NSAccessibilitySortDirectionAscending, - NSAccessibilitySortDirectionDescending, NSAccessibilitySortDirectionUnknown, - NSAccessibilitySortDirectionValue, NSAccessibilitySubrole, NSAccessibilityUnits, - NSAccessibilityUnitsCentimeters, NSAccessibilityUnitsInches, NSAccessibilityUnitsPicas, - NSAccessibilityUnitsPoints, NSAccessibilityUnitsUnknown, + NSAccessibilitySortDirectionAttribute, NSAccessibilitySortDirectionDescending, + NSAccessibilitySortDirectionUnknown, NSAccessibilitySortDirectionValue, + NSAccessibilitySplitGroupRole, NSAccessibilitySplitterRole, + NSAccessibilitySplittersAttribute, NSAccessibilityStandardWindowSubrole, + NSAccessibilityStaticTextRole, NSAccessibilityStrikethroughColorTextAttribute, + NSAccessibilityStrikethroughTextAttribute, + NSAccessibilityStringForRangeParameterizedAttribute, + NSAccessibilityStyleRangeForIndexParameterizedAttribute, NSAccessibilitySubrole, + NSAccessibilitySubroleAttribute, NSAccessibilitySuperscriptTextAttribute, + NSAccessibilitySwitchSubrole, NSAccessibilitySystemDialogSubrole, + NSAccessibilitySystemFloatingWindowSubrole, NSAccessibilitySystemWideRole, + NSAccessibilityTabButtonSubrole, NSAccessibilityTabGroupRole, NSAccessibilityTableRole, + NSAccessibilityTableRowSubrole, NSAccessibilityTabsAttribute, + NSAccessibilityTailIndentMarkerTypeValue, NSAccessibilityTextAlignmentAttribute, + NSAccessibilityTextAreaRole, NSAccessibilityTextAttachmentSubrole, + NSAccessibilityTextFieldRole, NSAccessibilityTextLinkSubrole, + NSAccessibilityTimelineSubrole, NSAccessibilityTitleAttribute, + NSAccessibilityTitleChangedNotification, NSAccessibilityTitleUIElementAttribute, + NSAccessibilityToggleSubrole, NSAccessibilityToolbarButtonAttribute, + NSAccessibilityToolbarButtonSubrole, NSAccessibilityToolbarRole, + NSAccessibilityTopLevelUIElementAttribute, NSAccessibilityUIElementDestroyedNotification, + NSAccessibilityUIElementsKey, NSAccessibilityURLAttribute, + NSAccessibilityUnderlineColorTextAttribute, NSAccessibilityUnderlineTextAttribute, + NSAccessibilityUnitDescriptionAttribute, NSAccessibilityUnits, + NSAccessibilityUnitsAttribute, NSAccessibilityUnitsCentimeters, + NSAccessibilityUnitsChangedNotification, NSAccessibilityUnitsInches, + NSAccessibilityUnitsPicas, NSAccessibilityUnitsPoints, NSAccessibilityUnitsUnknown, + NSAccessibilityUnknownMarkerTypeValue, NSAccessibilityUnknownOrientationValue, + NSAccessibilityUnknownRole, NSAccessibilityUnknownSortDirectionValue, + NSAccessibilityUnknownSubrole, NSAccessibilityUnknownUnitValue, + NSAccessibilityValueAttribute, NSAccessibilityValueChangedNotification, + NSAccessibilityValueDescriptionAttribute, NSAccessibilityValueIndicatorRole, + NSAccessibilityVerticalOrientationValue, NSAccessibilityVerticalScrollBarAttribute, + NSAccessibilityVerticalUnitDescriptionAttribute, NSAccessibilityVerticalUnitsAttribute, + NSAccessibilityVisibleCellsAttribute, NSAccessibilityVisibleCharacterRangeAttribute, + NSAccessibilityVisibleChildrenAttribute, NSAccessibilityVisibleColumnsAttribute, + NSAccessibilityVisibleNameKey, NSAccessibilityVisibleRowsAttribute, + NSAccessibilityWarningValueAttribute, NSAccessibilityWindowAttribute, + NSAccessibilityWindowCreatedNotification, NSAccessibilityWindowDeminiaturizedNotification, + NSAccessibilityWindowMiniaturizedNotification, NSAccessibilityWindowMovedNotification, + NSAccessibilityWindowResizedNotification, NSAccessibilityWindowRole, + NSAccessibilityWindowsAttribute, NSAccessibilityZoomButtonAttribute, + NSAccessibilityZoomButtonSubrole, }; pub use super::NSAccessibilityCustomAction::NSAccessibilityCustomAction; pub use super::NSAccessibilityCustomRotor::{ @@ -337,8 +503,10 @@ mod __exported { }; pub use super::NSActionCell::NSActionCell; pub use super::NSAlert::{ - NSAlert, NSAlertDelegate, NSAlertStyle, NSAlertStyleCritical, NSAlertStyleInformational, - NSAlertStyleWarning, + NSAlert, NSAlertDelegate, NSAlertFirstButtonReturn, NSAlertSecondButtonReturn, + NSAlertStyle, NSAlertStyleCritical, NSAlertStyleInformational, NSAlertStyleWarning, + NSAlertThirdButtonReturn, NSCriticalAlertStyle, NSInformationalAlertStyle, + NSWarningAlertStyle, }; pub use super::NSAlignmentFeedbackFilter::{ NSAlignmentFeedbackFilter, NSAlignmentFeedbackToken, @@ -347,27 +515,74 @@ mod __exported { NSAnimatablePropertyContainer, NSAnimatablePropertyKey, NSAnimation, NSAnimationBlocking, NSAnimationBlockingMode, NSAnimationCurve, NSAnimationDelegate, NSAnimationEaseIn, NSAnimationEaseInOut, NSAnimationEaseOut, NSAnimationLinear, NSAnimationNonblocking, - NSAnimationNonblockingThreaded, NSViewAnimation, NSViewAnimationEffectName, - NSViewAnimationKey, + NSAnimationNonblockingThreaded, NSAnimationProgressMark, + NSAnimationProgressMarkNotification, NSAnimationTriggerOrderIn, NSAnimationTriggerOrderOut, + NSViewAnimation, NSViewAnimationEffectKey, NSViewAnimationEffectName, + NSViewAnimationEndFrameKey, NSViewAnimationFadeInEffect, NSViewAnimationFadeOutEffect, + NSViewAnimationKey, NSViewAnimationStartFrameKey, NSViewAnimationTargetKey, }; pub use super::NSAnimationContext::NSAnimationContext; - pub use super::NSAppearance::{NSAppearance, NSAppearanceCustomization, NSAppearanceName}; + pub use super::NSAppearance::{ + NSAppearance, NSAppearanceCustomization, NSAppearanceName, + NSAppearanceNameAccessibilityHighContrastAqua, + NSAppearanceNameAccessibilityHighContrastDarkAqua, + NSAppearanceNameAccessibilityHighContrastVibrantDark, + NSAppearanceNameAccessibilityHighContrastVibrantLight, NSAppearanceNameAqua, + NSAppearanceNameDarkAqua, NSAppearanceNameLightContent, NSAppearanceNameVibrantDark, + NSAppearanceNameVibrantLight, + }; pub use super::NSApplication::{ - NSAboutPanelOptionKey, NSApplication, NSApplicationDelegate, NSApplicationDelegateReply, - NSApplicationDelegateReplyCancel, NSApplicationDelegateReplyFailure, - NSApplicationDelegateReplySuccess, NSApplicationOcclusionState, - NSApplicationOcclusionStateVisible, NSApplicationPresentationAutoHideDock, - NSApplicationPresentationAutoHideMenuBar, NSApplicationPresentationAutoHideToolbar, - NSApplicationPresentationDefault, NSApplicationPresentationDisableAppleMenu, + NSAboutPanelOptionApplicationIcon, NSAboutPanelOptionApplicationName, + NSAboutPanelOptionApplicationVersion, NSAboutPanelOptionCredits, NSAboutPanelOptionKey, + NSAboutPanelOptionVersion, NSApp, NSAppKitVersionNumber, NSAppKitVersionNumber10_0, + NSAppKitVersionNumber10_1, NSAppKitVersionNumber10_10, NSAppKitVersionNumber10_10_2, + NSAppKitVersionNumber10_10_3, NSAppKitVersionNumber10_10_4, NSAppKitVersionNumber10_10_5, + NSAppKitVersionNumber10_10_Max, NSAppKitVersionNumber10_11, NSAppKitVersionNumber10_11_1, + NSAppKitVersionNumber10_11_2, NSAppKitVersionNumber10_11_3, NSAppKitVersionNumber10_12, + NSAppKitVersionNumber10_12_1, NSAppKitVersionNumber10_12_2, NSAppKitVersionNumber10_13, + NSAppKitVersionNumber10_13_1, NSAppKitVersionNumber10_13_2, NSAppKitVersionNumber10_13_4, + NSAppKitVersionNumber10_14, NSAppKitVersionNumber10_14_1, NSAppKitVersionNumber10_14_2, + NSAppKitVersionNumber10_14_3, NSAppKitVersionNumber10_14_4, NSAppKitVersionNumber10_14_5, + NSAppKitVersionNumber10_15, NSAppKitVersionNumber10_15_1, NSAppKitVersionNumber10_15_2, + NSAppKitVersionNumber10_15_3, NSAppKitVersionNumber10_15_4, NSAppKitVersionNumber10_15_5, + NSAppKitVersionNumber10_15_6, NSAppKitVersionNumber10_2, NSAppKitVersionNumber10_2_3, + NSAppKitVersionNumber10_3, NSAppKitVersionNumber10_3_2, NSAppKitVersionNumber10_3_3, + NSAppKitVersionNumber10_3_5, NSAppKitVersionNumber10_3_7, NSAppKitVersionNumber10_3_9, + NSAppKitVersionNumber10_4, NSAppKitVersionNumber10_4_1, NSAppKitVersionNumber10_4_3, + NSAppKitVersionNumber10_4_4, NSAppKitVersionNumber10_4_7, NSAppKitVersionNumber10_5, + NSAppKitVersionNumber10_5_2, NSAppKitVersionNumber10_5_3, NSAppKitVersionNumber10_6, + NSAppKitVersionNumber10_7, NSAppKitVersionNumber10_7_2, NSAppKitVersionNumber10_7_3, + NSAppKitVersionNumber10_7_4, NSAppKitVersionNumber10_8, NSAppKitVersionNumber10_9, + NSAppKitVersionNumber11_0, NSAppKitVersionNumber11_1, NSAppKitVersionNumber11_2, + NSAppKitVersionNumber11_3, NSAppKitVersionNumber11_4, NSApplication, NSApplicationDelegate, + NSApplicationDelegateReply, NSApplicationDelegateReplyCancel, + NSApplicationDelegateReplyFailure, NSApplicationDelegateReplySuccess, + NSApplicationDidBecomeActiveNotification, NSApplicationDidChangeOcclusionStateNotification, + NSApplicationDidChangeScreenParametersNotification, + NSApplicationDidFinishLaunchingNotification, NSApplicationDidHideNotification, + NSApplicationDidResignActiveNotification, NSApplicationDidUnhideNotification, + NSApplicationDidUpdateNotification, NSApplicationLaunchIsDefaultLaunchKey, + NSApplicationLaunchRemoteNotificationKey, NSApplicationLaunchUserNotificationKey, + NSApplicationOcclusionState, NSApplicationOcclusionStateVisible, + NSApplicationPresentationAutoHideDock, NSApplicationPresentationAutoHideMenuBar, + NSApplicationPresentationAutoHideToolbar, NSApplicationPresentationDefault, + NSApplicationPresentationDisableAppleMenu, NSApplicationPresentationDisableCursorLocationAssistance, NSApplicationPresentationDisableForceQuit, NSApplicationPresentationDisableHideApplication, NSApplicationPresentationDisableMenuBarTransparency, NSApplicationPresentationDisableProcessSwitching, NSApplicationPresentationDisableSessionTermination, NSApplicationPresentationFullScreen, NSApplicationPresentationHideDock, NSApplicationPresentationHideMenuBar, - NSApplicationPresentationOptions, NSApplicationPrintReply, NSApplicationTerminateReply, - NSCriticalRequest, NSInformationalRequest, NSModalResponse, NSPrintingCancelled, - NSPrintingFailure, NSPrintingReplyLater, NSPrintingSuccess, NSRemoteNotificationType, + NSApplicationPresentationOptions, NSApplicationPrintReply, + NSApplicationProtectedDataDidBecomeAvailableNotification, + NSApplicationProtectedDataWillBecomeUnavailableNotification, NSApplicationTerminateReply, + NSApplicationWillBecomeActiveNotification, NSApplicationWillFinishLaunchingNotification, + NSApplicationWillHideNotification, NSApplicationWillResignActiveNotification, + NSApplicationWillTerminateNotification, NSApplicationWillUnhideNotification, + NSApplicationWillUpdateNotification, NSCriticalRequest, NSEventTrackingRunLoopMode, + NSInformationalRequest, NSModalPanelRunLoopMode, NSModalResponse, NSModalResponseAbort, + NSModalResponseContinue, NSModalResponseStop, NSPrintingCancelled, NSPrintingFailure, + NSPrintingReplyLater, NSPrintingSuccess, NSRemoteNotificationType, NSRemoteNotificationTypeAlert, NSRemoteNotificationTypeBadge, NSRemoteNotificationTypeNone, NSRemoteNotificationTypeSound, NSRequestUserAttentionType, NSRunAbortedResponse, NSRunContinuesResponse, NSRunStoppedResponse, NSServiceProviderName, @@ -376,85 +591,153 @@ mod __exported { }; pub use super::NSArrayController::NSArrayController; pub use super::NSAttributedString::{ + NSAppearanceDocumentAttribute, NSAttachmentAttributeName, NSAttributedStringDocumentAttributeKey, NSAttributedStringDocumentReadingOptionKey, - NSAttributedStringDocumentType, NSNoUnderlineStyle, NSSingleUnderlineStyle, - NSSpellingState, NSSpellingStateGrammarFlag, NSSpellingStateSpellingFlag, - NSTextEffectStyle, NSTextLayoutSectionKey, NSTextScalingStandard, NSTextScalingType, - NSTextScalingiOS, NSUnderlineStyle, NSUnderlineStyleByWord, NSUnderlineStyleDouble, + NSAttributedStringDocumentType, NSAuthorDocumentAttribute, NSBackgroundColorAttributeName, + NSBackgroundColorDocumentAttribute, NSBaseURLDocumentOption, NSBaselineOffsetAttributeName, + NSBottomMarginDocumentAttribute, NSCategoryDocumentAttribute, + NSCharacterEncodingDocumentAttribute, NSCharacterEncodingDocumentOption, + NSCharacterShapeAttributeName, NSCocoaVersionDocumentAttribute, NSCommentDocumentAttribute, + NSCompanyDocumentAttribute, NSConvertedDocumentAttribute, NSCopyrightDocumentAttribute, + NSCreationTimeDocumentAttribute, NSCursorAttributeName, + NSDefaultAttributesDocumentAttribute, NSDefaultAttributesDocumentOption, + NSDefaultTabIntervalDocumentAttribute, NSDocFormatTextDocumentType, + NSDocumentTypeDocumentAttribute, NSDocumentTypeDocumentOption, NSEditorDocumentAttribute, + NSExcludedElementsDocumentAttribute, NSExpansionAttributeName, NSFileTypeDocumentAttribute, + NSFileTypeDocumentOption, NSFontAttributeName, NSForegroundColorAttributeName, + NSGlyphInfoAttributeName, NSHTMLTextDocumentType, NSHyphenationFactorDocumentAttribute, + NSKernAttributeName, NSKeywordsDocumentAttribute, NSLeftMarginDocumentAttribute, + NSLigatureAttributeName, NSLinkAttributeName, NSMacSimpleTextDocumentType, + NSManagerDocumentAttribute, NSMarkedClauseSegmentAttributeName, + NSModificationTimeDocumentAttribute, NSNoUnderlineStyle, NSObliquenessAttributeName, + NSOfficeOpenXMLTextDocumentType, NSOpenDocumentTextDocumentType, + NSPaperSizeDocumentAttribute, NSParagraphStyleAttributeName, NSPlainTextDocumentType, + NSPrefixSpacesDocumentAttribute, NSRTFDTextDocumentType, NSRTFTextDocumentType, + NSReadOnlyDocumentAttribute, NSRightMarginDocumentAttribute, NSShadowAttributeName, + NSSingleUnderlineStyle, NSSourceTextScalingDocumentAttribute, + NSSourceTextScalingDocumentOption, NSSpellingState, NSSpellingStateAttributeName, + NSSpellingStateGrammarFlag, NSSpellingStateSpellingFlag, NSStrikethroughColorAttributeName, + NSStrikethroughStyleAttributeName, NSStrokeColorAttributeName, NSStrokeWidthAttributeName, + NSSubjectDocumentAttribute, NSSuperscriptAttributeName, NSTargetTextScalingDocumentOption, + NSTextAlternativesAttributeName, NSTextEffectAttributeName, NSTextEffectLetterpressStyle, + NSTextEffectStyle, NSTextEncodingNameDocumentAttribute, NSTextEncodingNameDocumentOption, + NSTextLayoutSectionKey, NSTextLayoutSectionOrientation, NSTextLayoutSectionRange, + NSTextLayoutSectionsAttribute, NSTextScalingDocumentAttribute, NSTextScalingStandard, + NSTextScalingType, NSTextScalingiOS, NSTextSizeMultiplierDocumentOption, + NSTimeoutDocumentOption, NSTitleDocumentAttribute, NSToolTipAttributeName, + NSTopMarginDocumentAttribute, NSTrackingAttributeName, NSUnderlineByWord, + NSUnderlineByWordMask, NSUnderlineColorAttributeName, NSUnderlinePatternDash, + NSUnderlinePatternDashDot, NSUnderlinePatternDashDotDot, NSUnderlinePatternDot, + NSUnderlinePatternSolid, NSUnderlineStrikethroughMask, NSUnderlineStyle, + NSUnderlineStyleAttributeName, NSUnderlineStyleByWord, NSUnderlineStyleDouble, NSUnderlineStyleNone, NSUnderlineStylePatternDash, NSUnderlineStylePatternDashDot, NSUnderlineStylePatternDashDotDot, NSUnderlineStylePatternDot, NSUnderlineStylePatternSolid, NSUnderlineStyleSingle, NSUnderlineStyleThick, - NSWritingDirectionEmbedding, NSWritingDirectionFormatType, NSWritingDirectionOverride, + NSUsesScreenFontsDocumentAttribute, NSVerticalGlyphFormAttributeName, + NSViewModeDocumentAttribute, NSViewSizeDocumentAttribute, NSViewZoomDocumentAttribute, + NSWebArchiveTextDocumentType, NSWebPreferencesDocumentOption, + NSWebResourceLoadDelegateDocumentOption, NSWordMLTextDocumentType, + NSWritingDirectionAttributeName, NSWritingDirectionEmbedding, NSWritingDirectionFormatType, + NSWritingDirectionOverride, }; pub use super::NSBezierPath::{ - NSBezierPath, NSBezierPathElement, NSBezierPathElementClosePath, + NSBevelLineJoinStyle, NSBezierPath, NSBezierPathElement, NSBezierPathElementClosePath, NSBezierPathElementCurveTo, NSBezierPathElementLineTo, NSBezierPathElementMoveTo, - NSLineCapStyle, NSLineCapStyleButt, NSLineCapStyleRound, NSLineCapStyleSquare, - NSLineJoinStyle, NSLineJoinStyleBevel, NSLineJoinStyleMiter, NSLineJoinStyleRound, - NSWindingRule, NSWindingRuleEvenOdd, NSWindingRuleNonZero, + NSButtLineCapStyle, NSClosePathBezierPathElement, NSCurveToBezierPathElement, + NSEvenOddWindingRule, NSLineCapStyle, NSLineCapStyleButt, NSLineCapStyleRound, + NSLineCapStyleSquare, NSLineJoinStyle, NSLineJoinStyleBevel, NSLineJoinStyleMiter, + NSLineJoinStyleRound, NSLineToBezierPathElement, NSMiterLineJoinStyle, + NSMoveToBezierPathElement, NSNonZeroWindingRule, NSRoundLineCapStyle, NSRoundLineJoinStyle, + NSSquareLineCapStyle, NSWindingRule, NSWindingRuleEvenOdd, NSWindingRuleNonZero, }; pub use super::NSBitmapImageRep::{ - NSBitmapFormat, NSBitmapFormatAlphaFirst, NSBitmapFormatAlphaNonpremultiplied, + NS16BitBigEndianBitmapFormat, NS16BitLittleEndianBitmapFormat, + NS32BitBigEndianBitmapFormat, NS32BitLittleEndianBitmapFormat, NSAlphaFirstBitmapFormat, + NSAlphaNonpremultipliedBitmapFormat, NSBMPFileType, NSBitmapFormat, + NSBitmapFormatAlphaFirst, NSBitmapFormatAlphaNonpremultiplied, NSBitmapFormatFloatingPointSamples, NSBitmapFormatSixteenBitBigEndian, NSBitmapFormatSixteenBitLittleEndian, NSBitmapFormatThirtyTwoBitBigEndian, NSBitmapFormatThirtyTwoBitLittleEndian, NSBitmapImageFileType, NSBitmapImageFileTypeBMP, NSBitmapImageFileTypeGIF, NSBitmapImageFileTypeJPEG, NSBitmapImageFileTypeJPEG2000, NSBitmapImageFileTypePNG, NSBitmapImageFileTypeTIFF, NSBitmapImageRep, - NSBitmapImageRepPropertyKey, NSImageRepLoadStatus, NSImageRepLoadStatusCompleted, + NSBitmapImageRepPropertyKey, NSFloatingPointSamplesBitmapFormat, NSGIFFileType, + NSImageColorSyncProfileData, NSImageCompressionFactor, NSImageCompressionMethod, + NSImageCurrentFrame, NSImageCurrentFrameDuration, NSImageDitherTransparency, + NSImageEXIFData, NSImageFallbackBackgroundColor, NSImageFrameCount, NSImageGamma, + NSImageIPTCData, NSImageInterlaced, NSImageLoopCount, NSImageProgressive, + NSImageRGBColorTable, NSImageRepLoadStatus, NSImageRepLoadStatusCompleted, NSImageRepLoadStatusInvalidData, NSImageRepLoadStatusReadingHeader, NSImageRepLoadStatusUnexpectedEOF, NSImageRepLoadStatusUnknownType, - NSImageRepLoadStatusWillNeedAllData, NSTIFFCompression, NSTIFFCompressionCCITTFAX3, - NSTIFFCompressionCCITTFAX4, NSTIFFCompressionJPEG, NSTIFFCompressionLZW, - NSTIFFCompressionNEXT, NSTIFFCompressionNone, NSTIFFCompressionOldJPEG, - NSTIFFCompressionPackBits, + NSImageRepLoadStatusWillNeedAllData, NSJPEG2000FileType, NSJPEGFileType, NSPNGFileType, + NSTIFFCompression, NSTIFFCompressionCCITTFAX3, NSTIFFCompressionCCITTFAX4, + NSTIFFCompressionJPEG, NSTIFFCompressionLZW, NSTIFFCompressionNEXT, NSTIFFCompressionNone, + NSTIFFCompressionOldJPEG, NSTIFFCompressionPackBits, NSTIFFFileType, }; pub use super::NSBox::{ NSAboveBottom, NSAboveTop, NSAtBottom, NSAtTop, NSBelowBottom, NSBelowTop, NSBox, - NSBoxCustom, NSBoxPrimary, NSBoxSeparator, NSBoxType, NSNoTitle, NSTitlePosition, + NSBoxCustom, NSBoxOldStyle, NSBoxPrimary, NSBoxSecondary, NSBoxSeparator, NSBoxType, + NSNoTitle, NSTitlePosition, }; pub use super::NSBrowser::{ - NSBrowser, NSBrowserAutoColumnResizing, NSBrowserColumnResizingType, - NSBrowserColumnsAutosaveName, NSBrowserDelegate, NSBrowserDropAbove, NSBrowserDropOn, - NSBrowserDropOperation, NSBrowserNoColumnResizing, NSBrowserUserColumnResizing, + NSAppKitVersionNumberWithColumnResizingBrowser, + NSAppKitVersionNumberWithContinuousScrollingBrowser, NSBrowser, + NSBrowserAutoColumnResizing, NSBrowserColumnConfigurationDidChangeNotification, + NSBrowserColumnResizingType, NSBrowserColumnsAutosaveName, NSBrowserDelegate, + NSBrowserDropAbove, NSBrowserDropOn, NSBrowserDropOperation, NSBrowserNoColumnResizing, + NSBrowserUserColumnResizing, }; pub use super::NSBrowserCell::NSBrowserCell; pub use super::NSButton::NSButton; pub use super::NSButtonCell::{ - NSBezelStyle, NSBezelStyleCircular, NSBezelStyleDisclosure, NSBezelStyleHelpButton, - NSBezelStyleInline, NSBezelStyleRecessed, NSBezelStyleRegularSquare, NSBezelStyleRoundRect, - NSBezelStyleRounded, NSBezelStyleRoundedDisclosure, NSBezelStyleShadowlessSquare, - NSBezelStyleSmallSquare, NSBezelStyleTexturedRounded, NSBezelStyleTexturedSquare, - NSButtonCell, NSButtonType, NSButtonTypeAccelerator, NSButtonTypeMomentaryChange, - NSButtonTypeMomentaryLight, NSButtonTypeMomentaryPushIn, NSButtonTypeMultiLevelAccelerator, - NSButtonTypeOnOff, NSButtonTypePushOnPushOff, NSButtonTypeRadio, NSButtonTypeSwitch, - NSButtonTypeToggle, NSGradientConcaveStrong, NSGradientConcaveWeak, NSGradientConvexStrong, - NSGradientConvexWeak, NSGradientNone, NSGradientType, + NSAcceleratorButton, NSBezelStyle, NSBezelStyleCircular, NSBezelStyleDisclosure, + NSBezelStyleHelpButton, NSBezelStyleInline, NSBezelStyleRecessed, + NSBezelStyleRegularSquare, NSBezelStyleRoundRect, NSBezelStyleRounded, + NSBezelStyleRoundedDisclosure, NSBezelStyleShadowlessSquare, NSBezelStyleSmallSquare, + NSBezelStyleTexturedRounded, NSBezelStyleTexturedSquare, NSButtonCell, NSButtonType, + NSButtonTypeAccelerator, NSButtonTypeMomentaryChange, NSButtonTypeMomentaryLight, + NSButtonTypeMomentaryPushIn, NSButtonTypeMultiLevelAccelerator, NSButtonTypeOnOff, + NSButtonTypePushOnPushOff, NSButtonTypeRadio, NSButtonTypeSwitch, NSButtonTypeToggle, + NSCircularBezelStyle, NSDisclosureBezelStyle, NSGradientConcaveStrong, + NSGradientConcaveWeak, NSGradientConvexStrong, NSGradientConvexWeak, NSGradientNone, + NSGradientType, NSHelpButtonBezelStyle, NSInlineBezelStyle, NSMomentaryChangeButton, + NSMomentaryLight, NSMomentaryLightButton, NSMomentaryPushButton, NSMomentaryPushInButton, + NSMultiLevelAcceleratorButton, NSOnOffButton, NSPushOnPushOffButton, NSRadioButton, + NSRecessedBezelStyle, NSRegularSquareBezelStyle, NSRoundRectBezelStyle, + NSRoundedBezelStyle, NSRoundedDisclosureBezelStyle, NSShadowlessSquareBezelStyle, + NSSmallIconButtonBezelStyle, NSSmallSquareBezelStyle, NSSwitchButton, + NSTexturedRoundedBezelStyle, NSTexturedSquareBezelStyle, NSThickSquareBezelStyle, + NSThickerSquareBezelStyle, NSToggleButton, }; pub use super::NSButtonTouchBarItem::NSButtonTouchBarItem; pub use super::NSCIImageRep::NSCIImageRep; pub use super::NSCachedImageRep::NSCachedImageRep; pub use super::NSCandidateListTouchBarItem::{ NSCandidateListTouchBarItem, NSCandidateListTouchBarItemDelegate, + NSTouchBarItemIdentifierCandidateList, }; pub use super::NSCell::{ - NSAnyType, NSBackgroundStyle, NSBackgroundStyleEmphasized, NSBackgroundStyleLowered, - NSBackgroundStyleNormal, NSBackgroundStyleRaised, NSBlueControlTint, NSCell, - NSCellAllowsMixedState, NSCellAttribute, NSCellChangesContents, NSCellDisabled, - NSCellEditable, NSCellHasImageHorizontal, NSCellHasImageOnLeftOrBottom, - NSCellHasOverlappingImage, NSCellHighlighted, NSCellHitContentArea, - NSCellHitEditableTextArea, NSCellHitNone, NSCellHitResult, NSCellHitTrackableArea, - NSCellImagePosition, NSCellIsBordered, NSCellIsInsetButton, NSCellLightsByBackground, - NSCellLightsByContents, NSCellLightsByGray, NSCellState, NSCellStateValue, NSCellStyleMask, - NSCellType, NSChangeBackgroundCell, NSChangeBackgroundCellMask, NSChangeGrayCell, - NSChangeGrayCellMask, NSClearControlTint, NSContentsCellMask, NSControlSize, - NSControlSizeLarge, NSControlSizeMini, NSControlSizeRegular, NSControlSizeSmall, - NSControlStateValue, NSControlTint, NSDefaultControlTint, NSDoubleType, NSFloatType, + NSAnyType, NSBackgroundStyle, NSBackgroundStyleDark, NSBackgroundStyleEmphasized, + NSBackgroundStyleLight, NSBackgroundStyleLowered, NSBackgroundStyleNormal, + NSBackgroundStyleRaised, NSBlueControlTint, NSCell, NSCellAllowsMixedState, + NSCellAttribute, NSCellChangesContents, NSCellDisabled, NSCellEditable, + NSCellHasImageHorizontal, NSCellHasImageOnLeftOrBottom, NSCellHasOverlappingImage, + NSCellHighlighted, NSCellHitContentArea, NSCellHitEditableTextArea, NSCellHitNone, + NSCellHitResult, NSCellHitTrackableArea, NSCellImagePosition, NSCellIsBordered, + NSCellIsInsetButton, NSCellLightsByBackground, NSCellLightsByContents, NSCellLightsByGray, + NSCellState, NSCellStateValue, NSCellStyleMask, NSCellType, NSChangeBackgroundCell, + NSChangeBackgroundCellMask, NSChangeGrayCell, NSChangeGrayCellMask, NSClearControlTint, + NSContentsCellMask, NSControlSize, NSControlSizeLarge, NSControlSizeMini, + NSControlSizeRegular, NSControlSizeSmall, NSControlStateValue, NSControlStateValueMixed, + NSControlStateValueOff, NSControlStateValueOn, NSControlTint, + NSControlTintDidChangeNotification, NSDefaultControlTint, NSDoubleType, NSFloatType, NSGraphiteControlTint, NSImageAbove, NSImageBelow, NSImageCellType, NSImageLeading, NSImageLeft, NSImageOnly, NSImageOverlaps, NSImageRight, NSImageScaleAxesIndependently, NSImageScaleNone, NSImageScaleProportionallyDown, NSImageScaleProportionallyUpOrDown, - NSImageScaling, NSImageTrailing, NSIntType, NSNoCellMask, NSNoImage, NSNullCellType, - NSPositiveDoubleType, NSPositiveFloatType, NSPositiveIntType, NSPushInCell, - NSPushInCellMask, NSScaleNone, NSScaleProportionally, NSScaleToFit, NSTextCellType, + NSImageScaling, NSImageTrailing, NSIntType, NSMiniControlSize, NSMixedState, NSNoCellMask, + NSNoImage, NSNullCellType, NSOffState, NSOnState, NSPositiveDoubleType, + NSPositiveFloatType, NSPositiveIntType, NSPushInCell, NSPushInCellMask, + NSRegularControlSize, NSScaleNone, NSScaleProportionally, NSScaleToFit, NSSmallControlSize, + NSTextCellType, }; pub use super::NSClickGestureRecognizer::NSClickGestureRecognizer; pub use super::NSClipView::NSClipView; @@ -488,15 +771,16 @@ mod __exported { NSCollectionLayoutSectionOrthogonalScrollingBehaviorPaging, NSCollectionLayoutSize, NSCollectionLayoutSpacing, NSCollectionLayoutSupplementaryItem, NSCollectionLayoutVisibleItem, NSCollectionViewCompositionalLayout, - NSCollectionViewCompositionalLayoutConfiguration, NSDirectionalRectEdge, - NSDirectionalRectEdgeAll, NSDirectionalRectEdgeBottom, NSDirectionalRectEdgeLeading, - NSDirectionalRectEdgeNone, NSDirectionalRectEdgeTop, NSDirectionalRectEdgeTrailing, - NSRectAlignment, NSRectAlignmentBottom, NSRectAlignmentBottomLeading, - NSRectAlignmentBottomTrailing, NSRectAlignmentLeading, NSRectAlignmentNone, - NSRectAlignmentTop, NSRectAlignmentTopLeading, NSRectAlignmentTopTrailing, - NSRectAlignmentTrailing, + NSCollectionViewCompositionalLayoutConfiguration, NSDirectionalEdgeInsetsZero, + NSDirectionalRectEdge, NSDirectionalRectEdgeAll, NSDirectionalRectEdgeBottom, + NSDirectionalRectEdgeLeading, NSDirectionalRectEdgeNone, NSDirectionalRectEdgeTop, + NSDirectionalRectEdgeTrailing, NSRectAlignment, NSRectAlignmentBottom, + NSRectAlignmentBottomLeading, NSRectAlignmentBottomTrailing, NSRectAlignmentLeading, + NSRectAlignmentNone, NSRectAlignmentTop, NSRectAlignmentTopLeading, + NSRectAlignmentTopTrailing, NSRectAlignmentTrailing, }; pub use super::NSCollectionViewFlowLayout::{ + NSCollectionElementKindSectionFooter, NSCollectionElementKindSectionHeader, NSCollectionViewDelegateFlowLayout, NSCollectionViewFlowLayout, NSCollectionViewFlowLayoutInvalidationContext, NSCollectionViewScrollDirection, NSCollectionViewScrollDirectionHorizontal, NSCollectionViewScrollDirectionVertical, @@ -505,8 +789,8 @@ mod __exported { pub use super::NSCollectionViewLayout::{ NSCollectionElementCategory, NSCollectionElementCategoryDecorationView, NSCollectionElementCategoryInterItemGap, NSCollectionElementCategoryItem, - NSCollectionElementCategorySupplementaryView, NSCollectionUpdateAction, - NSCollectionUpdateActionDelete, NSCollectionUpdateActionInsert, + NSCollectionElementCategorySupplementaryView, NSCollectionElementKindInterItemGapIndicator, + NSCollectionUpdateAction, NSCollectionUpdateActionDelete, NSCollectionUpdateActionInsert, NSCollectionUpdateActionMove, NSCollectionUpdateActionNone, NSCollectionUpdateActionReload, NSCollectionViewDecorationElementKind, NSCollectionViewLayout, NSCollectionViewLayoutAttributes, NSCollectionViewLayoutInvalidationContext, @@ -516,47 +800,67 @@ mod __exported { NSCollectionViewTransitionLayout, NSCollectionViewTransitionLayoutAnimatedKey, }; pub use super::NSColor::{ - NSColor, NSColorSystemEffect, NSColorSystemEffectDeepPressed, NSColorSystemEffectDisabled, - NSColorSystemEffectNone, NSColorSystemEffectPressed, NSColorSystemEffectRollover, - NSColorType, NSColorTypeCatalog, NSColorTypeComponentBased, NSColorTypePattern, + NSAppKitVersionNumberWithPatternColorLeakFix, NSColor, NSColorSystemEffect, + NSColorSystemEffectDeepPressed, NSColorSystemEffectDisabled, NSColorSystemEffectNone, + NSColorSystemEffectPressed, NSColorSystemEffectRollover, NSColorType, NSColorTypeCatalog, + NSColorTypeComponentBased, NSColorTypePattern, NSSystemColorsDidChangeNotification, + }; + pub use super::NSColorList::{ + NSColorList, NSColorListDidChangeNotification, NSColorListName, NSColorName, }; - pub use super::NSColorList::{NSColorList, NSColorListName, NSColorName}; pub use super::NSColorPanel::{ - NSColorChanging, NSColorPanel, NSColorPanelAllModesMask, NSColorPanelCMYKModeMask, + NSCMYKModeColorPanel, NSColorChanging, NSColorListModeColorPanel, NSColorPanel, + NSColorPanelAllModesMask, NSColorPanelCMYKModeMask, NSColorPanelColorDidChangeNotification, NSColorPanelColorListModeMask, NSColorPanelCrayonModeMask, NSColorPanelCustomPaletteModeMask, NSColorPanelGrayModeMask, NSColorPanelHSBModeMask, NSColorPanelMode, NSColorPanelModeCMYK, NSColorPanelModeColorList, NSColorPanelModeCrayon, NSColorPanelModeCustomPalette, NSColorPanelModeGray, NSColorPanelModeHSB, NSColorPanelModeNone, NSColorPanelModeRGB, NSColorPanelModeWheel, NSColorPanelOptions, - NSColorPanelRGBModeMask, NSColorPanelWheelModeMask, + NSColorPanelRGBModeMask, NSColorPanelWheelModeMask, NSCrayonModeColorPanel, + NSCustomPaletteModeColorPanel, NSGrayModeColorPanel, NSHSBModeColorPanel, + NSNoModeColorPanel, NSRGBModeColorPanel, NSWheelModeColorPanel, }; pub use super::NSColorPicker::NSColorPicker; pub use super::NSColorPickerTouchBarItem::NSColorPickerTouchBarItem; pub use super::NSColorPicking::{NSColorPickingCustom, NSColorPickingDefault}; pub use super::NSColorSampler::NSColorSampler; pub use super::NSColorSpace::{ - NSColorSpace, NSColorSpaceModel, NSColorSpaceModelCMYK, NSColorSpaceModelDeviceN, - NSColorSpaceModelGray, NSColorSpaceModelIndexed, NSColorSpaceModelLAB, - NSColorSpaceModelPatterned, NSColorSpaceModelRGB, NSColorSpaceModelUnknown, + NSCMYKColorSpaceModel, NSColorSpace, NSColorSpaceModel, NSColorSpaceModelCMYK, + NSColorSpaceModelDeviceN, NSColorSpaceModelGray, NSColorSpaceModelIndexed, + NSColorSpaceModelLAB, NSColorSpaceModelPatterned, NSColorSpaceModelRGB, + NSColorSpaceModelUnknown, NSDeviceNColorSpaceModel, NSGrayColorSpaceModel, + NSIndexedColorSpaceModel, NSLABColorSpaceModel, NSPatternColorSpaceModel, + NSRGBColorSpaceModel, NSUnknownColorSpaceModel, }; pub use super::NSColorWell::NSColorWell; - pub use super::NSComboBox::{NSComboBox, NSComboBoxDataSource, NSComboBoxDelegate}; + pub use super::NSComboBox::{ + NSComboBox, NSComboBoxDataSource, NSComboBoxDelegate, + NSComboBoxSelectionDidChangeNotification, NSComboBoxSelectionIsChangingNotification, + NSComboBoxWillDismissNotification, NSComboBoxWillPopUpNotification, + }; pub use super::NSComboBoxCell::{NSComboBoxCell, NSComboBoxCellDataSource}; - pub use super::NSControl::{NSControl, NSControlTextEditingDelegate}; + pub use super::NSControl::{ + NSControl, NSControlTextDidBeginEditingNotification, NSControlTextDidChangeNotification, + NSControlTextDidEndEditingNotification, NSControlTextEditingDelegate, + }; pub use super::NSController::NSController; - pub use super::NSCursor::NSCursor; + pub use super::NSCursor::{NSAppKitVersionNumberWithCursorSizeSupport, NSCursor}; pub use super::NSCustomImageRep::NSCustomImageRep; pub use super::NSCustomTouchBarItem::NSCustomTouchBarItem; pub use super::NSDataAsset::{NSDataAsset, NSDataAssetName}; pub use super::NSDatePicker::NSDatePicker; pub use super::NSDatePickerCell::{ - NSDatePickerCell, NSDatePickerCellDelegate, NSDatePickerElementFlagEra, - NSDatePickerElementFlagHourMinute, NSDatePickerElementFlagHourMinuteSecond, - NSDatePickerElementFlagTimeZone, NSDatePickerElementFlagYearMonth, - NSDatePickerElementFlagYearMonthDay, NSDatePickerElementFlags, NSDatePickerMode, - NSDatePickerModeRange, NSDatePickerModeSingle, NSDatePickerStyle, - NSDatePickerStyleClockAndCalendar, NSDatePickerStyleTextField, - NSDatePickerStyleTextFieldAndStepper, + NSClockAndCalendarDatePickerStyle, NSDatePickerCell, NSDatePickerCellDelegate, + NSDatePickerElementFlagEra, NSDatePickerElementFlagHourMinute, + NSDatePickerElementFlagHourMinuteSecond, NSDatePickerElementFlagTimeZone, + NSDatePickerElementFlagYearMonth, NSDatePickerElementFlagYearMonthDay, + NSDatePickerElementFlags, NSDatePickerMode, NSDatePickerModeRange, NSDatePickerModeSingle, + NSDatePickerStyle, NSDatePickerStyleClockAndCalendar, NSDatePickerStyleTextField, + NSDatePickerStyleTextFieldAndStepper, NSEraDatePickerElementFlag, + NSHourMinuteDatePickerElementFlag, NSHourMinuteSecondDatePickerElementFlag, + NSRangeDateMode, NSSingleDateMode, NSTextFieldAndStepperDatePickerStyle, + NSTextFieldDatePickerStyle, NSTimeZoneDatePickerElementFlag, + NSYearMonthDatePickerElementFlag, NSYearMonthDayDatePickerElementFlag, }; pub use super::NSDictionaryController::{ NSDictionaryController, NSDictionaryControllerKeyValuePair, @@ -564,7 +868,9 @@ mod __exported { pub use super::NSDiffableDataSource::{ NSCollectionViewDiffableDataSource, NSDiffableDataSourceSnapshot, }; - pub use super::NSDockTile::{NSDockTile, NSDockTilePlugIn}; + pub use super::NSDockTile::{ + NSAppKitVersionNumberWithDockTilePlugInSupport, NSDockTile, NSDockTilePlugIn, + }; pub use super::NSDocument::{ NSAutosaveAsOperation, NSAutosaveElsewhereOperation, NSAutosaveInPlaceOperation, NSAutosaveOperation, NSChangeAutosaved, NSChangeCleared, NSChangeDiscardable, NSChangeDone, @@ -588,32 +894,55 @@ mod __exported { NSSpringLoadingHighlightStandard, NSSpringLoadingNoHover, NSSpringLoadingOptions, }; pub use super::NSDraggingItem::{ - NSDraggingImageComponent, NSDraggingImageComponentKey, NSDraggingItem, + NSDraggingImageComponent, NSDraggingImageComponentIconKey, NSDraggingImageComponentKey, + NSDraggingImageComponentLabelKey, NSDraggingItem, }; pub use super::NSDraggingSession::NSDraggingSession; pub use super::NSDrawer::{ - NSDrawer, NSDrawerClosedState, NSDrawerClosingState, NSDrawerDelegate, NSDrawerOpenState, - NSDrawerOpeningState, NSDrawerState, + NSDrawer, NSDrawerClosedState, NSDrawerClosingState, NSDrawerDelegate, + NSDrawerDidCloseNotification, NSDrawerDidOpenNotification, NSDrawerOpenState, + NSDrawerOpeningState, NSDrawerState, NSDrawerWillCloseNotification, + NSDrawerWillOpenNotification, }; pub use super::NSEPSImageRep::NSEPSImageRep; + pub use super::NSErrors::{ + NSAbortModalException, NSAbortPrintingException, NSAccessibilityException, + NSAppKitIgnoredException, NSAppKitVirtualMemoryException, NSBadBitmapParametersException, + NSBadComparisonException, NSBadRTFColorTableException, NSBadRTFDirectiveException, + NSBadRTFFontTableException, NSBadRTFStyleSheetException, NSBrowserIllegalDelegateException, + NSColorListIOException, NSColorListNotEditableException, NSDraggingException, + NSFontUnavailableException, NSIllegalSelectorException, NSImageCacheException, + NSNibLoadingException, NSPPDIncludeNotFoundException, NSPPDIncludeStackOverflowException, + NSPPDIncludeStackUnderflowException, NSPPDParseException, + NSPasteboardCommunicationException, NSPrintPackageException, + NSPrintingCommunicationException, NSRTFPropertyStackOverflowException, NSTIFFException, + NSTextLineTooLongException, NSTextNoSelectionException, NSTextReadException, + NSTextWriteException, NSTypedStreamVersionException, NSWindowServerCommunicationException, + NSWordTablesReadException, NSWordTablesWriteException, + }; pub use super::NSEvent::{ - NSBeginFunctionKey, NSBreakFunctionKey, NSClearDisplayFunctionKey, NSClearLineFunctionKey, - NSDeleteCharFunctionKey, NSDeleteFunctionKey, NSDeleteLineFunctionKey, - NSDownArrowFunctionKey, NSEndFunctionKey, NSEvent, NSEventButtonMask, - NSEventButtonMaskPenLowerSide, NSEventButtonMaskPenTip, NSEventButtonMaskPenUpperSide, - NSEventGestureAxis, NSEventGestureAxisHorizontal, NSEventGestureAxisNone, - NSEventGestureAxisVertical, NSEventMask, NSEventMaskAny, NSEventMaskAppKitDefined, - NSEventMaskApplicationDefined, NSEventMaskBeginGesture, NSEventMaskChangeMode, - NSEventMaskCursorUpdate, NSEventMaskDirectTouch, NSEventMaskEndGesture, - NSEventMaskFlagsChanged, NSEventMaskGesture, NSEventMaskKeyDown, NSEventMaskKeyUp, - NSEventMaskLeftMouseDown, NSEventMaskLeftMouseDragged, NSEventMaskLeftMouseUp, - NSEventMaskMagnify, NSEventMaskMouseEntered, NSEventMaskMouseExited, NSEventMaskMouseMoved, - NSEventMaskOtherMouseDown, NSEventMaskOtherMouseDragged, NSEventMaskOtherMouseUp, - NSEventMaskPeriodic, NSEventMaskPressure, NSEventMaskRightMouseDown, - NSEventMaskRightMouseDragged, NSEventMaskRightMouseUp, NSEventMaskRotate, - NSEventMaskScrollWheel, NSEventMaskSmartMagnify, NSEventMaskSwipe, - NSEventMaskSystemDefined, NSEventMaskTabletPoint, NSEventMaskTabletProximity, - NSEventModifierFlagCapsLock, NSEventModifierFlagCommand, NSEventModifierFlagControl, + NSAWTEventType, NSAlphaShiftKeyMask, NSAlternateKeyMask, NSAnyEventMask, NSAppKitDefined, + NSAppKitDefinedMask, NSApplicationActivatedEventType, NSApplicationDeactivatedEventType, + NSApplicationDefined, NSApplicationDefinedMask, NSBeginFunctionKey, NSBreakFunctionKey, + NSClearDisplayFunctionKey, NSClearLineFunctionKey, NSCommandKeyMask, NSControlKeyMask, + NSCursorPointingDevice, NSCursorUpdate, NSCursorUpdateMask, NSDeleteCharFunctionKey, + NSDeleteFunctionKey, NSDeleteLineFunctionKey, NSDeviceIndependentModifierFlagsMask, + NSDownArrowFunctionKey, NSEndFunctionKey, NSEraserPointingDevice, NSEvent, + NSEventButtonMask, NSEventButtonMaskPenLowerSide, NSEventButtonMaskPenTip, + NSEventButtonMaskPenUpperSide, NSEventGestureAxis, NSEventGestureAxisHorizontal, + NSEventGestureAxisNone, NSEventGestureAxisVertical, NSEventMask, NSEventMaskAny, + NSEventMaskAppKitDefined, NSEventMaskApplicationDefined, NSEventMaskBeginGesture, + NSEventMaskChangeMode, NSEventMaskCursorUpdate, NSEventMaskDirectTouch, + NSEventMaskEndGesture, NSEventMaskFlagsChanged, NSEventMaskGesture, NSEventMaskKeyDown, + NSEventMaskKeyUp, NSEventMaskLeftMouseDown, NSEventMaskLeftMouseDragged, + NSEventMaskLeftMouseUp, NSEventMaskMagnify, NSEventMaskMouseEntered, + NSEventMaskMouseExited, NSEventMaskMouseMoved, NSEventMaskOtherMouseDown, + NSEventMaskOtherMouseDragged, NSEventMaskOtherMouseUp, NSEventMaskPeriodic, + NSEventMaskPressure, NSEventMaskRightMouseDown, NSEventMaskRightMouseDragged, + NSEventMaskRightMouseUp, NSEventMaskRotate, NSEventMaskScrollWheel, + NSEventMaskSmartMagnify, NSEventMaskSwipe, NSEventMaskSystemDefined, + NSEventMaskTabletPoint, NSEventMaskTabletProximity, NSEventModifierFlagCapsLock, + NSEventModifierFlagCommand, NSEventModifierFlagControl, NSEventModifierFlagDeviceIndependentFlagsMask, NSEventModifierFlagFunction, NSEventModifierFlagHelp, NSEventModifierFlagNumericPad, NSEventModifierFlagOption, NSEventModifierFlagShift, NSEventModifierFlags, NSEventPhase, NSEventPhaseBegan, @@ -642,39 +971,61 @@ mod __exported { NSF27FunctionKey, NSF28FunctionKey, NSF29FunctionKey, NSF2FunctionKey, NSF30FunctionKey, NSF31FunctionKey, NSF32FunctionKey, NSF33FunctionKey, NSF34FunctionKey, NSF35FunctionKey, NSF3FunctionKey, NSF4FunctionKey, NSF5FunctionKey, NSF6FunctionKey, NSF7FunctionKey, - NSF8FunctionKey, NSF9FunctionKey, NSFindFunctionKey, NSHelpFunctionKey, NSHomeFunctionKey, - NSInsertCharFunctionKey, NSInsertFunctionKey, NSInsertLineFunctionKey, - NSLeftArrowFunctionKey, NSMenuFunctionKey, NSModeSwitchFunctionKey, NSNextFunctionKey, - NSPageDownFunctionKey, NSPageUpFunctionKey, NSPauseFunctionKey, NSPointingDeviceType, - NSPointingDeviceTypeCursor, NSPointingDeviceTypeEraser, NSPointingDeviceTypePen, - NSPointingDeviceTypeUnknown, NSPressureBehavior, NSPressureBehaviorPrimaryAccelerator, + NSF8FunctionKey, NSF9FunctionKey, NSFindFunctionKey, NSFlagsChanged, NSFlagsChangedMask, + NSFunctionKeyMask, NSHelpFunctionKey, NSHelpKeyMask, NSHomeFunctionKey, + NSInsertCharFunctionKey, NSInsertFunctionKey, NSInsertLineFunctionKey, NSKeyDown, + NSKeyDownMask, NSKeyUp, NSKeyUpMask, NSLeftArrowFunctionKey, NSLeftMouseDown, + NSLeftMouseDownMask, NSLeftMouseDragged, NSLeftMouseDraggedMask, NSLeftMouseUp, + NSLeftMouseUpMask, NSMenuFunctionKey, NSModeSwitchFunctionKey, NSMouseEntered, + NSMouseEnteredMask, NSMouseEventSubtype, NSMouseExited, NSMouseExitedMask, NSMouseMoved, + NSMouseMovedMask, NSNextFunctionKey, NSNumericPadKeyMask, NSOtherMouseDown, + NSOtherMouseDownMask, NSOtherMouseDragged, NSOtherMouseDraggedMask, NSOtherMouseUp, + NSOtherMouseUpMask, NSPageDownFunctionKey, NSPageUpFunctionKey, NSPauseFunctionKey, + NSPenLowerSideMask, NSPenPointingDevice, NSPenTipMask, NSPenUpperSideMask, NSPeriodic, + NSPeriodicMask, NSPointingDeviceType, NSPointingDeviceTypeCursor, + NSPointingDeviceTypeEraser, NSPointingDeviceTypePen, NSPointingDeviceTypeUnknown, + NSPowerOffEventType, NSPressureBehavior, NSPressureBehaviorPrimaryAccelerator, NSPressureBehaviorPrimaryClick, NSPressureBehaviorPrimaryDeepClick, NSPressureBehaviorPrimaryDeepDrag, NSPressureBehaviorPrimaryDefault, NSPressureBehaviorPrimaryGeneric, NSPressureBehaviorUnknown, NSPrevFunctionKey, NSPrintFunctionKey, NSPrintScreenFunctionKey, NSRedoFunctionKey, NSResetFunctionKey, - NSRightArrowFunctionKey, NSScrollLockFunctionKey, NSSelectFunctionKey, NSStopFunctionKey, - NSSysReqFunctionKey, NSSystemFunctionKey, NSUndoFunctionKey, NSUpArrowFunctionKey, - NSUserFunctionKey, + NSRightArrowFunctionKey, NSRightMouseDown, NSRightMouseDownMask, NSRightMouseDragged, + NSRightMouseDraggedMask, NSRightMouseUp, NSRightMouseUpMask, NSScreenChangedEventType, + NSScrollLockFunctionKey, NSScrollWheel, NSScrollWheelMask, NSSelectFunctionKey, + NSShiftKeyMask, NSStopFunctionKey, NSSysReqFunctionKey, NSSystemDefined, + NSSystemDefinedMask, NSSystemFunctionKey, NSTabletPoint, NSTabletPointEventSubtype, + NSTabletPointMask, NSTabletProximity, NSTabletProximityEventSubtype, NSTabletProximityMask, + NSTouchEventSubtype, NSUndoFunctionKey, NSUnknownPointingDevice, NSUpArrowFunctionKey, + NSUserFunctionKey, NSWindowExposedEventType, NSWindowMovedEventType, }; pub use super::NSFilePromiseProvider::{NSFilePromiseProvider, NSFilePromiseProviderDelegate}; pub use super::NSFilePromiseReceiver::NSFilePromiseReceiver; pub use super::NSFont::{ - NSControlGlyph, NSFont, NSFontAntialiasedIntegerAdvancementsRenderingMode, - NSFontAntialiasedRenderingMode, NSFontDefaultRenderingMode, - NSFontIntegerAdvancementsRenderingMode, NSFontRenderingMode, NSMultibyteGlyphPacking, + NSAntialiasThresholdChangedNotification, NSControlGlyph, NSFont, + NSFontAntialiasedIntegerAdvancementsRenderingMode, NSFontAntialiasedRenderingMode, + NSFontDefaultRenderingMode, NSFontIdentityMatrix, NSFontIntegerAdvancementsRenderingMode, + NSFontRenderingMode, NSFontSetChangedNotification, NSMultibyteGlyphPacking, NSNativeShortGlyphPacking, NSNullGlyph, }; pub use super::NSFontAssetRequest::{ NSFontAssetRequest, NSFontAssetRequestOptionUsesStandardUI, NSFontAssetRequestOptions, }; pub use super::NSFontCollection::{ - NSFontCollection, NSFontCollectionActionTypeKey, NSFontCollectionMatchingOptionKey, - NSFontCollectionName, NSFontCollectionUserInfoKey, NSFontCollectionVisibility, - NSFontCollectionVisibilityComputer, NSFontCollectionVisibilityProcess, - NSFontCollectionVisibilityUser, NSMutableFontCollection, + NSFontCollection, NSFontCollectionActionKey, NSFontCollectionActionTypeKey, + NSFontCollectionAllFonts, NSFontCollectionDidChangeNotification, + NSFontCollectionDisallowAutoActivationOption, NSFontCollectionFavorites, + NSFontCollectionIncludeDisabledFontsOption, NSFontCollectionMatchingOptionKey, + NSFontCollectionName, NSFontCollectionNameKey, NSFontCollectionOldNameKey, + NSFontCollectionRecentlyUsed, NSFontCollectionRemoveDuplicatesOption, NSFontCollectionUser, + NSFontCollectionUserInfoKey, NSFontCollectionVisibility, + NSFontCollectionVisibilityComputer, NSFontCollectionVisibilityKey, + NSFontCollectionVisibilityProcess, NSFontCollectionVisibilityUser, + NSFontCollectionWasHidden, NSFontCollectionWasRenamed, NSFontCollectionWasShown, + NSMutableFontCollection, }; pub use super::NSFontDescriptor::{ - NSFontBoldTrait, NSFontClarendonSerifsClass, NSFontCondensedTrait, NSFontDescriptor, + NSFontBoldTrait, NSFontCascadeListAttribute, NSFontCharacterSetAttribute, + NSFontClarendonSerifsClass, NSFontColorAttribute, NSFontCondensedTrait, NSFontDescriptor, NSFontDescriptorAttributeName, NSFontDescriptorClassClarendonSerifs, NSFontDescriptorClassFreeformSerifs, NSFontDescriptorClassMask, NSFontDescriptorClassModernSerifs, NSFontDescriptorClassOldStyleSerifs, @@ -682,18 +1033,33 @@ mod __exported { NSFontDescriptorClassScripts, NSFontDescriptorClassSlabSerifs, NSFontDescriptorClassSymbolic, NSFontDescriptorClassTransitionalSerifs, NSFontDescriptorClassUnknown, NSFontDescriptorFeatureKey, NSFontDescriptorSymbolicTraits, - NSFontDescriptorSystemDesign, NSFontDescriptorTraitBold, NSFontDescriptorTraitCondensed, - NSFontDescriptorTraitEmphasized, NSFontDescriptorTraitExpanded, - NSFontDescriptorTraitItalic, NSFontDescriptorTraitKey, NSFontDescriptorTraitLooseLeading, - NSFontDescriptorTraitMonoSpace, NSFontDescriptorTraitTightLeading, - NSFontDescriptorTraitUIOptimized, NSFontDescriptorTraitVertical, - NSFontDescriptorVariationKey, NSFontExpandedTrait, NSFontFamilyClass, - NSFontFamilyClassMask, NSFontFreeformSerifsClass, NSFontItalicTrait, - NSFontModernSerifsClass, NSFontMonoSpaceTrait, NSFontOldStyleSerifsClass, - NSFontOrnamentalsClass, NSFontSansSerifClass, NSFontScriptsClass, NSFontSlabSerifsClass, - NSFontSymbolicClass, NSFontSymbolicTraits, NSFontTextStyle, NSFontTextStyleOptionKey, + NSFontDescriptorSystemDesign, NSFontDescriptorSystemDesignDefault, + NSFontDescriptorSystemDesignMonospaced, NSFontDescriptorSystemDesignRounded, + NSFontDescriptorSystemDesignSerif, NSFontDescriptorTraitBold, + NSFontDescriptorTraitCondensed, NSFontDescriptorTraitEmphasized, + NSFontDescriptorTraitExpanded, NSFontDescriptorTraitItalic, NSFontDescriptorTraitKey, + NSFontDescriptorTraitLooseLeading, NSFontDescriptorTraitMonoSpace, + NSFontDescriptorTraitTightLeading, NSFontDescriptorTraitUIOptimized, + NSFontDescriptorTraitVertical, NSFontDescriptorVariationKey, NSFontExpandedTrait, + NSFontFaceAttribute, NSFontFamilyAttribute, NSFontFamilyClass, NSFontFamilyClassMask, + NSFontFeatureSelectorIdentifierKey, NSFontFeatureSettingsAttribute, + NSFontFeatureTypeIdentifierKey, NSFontFixedAdvanceAttribute, NSFontFreeformSerifsClass, + NSFontItalicTrait, NSFontMatrixAttribute, NSFontModernSerifsClass, NSFontMonoSpaceTrait, + NSFontNameAttribute, NSFontOldStyleSerifsClass, NSFontOrnamentalsClass, + NSFontSansSerifClass, NSFontScriptsClass, NSFontSizeAttribute, NSFontSlabSerifsClass, + NSFontSlantTrait, NSFontSymbolicClass, NSFontSymbolicTrait, NSFontSymbolicTraits, + NSFontTextStyle, NSFontTextStyleBody, NSFontTextStyleCallout, NSFontTextStyleCaption1, + NSFontTextStyleCaption2, NSFontTextStyleFootnote, NSFontTextStyleHeadline, + NSFontTextStyleLargeTitle, NSFontTextStyleOptionKey, NSFontTextStyleSubheadline, + NSFontTextStyleTitle1, NSFontTextStyleTitle2, NSFontTextStyleTitle3, NSFontTraitsAttribute, NSFontTransitionalSerifsClass, NSFontUIOptimizedTrait, NSFontUnknownClass, - NSFontVerticalTrait, NSFontWeight, + NSFontVariationAttribute, NSFontVariationAxisDefaultValueKey, + NSFontVariationAxisIdentifierKey, NSFontVariationAxisMaximumValueKey, + NSFontVariationAxisMinimumValueKey, NSFontVariationAxisNameKey, NSFontVerticalTrait, + NSFontVisibleNameAttribute, NSFontWeight, NSFontWeightBlack, NSFontWeightBold, + NSFontWeightHeavy, NSFontWeightLight, NSFontWeightMedium, NSFontWeightRegular, + NSFontWeightSemibold, NSFontWeightThin, NSFontWeightTrait, NSFontWeightUltraLight, + NSFontWidthTrait, }; pub use super::NSFontManager::{ NSAddTraitFontAction, NSBoldFontMask, NSCompressedFontMask, NSCondensedFontMask, @@ -745,10 +1111,19 @@ mod __exported { pub use super::NSGraphics::{ NSAnimationEffect, NSAnimationEffectDisappearingItemDefault, NSAnimationEffectPoof, NSBackingStoreBuffered, NSBackingStoreNonretained, NSBackingStoreRetained, - NSBackingStoreType, NSColorRenderingIntent, NSColorRenderingIntentAbsoluteColorimetric, - NSColorRenderingIntentDefault, NSColorRenderingIntentPerceptual, - NSColorRenderingIntentRelativeColorimetric, NSColorRenderingIntentSaturation, - NSColorSpaceName, NSCompositingOperation, NSCompositingOperationClear, + NSBackingStoreType, NSBlack, NSCalibratedBlackColorSpace, NSCalibratedRGBColorSpace, + NSCalibratedWhiteColorSpace, NSColorRenderingIntent, + NSColorRenderingIntentAbsoluteColorimetric, NSColorRenderingIntentDefault, + NSColorRenderingIntentPerceptual, NSColorRenderingIntentRelativeColorimetric, + NSColorRenderingIntentSaturation, NSColorSpaceName, NSCompositeClear, NSCompositeColor, + NSCompositeColorBurn, NSCompositeColorDodge, NSCompositeCopy, NSCompositeDarken, + NSCompositeDestinationAtop, NSCompositeDestinationIn, NSCompositeDestinationOut, + NSCompositeDestinationOver, NSCompositeDifference, NSCompositeExclusion, + NSCompositeHardLight, NSCompositeHighlight, NSCompositeHue, NSCompositeLighten, + NSCompositeLuminosity, NSCompositeMultiply, NSCompositeOverlay, NSCompositePlusDarker, + NSCompositePlusLighter, NSCompositeSaturation, NSCompositeScreen, NSCompositeSoftLight, + NSCompositeSourceAtop, NSCompositeSourceIn, NSCompositeSourceOut, NSCompositeSourceOver, + NSCompositeXOR, NSCompositingOperation, NSCompositingOperationClear, NSCompositingOperationColor, NSCompositingOperationColorBurn, NSCompositingOperationColorDodge, NSCompositingOperationCopy, NSCompositingOperationDarken, NSCompositingOperationDestinationAtop, NSCompositingOperationDestinationIn, @@ -761,15 +1136,21 @@ mod __exported { NSCompositingOperationSaturation, NSCompositingOperationScreen, NSCompositingOperationSoftLight, NSCompositingOperationSourceAtop, NSCompositingOperationSourceIn, NSCompositingOperationSourceOut, - NSCompositingOperationSourceOver, NSCompositingOperationXOR, NSDeviceDescriptionKey, + NSCompositingOperationSourceOver, NSCompositingOperationXOR, NSCustomColorSpace, + NSDarkGray, NSDeviceBitsPerSample, NSDeviceBlackColorSpace, NSDeviceCMYKColorSpace, + NSDeviceColorSpaceName, NSDeviceDescriptionKey, NSDeviceIsPrinter, NSDeviceIsScreen, + NSDeviceRGBColorSpace, NSDeviceResolution, NSDeviceSize, NSDeviceWhiteColorSpace, NSDisplayGamut, NSDisplayGamutP3, NSDisplayGamutSRGB, NSFocusRingAbove, NSFocusRingBelow, NSFocusRingOnly, NSFocusRingPlacement, NSFocusRingType, NSFocusRingTypeDefault, - NSFocusRingTypeExterior, NSFocusRingTypeNone, NSWindowAbove, NSWindowBelow, NSWindowDepth, + NSFocusRingTypeExterior, NSFocusRingTypeNone, NSLightGray, NSNamedColorSpace, + NSPatternColorSpace, NSWhite, NSWindowAbove, NSWindowBelow, NSWindowDepth, NSWindowDepthOnehundredtwentyeightBitRGB, NSWindowDepthSixtyfourBitRGB, NSWindowDepthTwentyfourBitRGB, NSWindowOrderingMode, NSWindowOut, }; pub use super::NSGraphicsContext::{ NSGraphicsContext, NSGraphicsContextAttributeKey, + NSGraphicsContextDestinationAttributeName, NSGraphicsContextPDFFormat, + NSGraphicsContextPSFormat, NSGraphicsContextRepresentationFormatAttributeName, NSGraphicsContextRepresentationFormatName, NSImageInterpolation, NSImageInterpolationDefault, NSImageInterpolationHigh, NSImageInterpolationLow, NSImageInterpolationMedium, NSImageInterpolationNone, @@ -780,7 +1161,7 @@ mod __exported { NSGridCellPlacementNone, NSGridCellPlacementTop, NSGridCellPlacementTrailing, NSGridColumn, NSGridRow, NSGridRowAlignment, NSGridRowAlignmentFirstBaseline, NSGridRowAlignmentInherited, NSGridRowAlignmentLastBaseline, NSGridRowAlignmentNone, - NSGridView, + NSGridView, NSGridViewSizeForContent, }; pub use super::NSGroupTouchBarItem::NSGroupTouchBarItem; pub use super::NSHapticFeedback::{ @@ -791,13 +1172,78 @@ mod __exported { NSHapticFeedbackPerformer, }; pub use super::NSHelpManager::{ + NSContextHelpModeDidActivateNotification, NSContextHelpModeDidDeactivateNotification, NSHelpAnchorName, NSHelpBookName, NSHelpManager, NSHelpManagerContextHelpKey, }; pub use super::NSImage::{ NSImage, NSImageCacheAlways, NSImageCacheBySize, NSImageCacheDefault, NSImageCacheMode, - NSImageCacheNever, NSImageDelegate, NSImageLoadStatus, NSImageLoadStatusCancelled, + NSImageCacheNever, NSImageDelegate, NSImageHintCTM, NSImageHintInterpolation, + NSImageHintUserInterfaceLayoutDirection, NSImageLoadStatus, NSImageLoadStatusCancelled, NSImageLoadStatusCompleted, NSImageLoadStatusInvalidData, NSImageLoadStatusReadError, - NSImageLoadStatusUnexpectedEOF, NSImageName, NSImageResizingMode, + NSImageLoadStatusUnexpectedEOF, NSImageName, NSImageNameActionTemplate, + NSImageNameAddTemplate, NSImageNameAdvanced, NSImageNameApplicationIcon, + NSImageNameBluetoothTemplate, NSImageNameBonjour, NSImageNameBookmarksTemplate, + NSImageNameCaution, NSImageNameColorPanel, NSImageNameColumnViewTemplate, + NSImageNameComputer, NSImageNameDotMac, NSImageNameEnterFullScreenTemplate, + NSImageNameEveryone, NSImageNameExitFullScreenTemplate, NSImageNameFlowViewTemplate, + NSImageNameFolder, NSImageNameFolderBurnable, NSImageNameFolderSmart, + NSImageNameFollowLinkFreestandingTemplate, NSImageNameFontPanel, NSImageNameGoBackTemplate, + NSImageNameGoForwardTemplate, NSImageNameGoLeftTemplate, NSImageNameGoRightTemplate, + NSImageNameHomeTemplate, NSImageNameIChatTheaterTemplate, NSImageNameIconViewTemplate, + NSImageNameInfo, NSImageNameInvalidDataFreestandingTemplate, + NSImageNameLeftFacingTriangleTemplate, NSImageNameListViewTemplate, + NSImageNameLockLockedTemplate, NSImageNameLockUnlockedTemplate, + NSImageNameMenuMixedStateTemplate, NSImageNameMenuOnStateTemplate, NSImageNameMobileMe, + NSImageNameMultipleDocuments, NSImageNameNetwork, NSImageNamePathTemplate, + NSImageNamePreferencesGeneral, NSImageNameQuickLookTemplate, + NSImageNameRefreshFreestandingTemplate, NSImageNameRefreshTemplate, + NSImageNameRemoveTemplate, NSImageNameRevealFreestandingTemplate, + NSImageNameRightFacingTriangleTemplate, NSImageNameShareTemplate, + NSImageNameSlideshowTemplate, NSImageNameSmartBadgeTemplate, NSImageNameStatusAvailable, + NSImageNameStatusNone, NSImageNameStatusPartiallyAvailable, NSImageNameStatusUnavailable, + NSImageNameStopProgressFreestandingTemplate, NSImageNameStopProgressTemplate, + NSImageNameTouchBarAddDetailTemplate, NSImageNameTouchBarAddTemplate, + NSImageNameTouchBarAlarmTemplate, NSImageNameTouchBarAudioInputMuteTemplate, + NSImageNameTouchBarAudioInputTemplate, NSImageNameTouchBarAudioOutputMuteTemplate, + NSImageNameTouchBarAudioOutputVolumeHighTemplate, + NSImageNameTouchBarAudioOutputVolumeLowTemplate, + NSImageNameTouchBarAudioOutputVolumeMediumTemplate, + NSImageNameTouchBarAudioOutputVolumeOffTemplate, NSImageNameTouchBarBookmarksTemplate, + NSImageNameTouchBarColorPickerFill, NSImageNameTouchBarColorPickerFont, + NSImageNameTouchBarColorPickerStroke, NSImageNameTouchBarCommunicationAudioTemplate, + NSImageNameTouchBarCommunicationVideoTemplate, NSImageNameTouchBarComposeTemplate, + NSImageNameTouchBarDeleteTemplate, NSImageNameTouchBarDownloadTemplate, + NSImageNameTouchBarEnterFullScreenTemplate, NSImageNameTouchBarExitFullScreenTemplate, + NSImageNameTouchBarFastForwardTemplate, NSImageNameTouchBarFolderCopyToTemplate, + NSImageNameTouchBarFolderMoveToTemplate, NSImageNameTouchBarFolderTemplate, + NSImageNameTouchBarGetInfoTemplate, NSImageNameTouchBarGoBackTemplate, + NSImageNameTouchBarGoDownTemplate, NSImageNameTouchBarGoForwardTemplate, + NSImageNameTouchBarGoUpTemplate, NSImageNameTouchBarHistoryTemplate, + NSImageNameTouchBarIconViewTemplate, NSImageNameTouchBarListViewTemplate, + NSImageNameTouchBarMailTemplate, NSImageNameTouchBarNewFolderTemplate, + NSImageNameTouchBarNewMessageTemplate, NSImageNameTouchBarOpenInBrowserTemplate, + NSImageNameTouchBarPauseTemplate, NSImageNameTouchBarPlayPauseTemplate, + NSImageNameTouchBarPlayTemplate, NSImageNameTouchBarPlayheadTemplate, + NSImageNameTouchBarQuickLookTemplate, NSImageNameTouchBarRecordStartTemplate, + NSImageNameTouchBarRecordStopTemplate, NSImageNameTouchBarRefreshTemplate, + NSImageNameTouchBarRemoveTemplate, NSImageNameTouchBarRewindTemplate, + NSImageNameTouchBarRotateLeftTemplate, NSImageNameTouchBarRotateRightTemplate, + NSImageNameTouchBarSearchTemplate, NSImageNameTouchBarShareTemplate, + NSImageNameTouchBarSidebarTemplate, NSImageNameTouchBarSkipAhead15SecondsTemplate, + NSImageNameTouchBarSkipAhead30SecondsTemplate, NSImageNameTouchBarSkipAheadTemplate, + NSImageNameTouchBarSkipBack15SecondsTemplate, NSImageNameTouchBarSkipBack30SecondsTemplate, + NSImageNameTouchBarSkipBackTemplate, NSImageNameTouchBarSkipToEndTemplate, + NSImageNameTouchBarSkipToStartTemplate, NSImageNameTouchBarSlideshowTemplate, + NSImageNameTouchBarTagIconTemplate, NSImageNameTouchBarTextBoldTemplate, + NSImageNameTouchBarTextBoxTemplate, NSImageNameTouchBarTextCenterAlignTemplate, + NSImageNameTouchBarTextItalicTemplate, NSImageNameTouchBarTextJustifiedAlignTemplate, + NSImageNameTouchBarTextLeftAlignTemplate, NSImageNameTouchBarTextListTemplate, + NSImageNameTouchBarTextRightAlignTemplate, NSImageNameTouchBarTextStrikethroughTemplate, + NSImageNameTouchBarTextUnderlineTemplate, NSImageNameTouchBarUserAddTemplate, + NSImageNameTouchBarUserGroupTemplate, NSImageNameTouchBarUserTemplate, + NSImageNameTouchBarVolumeDownTemplate, NSImageNameTouchBarVolumeUpTemplate, + NSImageNameTrashEmpty, NSImageNameTrashFull, NSImageNameUser, NSImageNameUserAccounts, + NSImageNameUserGroup, NSImageNameUserGuest, NSImageResizingMode, NSImageResizingModeStretch, NSImageResizingModeTile, NSImageSymbolConfiguration, NSImageSymbolScale, NSImageSymbolScaleLarge, NSImageSymbolScaleMedium, NSImageSymbolScaleSmall, @@ -812,7 +1258,7 @@ mod __exported { pub use super::NSImageRep::{ NSImageHintKey, NSImageLayoutDirection, NSImageLayoutDirectionLeftToRight, NSImageLayoutDirectionRightToLeft, NSImageLayoutDirectionUnspecified, NSImageRep, - NSImageRepMatchesDevice, + NSImageRepMatchesDevice, NSImageRepRegistryDidChangeNotification, }; pub use super::NSImageView::NSImageView; pub use super::NSInputManager::{NSInputManager, NSTextInput}; @@ -820,12 +1266,54 @@ mod __exported { NSInputServer, NSInputServerMouseTracker, NSInputServiceProvider, }; pub use super::NSInterfaceStyle::{ - NSInterfaceStyle, NSMacintoshInterfaceStyle, NSNextStepInterfaceStyle, NSNoInterfaceStyle, - NSWindows95InterfaceStyle, + NSInterfaceStyle, NSInterfaceStyleDefault, NSMacintoshInterfaceStyle, + NSNextStepInterfaceStyle, NSNoInterfaceStyle, NSWindows95InterfaceStyle, + }; + pub use super::NSItemProvider::{ + NSTypeIdentifierAddressText, NSTypeIdentifierDateText, NSTypeIdentifierPhoneNumberText, + NSTypeIdentifierTransitInformationText, }; pub use super::NSKeyValueBinding::{ - NSBindingInfoKey, NSBindingName, NSBindingOption, NSBindingSelectionMarker, NSEditor, - NSEditorRegistration, + NSAlignmentBinding, NSAllowsEditingMultipleValuesSelectionBindingOption, + NSAllowsNullArgumentBindingOption, NSAlternateImageBinding, NSAlternateTitleBinding, + NSAlwaysPresentsApplicationModalAlertsBindingOption, NSAnimateBinding, + NSAnimationDelayBinding, NSArgumentBinding, NSAttributedStringBinding, NSBindingInfoKey, + NSBindingName, NSBindingOption, NSBindingSelectionMarker, + NSConditionallySetsEditableBindingOption, NSConditionallySetsEnabledBindingOption, + NSConditionallySetsHiddenBindingOption, NSContentArrayBinding, + NSContentArrayForMultipleSelectionBinding, NSContentBinding, NSContentDictionaryBinding, + NSContentHeightBinding, NSContentObjectBinding, NSContentObjectsBinding, + NSContentPlacementTagBindingOption, NSContentSetBinding, NSContentValuesBinding, + NSContentWidthBinding, NSContinuouslyUpdatesValueBindingOption, + NSCreatesSortDescriptorBindingOption, NSCriticalValueBinding, NSDataBinding, + NSDeletesObjectsOnRemoveBindingsOption, NSDisplayNameBindingOption, + NSDisplayPatternBindingOption, NSDisplayPatternTitleBinding, NSDisplayPatternValueBinding, + NSDocumentEditedBinding, NSDoubleClickArgumentBinding, NSDoubleClickTargetBinding, + NSEditableBinding, NSEditor, NSEditorRegistration, NSEnabledBinding, NSExcludedKeysBinding, + NSFilterPredicateBinding, NSFontBinding, NSFontBoldBinding, NSFontFamilyNameBinding, + NSFontItalicBinding, NSFontNameBinding, NSFontSizeBinding, + NSHandlesContentAsCompoundValueBindingOption, NSHeaderTitleBinding, NSHiddenBinding, + NSImageBinding, NSIncludedKeysBinding, NSInitialKeyBinding, NSInitialValueBinding, + NSInsertsNullPlaceholderBindingOption, NSInvokesSeparatelyWithArrayObjectsBindingOption, + NSIsIndeterminateBinding, NSLabelBinding, NSLocalizedKeyDictionaryBinding, + NSManagedObjectContextBinding, NSMaxValueBinding, NSMaxWidthBinding, + NSMaximumRecentsBinding, NSMinValueBinding, NSMinWidthBinding, NSMixedStateImageBinding, + NSMultipleValuesMarker, NSMultipleValuesPlaceholderBindingOption, NSNoSelectionMarker, + NSNoSelectionPlaceholderBindingOption, NSNotApplicableMarker, + NSNotApplicablePlaceholderBindingOption, NSNullPlaceholderBindingOption, + NSObservedKeyPathKey, NSObservedObjectKey, NSOffStateImageBinding, NSOnStateImageBinding, + NSOptionsKey, NSPositioningRectBinding, NSPredicateBinding, NSPredicateFormatBindingOption, + NSRaisesForNotApplicableKeysBindingOption, NSRecentSearchesBinding, + NSRepresentedFilenameBinding, NSRowHeightBinding, NSSelectedIdentifierBinding, + NSSelectedIndexBinding, NSSelectedLabelBinding, NSSelectedObjectBinding, + NSSelectedObjectsBinding, NSSelectedTagBinding, NSSelectedValueBinding, + NSSelectedValuesBinding, NSSelectionIndexPathsBinding, NSSelectionIndexesBinding, + NSSelectorNameBindingOption, NSSelectsAllWhenSettingContentBindingOption, + NSSortDescriptorsBinding, NSTargetBinding, NSTextColorBinding, NSTitleBinding, + NSToolTipBinding, NSTransparentBinding, NSValidatesImmediatelyBindingOption, + NSValueBinding, NSValuePathBinding, NSValueTransformerBindingOption, + NSValueTransformerNameBindingOption, NSValueURLBinding, NSVisibleBinding, + NSWarningValueBinding, NSWidthBinding, }; pub use super::NSLayoutAnchor::{ NSLayoutAnchor, NSLayoutDimension, NSLayoutXAxisAnchor, NSLayoutYAxisAnchor, @@ -844,8 +1332,12 @@ mod __exported { NSLayoutFormatAlignAllTop, NSLayoutFormatAlignAllTrailing, NSLayoutFormatAlignmentMask, NSLayoutFormatDirectionLeadingToTrailing, NSLayoutFormatDirectionLeftToRight, NSLayoutFormatDirectionMask, NSLayoutFormatDirectionRightToLeft, NSLayoutFormatOptions, - NSLayoutRelation, NSLayoutRelationEqual, NSLayoutRelationGreaterThanOrEqual, - NSLayoutRelationLessThanOrEqual, + NSLayoutPriorityDefaultHigh, NSLayoutPriorityDefaultLow, + NSLayoutPriorityDragThatCanResizeWindow, NSLayoutPriorityDragThatCannotResizeWindow, + NSLayoutPriorityFittingSizeCompression, NSLayoutPriorityRequired, + NSLayoutPriorityWindowSizeStayPut, NSLayoutRelation, NSLayoutRelationEqual, + NSLayoutRelationGreaterThanOrEqual, NSLayoutRelationLessThanOrEqual, + NSViewNoInstrinsicMetric, NSViewNoIntrinsicMetric, }; pub use super::NSLayoutGuide::NSLayoutGuide; pub use super::NSLayoutManager::{ @@ -870,9 +1362,11 @@ mod __exported { NSLevelIndicatorPlaceholderVisibilityWhileEditing, }; pub use super::NSLevelIndicatorCell::{ + NSContinuousCapacityLevelIndicatorStyle, NSDiscreteCapacityLevelIndicatorStyle, NSLevelIndicatorCell, NSLevelIndicatorStyle, NSLevelIndicatorStyleContinuousCapacity, NSLevelIndicatorStyleDiscreteCapacity, NSLevelIndicatorStyleRating, - NSLevelIndicatorStyleRelevancy, + NSLevelIndicatorStyleRelevancy, NSRatingLevelIndicatorStyle, + NSRelevancyLevelIndicatorStyle, }; pub use super::NSMagnificationGestureRecognizer::NSMagnificationGestureRecognizer; pub use super::NSMatrix::{ @@ -884,40 +1378,47 @@ mod __exported { NSMediaLibraryMovie, }; pub use super::NSMenu::{ - NSMenu, NSMenuDelegate, NSMenuItemValidation, NSMenuProperties, - NSMenuPropertyItemAccessibilityDescription, NSMenuPropertyItemAttributedTitle, - NSMenuPropertyItemEnabled, NSMenuPropertyItemImage, NSMenuPropertyItemKeyEquivalent, - NSMenuPropertyItemTitle, - }; - pub use super::NSMenuItem::NSMenuItem; + NSMenu, NSMenuDelegate, NSMenuDidAddItemNotification, NSMenuDidBeginTrackingNotification, + NSMenuDidChangeItemNotification, NSMenuDidEndTrackingNotification, + NSMenuDidRemoveItemNotification, NSMenuDidSendActionNotification, NSMenuItemValidation, + NSMenuProperties, NSMenuPropertyItemAccessibilityDescription, + NSMenuPropertyItemAttributedTitle, NSMenuPropertyItemEnabled, NSMenuPropertyItemImage, + NSMenuPropertyItemKeyEquivalent, NSMenuPropertyItemTitle, NSMenuWillSendActionNotification, + }; + pub use super::NSMenuItem::{NSMenuItem, NSMenuItemImportFromDeviceIdentifier}; pub use super::NSMenuItemCell::NSMenuItemCell; pub use super::NSMenuToolbarItem::NSMenuToolbarItem; pub use super::NSMovie::NSMovie; - pub use super::NSNib::{NSNib, NSNibName}; + pub use super::NSNib::{NSNib, NSNibName, NSNibOwner, NSNibTopLevelObjects}; pub use super::NSObjectController::NSObjectController; pub use super::NSOpenGL::{ - NSOpenGLContext, NSOpenGLContextParameter, NSOpenGLContextParameterCurrentRendererID, - NSOpenGLContextParameterGPUFragmentProcessing, NSOpenGLContextParameterGPUVertexProcessing, - NSOpenGLContextParameterHasDrawable, NSOpenGLContextParameterMPSwapsInFlight, - NSOpenGLContextParameterRasterizationEnable, NSOpenGLContextParameterReclaimResources, - NSOpenGLContextParameterStateValidation, NSOpenGLContextParameterSurfaceBackingSize, - NSOpenGLContextParameterSurfaceOpacity, NSOpenGLContextParameterSurfaceOrder, - NSOpenGLContextParameterSurfaceSurfaceVolatile, NSOpenGLContextParameterSwapInterval, - NSOpenGLContextParameterSwapRectangle, NSOpenGLContextParameterSwapRectangleEnable, - NSOpenGLGOClearFormatCache, NSOpenGLGOFormatCacheSize, NSOpenGLGOResetLibrary, - NSOpenGLGORetainRenderers, NSOpenGLGOUseBuildCache, NSOpenGLGlobalOption, - NSOpenGLPFAAccelerated, NSOpenGLPFAAcceleratedCompute, NSOpenGLPFAAccumSize, - NSOpenGLPFAAllRenderers, NSOpenGLPFAAllowOfflineRenderers, NSOpenGLPFAAlphaSize, - NSOpenGLPFAAuxBuffers, NSOpenGLPFAAuxDepthStencil, NSOpenGLPFABackingStore, - NSOpenGLPFAClosestPolicy, NSOpenGLPFAColorFloat, NSOpenGLPFAColorSize, - NSOpenGLPFACompliant, NSOpenGLPFADepthSize, NSOpenGLPFADoubleBuffer, NSOpenGLPFAFullScreen, - NSOpenGLPFAMPSafe, NSOpenGLPFAMaximumPolicy, NSOpenGLPFAMinimumPolicy, - NSOpenGLPFAMultiScreen, NSOpenGLPFAMultisample, NSOpenGLPFANoRecovery, - NSOpenGLPFAOffScreen, NSOpenGLPFAOpenGLProfile, NSOpenGLPFAPixelBuffer, - NSOpenGLPFARemotePixelBuffer, NSOpenGLPFARendererID, NSOpenGLPFARobust, - NSOpenGLPFASampleAlpha, NSOpenGLPFASampleBuffers, NSOpenGLPFASamples, - NSOpenGLPFAScreenMask, NSOpenGLPFASingleRenderer, NSOpenGLPFAStencilSize, - NSOpenGLPFAStereo, NSOpenGLPFASupersample, NSOpenGLPFATripleBuffer, + NSOpenGLCPCurrentRendererID, NSOpenGLCPGPUFragmentProcessing, + NSOpenGLCPGPUVertexProcessing, NSOpenGLCPHasDrawable, NSOpenGLCPMPSwapsInFlight, + NSOpenGLCPRasterizationEnable, NSOpenGLCPReclaimResources, NSOpenGLCPStateValidation, + NSOpenGLCPSurfaceBackingSize, NSOpenGLCPSurfaceOpacity, NSOpenGLCPSurfaceOrder, + NSOpenGLCPSurfaceSurfaceVolatile, NSOpenGLCPSwapInterval, NSOpenGLCPSwapRectangle, + NSOpenGLCPSwapRectangleEnable, NSOpenGLContext, NSOpenGLContextParameter, + NSOpenGLContextParameterCurrentRendererID, NSOpenGLContextParameterGPUFragmentProcessing, + NSOpenGLContextParameterGPUVertexProcessing, NSOpenGLContextParameterHasDrawable, + NSOpenGLContextParameterMPSwapsInFlight, NSOpenGLContextParameterRasterizationEnable, + NSOpenGLContextParameterReclaimResources, NSOpenGLContextParameterStateValidation, + NSOpenGLContextParameterSurfaceBackingSize, NSOpenGLContextParameterSurfaceOpacity, + NSOpenGLContextParameterSurfaceOrder, NSOpenGLContextParameterSurfaceSurfaceVolatile, + NSOpenGLContextParameterSwapInterval, NSOpenGLContextParameterSwapRectangle, + NSOpenGLContextParameterSwapRectangleEnable, NSOpenGLGOClearFormatCache, + NSOpenGLGOFormatCacheSize, NSOpenGLGOResetLibrary, NSOpenGLGORetainRenderers, + NSOpenGLGOUseBuildCache, NSOpenGLGlobalOption, NSOpenGLPFAAccelerated, + NSOpenGLPFAAcceleratedCompute, NSOpenGLPFAAccumSize, NSOpenGLPFAAllRenderers, + NSOpenGLPFAAllowOfflineRenderers, NSOpenGLPFAAlphaSize, NSOpenGLPFAAuxBuffers, + NSOpenGLPFAAuxDepthStencil, NSOpenGLPFABackingStore, NSOpenGLPFAClosestPolicy, + NSOpenGLPFAColorFloat, NSOpenGLPFAColorSize, NSOpenGLPFACompliant, NSOpenGLPFADepthSize, + NSOpenGLPFADoubleBuffer, NSOpenGLPFAFullScreen, NSOpenGLPFAMPSafe, + NSOpenGLPFAMaximumPolicy, NSOpenGLPFAMinimumPolicy, NSOpenGLPFAMultiScreen, + NSOpenGLPFAMultisample, NSOpenGLPFANoRecovery, NSOpenGLPFAOffScreen, + NSOpenGLPFAOpenGLProfile, NSOpenGLPFAPixelBuffer, NSOpenGLPFARemotePixelBuffer, + NSOpenGLPFARendererID, NSOpenGLPFARobust, NSOpenGLPFASampleAlpha, NSOpenGLPFASampleBuffers, + NSOpenGLPFASamples, NSOpenGLPFAScreenMask, NSOpenGLPFASingleRenderer, + NSOpenGLPFAStencilSize, NSOpenGLPFAStereo, NSOpenGLPFASupersample, NSOpenGLPFATripleBuffer, NSOpenGLPFAVirtualScreenCount, NSOpenGLPFAWindow, NSOpenGLPixelBuffer, NSOpenGLPixelFormat, NSOpenGLPixelFormatAttribute, NSOpenGLProfileVersion3_2Core, NSOpenGLProfileVersion4_1Core, NSOpenGLProfileVersionLegacy, @@ -926,7 +1427,13 @@ mod __exported { pub use super::NSOpenGLView::NSOpenGLView; pub use super::NSOpenPanel::NSOpenPanel; pub use super::NSOutlineView::{ - NSOutlineView, NSOutlineViewDataSource, NSOutlineViewDelegate, NSOutlineViewDropOnItemIndex, + NSOutlineView, NSOutlineViewColumnDidMoveNotification, + NSOutlineViewColumnDidResizeNotification, NSOutlineViewDataSource, NSOutlineViewDelegate, + NSOutlineViewDisclosureButtonKey, NSOutlineViewDropOnItemIndex, + NSOutlineViewItemDidCollapseNotification, NSOutlineViewItemDidExpandNotification, + NSOutlineViewItemWillCollapseNotification, NSOutlineViewItemWillExpandNotification, + NSOutlineViewSelectionDidChangeNotification, NSOutlineViewSelectionIsChangingNotification, + NSOutlineViewShowHideButtonKey, }; pub use super::NSPDFImageRep::NSPDFImageRep; pub use super::NSPDFInfo::NSPDFInfo; @@ -952,15 +1459,29 @@ mod __exported { NSLineBreakByTruncatingTail, NSLineBreakByWordWrapping, NSLineBreakMode, NSLineBreakStrategy, NSLineBreakStrategyHangulWordPriority, NSLineBreakStrategyNone, NSLineBreakStrategyPushOut, NSLineBreakStrategyStandard, NSMutableParagraphStyle, - NSParagraphStyle, NSRightTabStopType, NSTextTab, NSTextTabOptionKey, NSTextTabType, + NSParagraphStyle, NSRightTabStopType, NSTabColumnTerminatorsAttributeName, NSTextTab, + NSTextTabOptionKey, NSTextTabType, }; pub use super::NSPasteboard::{ - NSPasteboard, NSPasteboardContentsCurrentHostOnly, NSPasteboardContentsOptions, - NSPasteboardName, NSPasteboardReading, NSPasteboardReadingAsData, - NSPasteboardReadingAsKeyedArchive, NSPasteboardReadingAsPropertyList, - NSPasteboardReadingAsString, NSPasteboardReadingOptionKey, NSPasteboardReadingOptions, - NSPasteboardType, NSPasteboardTypeOwner, NSPasteboardWriting, NSPasteboardWritingOptions, - NSPasteboardWritingPromised, + NSColorPboardType, NSDragPboard, NSFileContentsPboardType, NSFilenamesPboardType, + NSFilesPromisePboardType, NSFindPboard, NSFontPboard, NSFontPboardType, NSGeneralPboard, + NSHTMLPboardType, NSInkTextPboardType, NSMultipleTextSelectionPboardType, NSPDFPboardType, + NSPICTPboardType, NSPasteboard, NSPasteboardContentsCurrentHostOnly, + NSPasteboardContentsOptions, NSPasteboardName, NSPasteboardNameDrag, NSPasteboardNameFind, + NSPasteboardNameFont, NSPasteboardNameGeneral, NSPasteboardNameRuler, NSPasteboardReading, + NSPasteboardReadingAsData, NSPasteboardReadingAsKeyedArchive, + NSPasteboardReadingAsPropertyList, NSPasteboardReadingAsString, + NSPasteboardReadingOptionKey, NSPasteboardReadingOptions, NSPasteboardType, + NSPasteboardTypeColor, NSPasteboardTypeFileURL, NSPasteboardTypeFindPanelSearchOptions, + NSPasteboardTypeFont, NSPasteboardTypeHTML, NSPasteboardTypeMultipleTextSelection, + NSPasteboardTypeOwner, NSPasteboardTypePDF, NSPasteboardTypePNG, NSPasteboardTypeRTF, + NSPasteboardTypeRTFD, NSPasteboardTypeRuler, NSPasteboardTypeSound, NSPasteboardTypeString, + NSPasteboardTypeTIFF, NSPasteboardTypeTabularText, NSPasteboardTypeTextFinderOptions, + NSPasteboardTypeURL, NSPasteboardURLReadingContentsConformToTypesKey, + NSPasteboardURLReadingFileURLsOnlyKey, NSPasteboardWriting, NSPasteboardWritingOptions, + NSPasteboardWritingPromised, NSPostScriptPboardType, NSRTFDPboardType, NSRTFPboardType, + NSRulerPboard, NSRulerPboardType, NSStringPboardType, NSTIFFPboardType, + NSTabularTextPboardType, NSURLPboardType, NSVCardPboardType, }; pub use super::NSPasteboardItem::{NSPasteboardItem, NSPasteboardItemDataProvider}; pub use super::NSPathCell::{ @@ -979,15 +1500,18 @@ mod __exported { NSPickerTouchBarItemSelectionModeMomentary, NSPickerTouchBarItemSelectionModeSelectAny, NSPickerTouchBarItemSelectionModeSelectOne, }; - pub use super::NSPopUpButton::NSPopUpButton; + pub use super::NSPopUpButton::{NSPopUpButton, NSPopUpButtonWillPopUpNotification}; pub use super::NSPopUpButtonCell::{ NSPopUpArrowAtBottom, NSPopUpArrowAtCenter, NSPopUpArrowPosition, NSPopUpButtonCell, - NSPopUpNoArrow, + NSPopUpButtonCellWillPopUpNotification, NSPopUpNoArrow, }; pub use super::NSPopover::{ NSPopover, NSPopoverAppearance, NSPopoverAppearanceHUD, NSPopoverAppearanceMinimal, NSPopoverBehavior, NSPopoverBehaviorApplicationDefined, NSPopoverBehaviorSemitransient, - NSPopoverBehaviorTransient, NSPopoverCloseReasonValue, NSPopoverDelegate, + NSPopoverBehaviorTransient, NSPopoverCloseReasonDetachToWindow, NSPopoverCloseReasonKey, + NSPopoverCloseReasonStandard, NSPopoverCloseReasonValue, NSPopoverDelegate, + NSPopoverDidCloseNotification, NSPopoverDidShowNotification, + NSPopoverWillCloseNotification, NSPopoverWillShowNotification, }; pub use super::NSPopoverTouchBarItem::NSPopoverTouchBarItem; pub use super::NSPredicateEditor::NSPredicateEditor; @@ -995,46 +1519,67 @@ mod __exported { pub use super::NSPressGestureRecognizer::NSPressGestureRecognizer; pub use super::NSPressureConfiguration::NSPressureConfiguration; pub use super::NSPrintInfo::{ - NSLandscapeOrientation, NSPaperOrientation, NSPaperOrientationLandscape, - NSPaperOrientationPortrait, NSPortraitOrientation, NSPrintInfo, NSPrintInfoAttributeKey, - NSPrintInfoSettingKey, NSPrintJobDispositionValue, NSPrintingOrientation, + NSAutoPagination, NSClipPagination, NSFitPagination, NSLandscapeOrientation, + NSPaperOrientation, NSPaperOrientationLandscape, NSPaperOrientationPortrait, + NSPortraitOrientation, NSPrintAllPages, NSPrintBottomMargin, NSPrintCancelJob, + NSPrintCopies, NSPrintDetailedErrorReporting, NSPrintFaxNumber, NSPrintFirstPage, + NSPrintFormName, NSPrintHeaderAndFooter, NSPrintHorizontalPagination, + NSPrintHorizontallyCentered, NSPrintInfo, NSPrintInfoAttributeKey, NSPrintInfoSettingKey, + NSPrintJobDisposition, NSPrintJobDispositionValue, NSPrintJobFeatures, + NSPrintJobSavingFileNameExtensionHidden, NSPrintJobSavingURL, NSPrintLastPage, + NSPrintLeftMargin, NSPrintManualFeed, NSPrintMustCollate, NSPrintOrientation, + NSPrintPagesAcross, NSPrintPagesDown, NSPrintPagesPerSheet, NSPrintPaperFeed, + NSPrintPaperName, NSPrintPaperSize, NSPrintPreviewJob, NSPrintPrinter, NSPrintPrinterName, + NSPrintReversePageOrder, NSPrintRightMargin, NSPrintSaveJob, NSPrintSavePath, + NSPrintScalingFactor, NSPrintSelectionOnly, NSPrintSpoolJob, NSPrintTime, NSPrintTopMargin, + NSPrintVerticalPagination, NSPrintVerticallyCentered, NSPrintingOrientation, NSPrintingPaginationMode, NSPrintingPaginationModeAutomatic, NSPrintingPaginationModeClip, NSPrintingPaginationModeFit, }; pub use super::NSPrintOperation::{ - NSAscendingPageOrder, NSDescendingPageOrder, NSPrintOperation, NSPrintRenderingQuality, - NSPrintRenderingQualityBest, NSPrintRenderingQualityResponsive, NSPrintingPageOrder, - NSSpecialPageOrder, NSUnknownPageOrder, + NSAscendingPageOrder, NSDescendingPageOrder, NSPrintOperation, + NSPrintOperationExistsException, NSPrintRenderingQuality, NSPrintRenderingQualityBest, + NSPrintRenderingQualityResponsive, NSPrintingPageOrder, NSSpecialPageOrder, + NSUnknownPageOrder, }; pub use super::NSPrintPanel::{ - NSPrintPanel, NSPrintPanelAccessorizing, NSPrintPanelAccessorySummaryKey, + NSPrintAllPresetsJobStyleHint, NSPrintNoPresetsJobStyleHint, NSPrintPanel, + NSPrintPanelAccessorizing, NSPrintPanelAccessorySummaryItemDescriptionKey, + NSPrintPanelAccessorySummaryItemNameKey, NSPrintPanelAccessorySummaryKey, NSPrintPanelJobStyleHint, NSPrintPanelOptions, NSPrintPanelShowsCopies, NSPrintPanelShowsOrientation, NSPrintPanelShowsPageRange, NSPrintPanelShowsPageSetupAccessory, NSPrintPanelShowsPaperSize, NSPrintPanelShowsPreview, - NSPrintPanelShowsPrintSelection, NSPrintPanelShowsScaling, + NSPrintPanelShowsPrintSelection, NSPrintPanelShowsScaling, NSPrintPhotoJobStyleHint, }; pub use super::NSPrinter::{ NSPrinter, NSPrinterPaperName, NSPrinterTableError, NSPrinterTableNotFound, NSPrinterTableOK, NSPrinterTableStatus, NSPrinterTypeName, }; pub use super::NSProgressIndicator::{ - NSProgressIndicator, NSProgressIndicatorPreferredAquaThickness, - NSProgressIndicatorPreferredLargeThickness, NSProgressIndicatorPreferredSmallThickness, - NSProgressIndicatorPreferredThickness, NSProgressIndicatorStyle, - NSProgressIndicatorStyleBar, NSProgressIndicatorStyleSpinning, - NSProgressIndicatorThickness, + NSProgressIndicator, NSProgressIndicatorBarStyle, + NSProgressIndicatorPreferredAquaThickness, NSProgressIndicatorPreferredLargeThickness, + NSProgressIndicatorPreferredSmallThickness, NSProgressIndicatorPreferredThickness, + NSProgressIndicatorSpinningStyle, NSProgressIndicatorStyle, NSProgressIndicatorStyleBar, + NSProgressIndicatorStyleSpinning, NSProgressIndicatorThickness, }; pub use super::NSResponder::{NSResponder, NSStandardKeyBindingResponding}; pub use super::NSRotationGestureRecognizer::NSRotationGestureRecognizer; pub use super::NSRuleEditor::{ NSRuleEditor, NSRuleEditorDelegate, NSRuleEditorNestingMode, NSRuleEditorNestingModeCompound, NSRuleEditorNestingModeList, - NSRuleEditorNestingModeSimple, NSRuleEditorNestingModeSingle, NSRuleEditorPredicatePartKey, - NSRuleEditorRowType, NSRuleEditorRowTypeCompound, NSRuleEditorRowTypeSimple, + NSRuleEditorNestingModeSimple, NSRuleEditorNestingModeSingle, + NSRuleEditorPredicateComparisonModifier, NSRuleEditorPredicateCompoundType, + NSRuleEditorPredicateCustomSelector, NSRuleEditorPredicateLeftExpression, + NSRuleEditorPredicateOperatorType, NSRuleEditorPredicateOptions, + NSRuleEditorPredicatePartKey, NSRuleEditorPredicateRightExpression, NSRuleEditorRowType, + NSRuleEditorRowTypeCompound, NSRuleEditorRowTypeSimple, + NSRuleEditorRowsDidChangeNotification, }; pub use super::NSRulerMarker::NSRulerMarker; pub use super::NSRulerView::{ - NSHorizontalRuler, NSRulerOrientation, NSRulerView, NSRulerViewUnitName, NSVerticalRuler, + NSHorizontalRuler, NSRulerOrientation, NSRulerView, NSRulerViewUnitCentimeters, + NSRulerViewUnitInches, NSRulerViewUnitName, NSRulerViewUnitPicas, NSRulerViewUnitPoints, + NSVerticalRuler, }; pub use super::NSRunningApplication::{ NSApplicationActivateAllWindows, NSApplicationActivateIgnoringOtherApps, @@ -1046,16 +1591,19 @@ mod __exported { NSFileHandlingPanelCancelButton, NSFileHandlingPanelOKButton, NSOpenSavePanelDelegate, NSSavePanel, }; - pub use super::NSScreen::NSScreen; + pub use super::NSScreen::{NSScreen, NSScreenColorSpaceDidChangeNotification}; pub use super::NSScrollView::{ NSScrollElasticity, NSScrollElasticityAllowed, NSScrollElasticityAutomatic, - NSScrollElasticityNone, NSScrollView, NSScrollViewFindBarPosition, - NSScrollViewFindBarPositionAboveContent, NSScrollViewFindBarPositionAboveHorizontalRuler, - NSScrollViewFindBarPositionBelowContent, + NSScrollElasticityNone, NSScrollView, NSScrollViewDidEndLiveMagnifyNotification, + NSScrollViewDidEndLiveScrollNotification, NSScrollViewDidLiveScrollNotification, + NSScrollViewFindBarPosition, NSScrollViewFindBarPositionAboveContent, + NSScrollViewFindBarPositionAboveHorizontalRuler, NSScrollViewFindBarPositionBelowContent, + NSScrollViewWillStartLiveMagnifyNotification, NSScrollViewWillStartLiveScrollNotification, }; pub use super::NSScroller::{ - NSAllScrollerParts, NSNoScrollerParts, NSOnlyScrollerArrows, NSScrollArrowPosition, - NSScroller, NSScrollerArrow, NSScrollerArrowsDefaultSetting, NSScrollerArrowsMaxEnd, + NSAllScrollerParts, NSNoScrollerParts, NSOnlyScrollerArrows, + NSPreferredScrollerStyleDidChangeNotification, NSScrollArrowPosition, NSScroller, + NSScrollerArrow, NSScrollerArrowsDefaultSetting, NSScrollerArrowsMaxEnd, NSScrollerArrowsMinEnd, NSScrollerArrowsNone, NSScrollerDecrementArrow, NSScrollerDecrementLine, NSScrollerDecrementPage, NSScrollerIncrementArrow, NSScrollerIncrementLine, NSScrollerIncrementPage, NSScrollerKnob, NSScrollerKnobSlot, @@ -1080,7 +1628,10 @@ mod __exported { pub use super::NSSearchField::{ NSSearchField, NSSearchFieldDelegate, NSSearchFieldRecentsAutosaveName, }; - pub use super::NSSearchFieldCell::NSSearchFieldCell; + pub use super::NSSearchFieldCell::{ + NSSearchFieldCell, NSSearchFieldClearRecentsMenuItemTag, NSSearchFieldNoRecentsMenuItemTag, + NSSearchFieldRecentsMenuItemTag, NSSearchFieldRecentsTitleMenuItemTag, + }; pub use super::NSSearchToolbarItem::NSSearchToolbarItem; pub use super::NSSecureTextField::{NSSecureTextField, NSSecureTextFieldCell}; pub use super::NSSegmentedCell::NSSegmentedCell; @@ -1100,7 +1651,18 @@ mod __exported { NSCloudKitSharingServiceOptions, NSCloudKitSharingServiceStandard, NSCloudSharingServiceDelegate, NSSharingContentScope, NSSharingContentScopeFull, NSSharingContentScopeItem, NSSharingContentScopePartial, NSSharingService, - NSSharingServiceDelegate, NSSharingServiceName, NSSharingServicePicker, + NSSharingServiceDelegate, NSSharingServiceName, NSSharingServiceNameAddToAperture, + NSSharingServiceNameAddToIPhoto, NSSharingServiceNameAddToSafariReadingList, + NSSharingServiceNameCloudSharing, NSSharingServiceNameComposeEmail, + NSSharingServiceNameComposeMessage, NSSharingServiceNamePostImageOnFlickr, + NSSharingServiceNamePostOnFacebook, NSSharingServiceNamePostOnLinkedIn, + NSSharingServiceNamePostOnSinaWeibo, NSSharingServiceNamePostOnTencentWeibo, + NSSharingServiceNamePostOnTwitter, NSSharingServiceNamePostVideoOnTudou, + NSSharingServiceNamePostVideoOnVimeo, NSSharingServiceNamePostVideoOnYouku, + NSSharingServiceNameSendViaAirDrop, NSSharingServiceNameUseAsDesktopPicture, + NSSharingServiceNameUseAsFacebookProfileImage, + NSSharingServiceNameUseAsLinkedInProfileImage, + NSSharingServiceNameUseAsTwitterProfileImage, NSSharingServicePicker, NSSharingServicePickerDelegate, }; pub use super::NSSharingServicePickerToolbarItem::{ @@ -1112,43 +1674,80 @@ mod __exported { pub use super::NSSlider::NSSlider; pub use super::NSSliderAccessory::{NSSliderAccessory, NSSliderAccessoryBehavior}; pub use super::NSSliderCell::{ - NSSliderCell, NSSliderType, NSSliderTypeCircular, NSSliderTypeLinear, NSTickMarkPosition, + NSCircularSlider, NSLinearSlider, NSSliderCell, NSSliderType, NSSliderTypeCircular, + NSSliderTypeLinear, NSTickMarkAbove, NSTickMarkBelow, NSTickMarkLeft, NSTickMarkPosition, NSTickMarkPositionAbove, NSTickMarkPositionBelow, NSTickMarkPositionLeading, - NSTickMarkPositionTrailing, + NSTickMarkPositionTrailing, NSTickMarkRight, + }; + pub use super::NSSliderTouchBarItem::{ + NSSliderAccessoryWidth, NSSliderAccessoryWidthDefault, NSSliderAccessoryWidthWide, + NSSliderTouchBarItem, }; - pub use super::NSSliderTouchBarItem::{NSSliderAccessoryWidth, NSSliderTouchBarItem}; pub use super::NSSound::{ - NSSound, NSSoundDelegate, NSSoundName, NSSoundPlaybackDeviceIdentifier, + NSSound, NSSoundDelegate, NSSoundName, NSSoundPboardType, NSSoundPlaybackDeviceIdentifier, }; pub use super::NSSpeechRecognizer::{NSSpeechRecognizer, NSSpeechRecognizerDelegate}; pub use super::NSSpeechSynthesizer::{ - NSSpeechBoundary, NSSpeechCommandDelimiterKey, NSSpeechDictionaryKey, NSSpeechErrorKey, - NSSpeechImmediateBoundary, NSSpeechMode, NSSpeechPhonemeInfoKey, NSSpeechPropertyKey, - NSSpeechSentenceBoundary, NSSpeechStatusKey, NSSpeechSynthesizer, - NSSpeechSynthesizerDelegate, NSSpeechSynthesizerInfoKey, NSSpeechSynthesizerVoiceName, - NSSpeechWordBoundary, NSVoiceAttributeKey, NSVoiceGenderName, + NSSpeechBoundary, NSSpeechCharacterModeProperty, NSSpeechCommandDelimiterKey, + NSSpeechCommandDelimiterProperty, NSSpeechCommandPrefix, NSSpeechCommandSuffix, + NSSpeechCurrentVoiceProperty, NSSpeechDictionaryAbbreviations, + NSSpeechDictionaryEntryPhonemes, NSSpeechDictionaryEntrySpelling, NSSpeechDictionaryKey, + NSSpeechDictionaryLocaleIdentifier, NSSpeechDictionaryModificationDate, + NSSpeechDictionaryPronunciations, NSSpeechErrorCount, NSSpeechErrorKey, + NSSpeechErrorNewestCharacterOffset, NSSpeechErrorNewestCode, + NSSpeechErrorOldestCharacterOffset, NSSpeechErrorOldestCode, NSSpeechErrorsProperty, + NSSpeechImmediateBoundary, NSSpeechInputModeProperty, NSSpeechMode, NSSpeechModeLiteral, + NSSpeechModeNormal, NSSpeechModePhoneme, NSSpeechModeText, NSSpeechNumberModeProperty, + NSSpeechOutputToFileURLProperty, NSSpeechPhonemeInfoExample, NSSpeechPhonemeInfoHiliteEnd, + NSSpeechPhonemeInfoHiliteStart, NSSpeechPhonemeInfoKey, NSSpeechPhonemeInfoOpcode, + NSSpeechPhonemeInfoSymbol, NSSpeechPhonemeSymbolsProperty, NSSpeechPitchBaseProperty, + NSSpeechPitchModProperty, NSSpeechPropertyKey, NSSpeechRateProperty, + NSSpeechRecentSyncProperty, NSSpeechResetProperty, NSSpeechSentenceBoundary, + NSSpeechStatusKey, NSSpeechStatusNumberOfCharactersLeft, NSSpeechStatusOutputBusy, + NSSpeechStatusOutputPaused, NSSpeechStatusPhonemeCode, NSSpeechStatusProperty, + NSSpeechSynthesizer, NSSpeechSynthesizerDelegate, NSSpeechSynthesizerInfoIdentifier, + NSSpeechSynthesizerInfoKey, NSSpeechSynthesizerInfoProperty, + NSSpeechSynthesizerInfoVersion, NSSpeechSynthesizerVoiceName, NSSpeechVolumeProperty, + NSSpeechWordBoundary, NSVoiceAge, NSVoiceAttributeKey, NSVoiceDemoText, NSVoiceGender, + NSVoiceGenderFemale, NSVoiceGenderMale, NSVoiceGenderName, NSVoiceGenderNeuter, + NSVoiceGenderNeutral, NSVoiceIdentifier, NSVoiceIndividuallySpokenCharacters, + NSVoiceLanguage, NSVoiceLocaleIdentifier, NSVoiceName, NSVoiceSupportedCharacters, }; pub use super::NSSpellChecker::{ NSCorrectionIndicatorType, NSCorrectionIndicatorTypeDefault, NSCorrectionIndicatorTypeGuesses, NSCorrectionIndicatorTypeReversion, NSCorrectionResponse, NSCorrectionResponseAccepted, NSCorrectionResponseEdited, NSCorrectionResponseIgnored, NSCorrectionResponseNone, NSCorrectionResponseRejected, NSCorrectionResponseReverted, - NSSpellChecker, NSTextCheckingOptionKey, + NSSpellChecker, NSSpellCheckerDidChangeAutomaticCapitalizationNotification, + NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification, + NSSpellCheckerDidChangeAutomaticPeriodSubstitutionNotification, + NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification, + NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification, + NSSpellCheckerDidChangeAutomaticTextCompletionNotification, + NSSpellCheckerDidChangeAutomaticTextReplacementNotification, + NSTextCheckingDocumentAuthorKey, NSTextCheckingDocumentTitleKey, + NSTextCheckingDocumentURLKey, NSTextCheckingOptionKey, NSTextCheckingOrthographyKey, + NSTextCheckingQuotesKey, NSTextCheckingReferenceDateKey, + NSTextCheckingReferenceTimeZoneKey, NSTextCheckingRegularExpressionsKey, + NSTextCheckingReplacementsKey, NSTextCheckingSelectedRangeKey, }; pub use super::NSSpellProtocol::{NSChangeSpelling, NSIgnoreMisspelledWords}; pub use super::NSSplitView::{ - NSSplitView, NSSplitViewAutosaveName, NSSplitViewDelegate, NSSplitViewDividerStyle, + NSSplitView, NSSplitViewAutosaveName, NSSplitViewDelegate, + NSSplitViewDidResizeSubviewsNotification, NSSplitViewDividerStyle, NSSplitViewDividerStylePaneSplitter, NSSplitViewDividerStyleThick, - NSSplitViewDividerStyleThin, + NSSplitViewDividerStyleThin, NSSplitViewWillResizeSubviewsNotification, + }; + pub use super::NSSplitViewController::{ + NSSplitViewController, NSSplitViewControllerAutomaticDimension, }; - pub use super::NSSplitViewController::NSSplitViewController; pub use super::NSSplitViewItem::{ NSSplitViewItem, NSSplitViewItemBehavior, NSSplitViewItemBehaviorContentList, NSSplitViewItemBehaviorDefault, NSSplitViewItemBehaviorSidebar, NSSplitViewItemCollapseBehavior, NSSplitViewItemCollapseBehaviorDefault, NSSplitViewItemCollapseBehaviorPreferResizingSiblingsWithFixedSplitView, NSSplitViewItemCollapseBehaviorPreferResizingSplitViewWithFixedSiblings, - NSSplitViewItemCollapseBehaviorUseConstraints, + NSSplitViewItemCollapseBehaviorUseConstraints, NSSplitViewItemUnspecifiedDimension, }; pub use super::NSStackView::{ NSStackView, NSStackViewDelegate, NSStackViewDistribution, @@ -1157,8 +1756,12 @@ mod __exported { NSStackViewDistributionFillProportionally, NSStackViewDistributionGravityAreas, NSStackViewGravity, NSStackViewGravityBottom, NSStackViewGravityCenter, NSStackViewGravityLeading, NSStackViewGravityTop, NSStackViewGravityTrailing, + NSStackViewSpacingUseDefault, NSStackViewVisibilityPriorityDetachOnlyIfNecessary, + NSStackViewVisibilityPriorityMustHold, NSStackViewVisibilityPriorityNotVisible, + }; + pub use super::NSStatusBar::{ + NSSquareStatusItemLength, NSStatusBar, NSVariableStatusItemLength, }; - pub use super::NSStatusBar::NSStatusBar; pub use super::NSStatusBarButton::NSStatusBarButton; pub use super::NSStatusItem::{ NSStatusItem, NSStatusItemAutosaveName, NSStatusItemBehavior, @@ -1179,11 +1782,12 @@ mod __exported { }; pub use super::NSSwitch::NSSwitch; pub use super::NSTabView::{ - NSBottomTabsBezelBorder, NSLeftTabsBezelBorder, NSNoTabsBezelBorder, NSNoTabsLineBorder, - NSNoTabsNoBorder, NSRightTabsBezelBorder, NSTabPosition, NSTabPositionBottom, - NSTabPositionLeft, NSTabPositionNone, NSTabPositionRight, NSTabPositionTop, NSTabView, - NSTabViewBorderType, NSTabViewBorderTypeBezel, NSTabViewBorderTypeLine, - NSTabViewBorderTypeNone, NSTabViewDelegate, NSTabViewType, NSTopTabsBezelBorder, + NSAppKitVersionNumberWithDirectionalTabs, NSBottomTabsBezelBorder, NSLeftTabsBezelBorder, + NSNoTabsBezelBorder, NSNoTabsLineBorder, NSNoTabsNoBorder, NSRightTabsBezelBorder, + NSTabPosition, NSTabPositionBottom, NSTabPositionLeft, NSTabPositionNone, + NSTabPositionRight, NSTabPositionTop, NSTabView, NSTabViewBorderType, + NSTabViewBorderTypeBezel, NSTabViewBorderTypeLine, NSTabViewBorderTypeNone, + NSTabViewDelegate, NSTabViewType, NSTopTabsBezelBorder, }; pub use super::NSTabViewController::{ NSTabViewController, NSTabViewControllerTabStyle, @@ -1208,6 +1812,7 @@ mod __exported { NSTableViewAnimationEffectNone, NSTableViewAnimationOptions, NSTableViewAnimationSlideDown, NSTableViewAnimationSlideLeft, NSTableViewAnimationSlideRight, NSTableViewAnimationSlideUp, NSTableViewAutosaveName, NSTableViewColumnAutoresizingStyle, + NSTableViewColumnDidMoveNotification, NSTableViewColumnDidResizeNotification, NSTableViewDashedHorizontalGridLineMask, NSTableViewDataSource, NSTableViewDelegate, NSTableViewDraggingDestinationFeedbackStyle, NSTableViewDraggingDestinationFeedbackStyleGap, @@ -1219,12 +1824,14 @@ mod __exported { NSTableViewNoColumnAutoresizing, NSTableViewReverseSequentialColumnAutoresizingStyle, NSTableViewRowSizeStyle, NSTableViewRowSizeStyleCustom, NSTableViewRowSizeStyleDefault, NSTableViewRowSizeStyleLarge, NSTableViewRowSizeStyleMedium, NSTableViewRowSizeStyleSmall, + NSTableViewRowViewKey, NSTableViewSelectionDidChangeNotification, NSTableViewSelectionHighlightStyle, NSTableViewSelectionHighlightStyleNone, NSTableViewSelectionHighlightStyleRegular, NSTableViewSelectionHighlightStyleSourceList, - NSTableViewSequentialColumnAutoresizingStyle, NSTableViewSolidHorizontalGridLineMask, - NSTableViewSolidVerticalGridLineMask, NSTableViewStyle, NSTableViewStyleAutomatic, - NSTableViewStyleFullWidth, NSTableViewStyleInset, NSTableViewStylePlain, - NSTableViewStyleSourceList, NSTableViewUniformColumnAutoresizingStyle, + NSTableViewSelectionIsChangingNotification, NSTableViewSequentialColumnAutoresizingStyle, + NSTableViewSolidHorizontalGridLineMask, NSTableViewSolidVerticalGridLineMask, + NSTableViewStyle, NSTableViewStyleAutomatic, NSTableViewStyleFullWidth, + NSTableViewStyleInset, NSTableViewStylePlain, NSTableViewStyleSourceList, + NSTableViewUniformColumnAutoresizingStyle, }; pub use super::NSTableViewDiffableDataSource::NSTableViewDiffableDataSource; pub use super::NSTableViewRowAction::{ @@ -1233,19 +1840,24 @@ mod __exported { }; pub use super::NSText::{ NSBackTabCharacter, NSBackspaceCharacter, NSBacktabTextMovement, NSCancelTextMovement, - NSCarriageReturnCharacter, NSDeleteCharacter, NSDownTextMovement, NSEnterCharacter, - NSFormFeedCharacter, NSIllegalTextMovement, NSLeftTextMovement, NSLineSeparatorCharacter, + NSCarriageReturnCharacter, NSCenterTextAlignment, NSDeleteCharacter, NSDownTextMovement, + NSEnterCharacter, NSFormFeedCharacter, NSIllegalTextMovement, NSJustifiedTextAlignment, + NSLeftTextAlignment, NSLeftTextMovement, NSLineSeparatorCharacter, NSNaturalTextAlignment, NSNewlineCharacter, NSOtherTextMovement, NSParagraphSeparatorCharacter, - NSReturnTextMovement, NSRightTextMovement, NSTabCharacter, NSTabTextMovement, NSText, - NSTextAlignment, NSTextAlignmentCenter, NSTextAlignmentJustified, NSTextAlignmentLeft, - NSTextAlignmentNatural, NSTextAlignmentRight, NSTextDelegate, NSTextMovement, + NSReturnTextMovement, NSRightTextAlignment, NSRightTextMovement, NSTabCharacter, + NSTabTextMovement, NSText, NSTextAlignment, NSTextAlignmentCenter, + NSTextAlignmentJustified, NSTextAlignmentLeft, NSTextAlignmentNatural, + NSTextAlignmentRight, NSTextDelegate, NSTextDidBeginEditingNotification, + NSTextDidChangeNotification, NSTextDidEndEditingNotification, NSTextMovement, NSTextMovementBacktab, NSTextMovementCancel, NSTextMovementDown, NSTextMovementLeft, NSTextMovementOther, NSTextMovementReturn, NSTextMovementRight, NSTextMovementTab, - NSTextMovementUp, NSTextWritingDirectionEmbedding, NSTextWritingDirectionOverride, - NSUpTextMovement, NSWritingDirection, NSWritingDirectionLeftToRight, - NSWritingDirectionNatural, NSWritingDirectionRightToLeft, + NSTextMovementUp, NSTextMovementUserInfoKey, NSTextWritingDirectionEmbedding, + NSTextWritingDirectionOverride, NSUpTextMovement, NSWritingDirection, + NSWritingDirectionLeftToRight, NSWritingDirectionNatural, NSWritingDirectionRightToLeft, + }; + pub use super::NSTextAlternatives::{ + NSTextAlternatives, NSTextAlternativesSelectedAlternativeStringNotification, }; - pub use super::NSTextAlternatives::NSTextAlternatives; pub use super::NSTextAttachment::{ NSAttachmentCharacter, NSTextAttachment, NSTextAttachmentContainer, NSTextAttachmentLayout, NSTextAttachmentViewProvider, @@ -1261,11 +1873,15 @@ mod __exported { NSLineMovesRight, NSLineMovesUp, NSLineSweepDirection, NSLineSweepDown, NSLineSweepLeft, NSLineSweepRight, NSLineSweepUp, NSTextContainer, }; - pub use super::NSTextContent::{NSTextContent, NSTextContentType}; + pub use super::NSTextContent::{ + NSTextContent, NSTextContentType, NSTextContentTypeOneTimeCode, NSTextContentTypePassword, + NSTextContentTypeUsername, + }; pub use super::NSTextContentManager::{ NSTextContentManager, NSTextContentManagerDelegate, NSTextContentManagerEnumerationOptions, NSTextContentManagerEnumerationOptionsNone, NSTextContentManagerEnumerationOptionsReverse, - NSTextContentStorage, NSTextContentStorageDelegate, NSTextElementProvider, + NSTextContentStorage, NSTextContentStorageDelegate, + NSTextContentStorageUnsupportedAttributeAddedNotification, NSTextElementProvider, }; pub use super::NSTextElement::{NSTextElement, NSTextParagraph}; pub use super::NSTextField::{NSTextField, NSTextFieldDelegate}; @@ -1280,12 +1896,16 @@ mod __exported { NSTextFinderActionReplaceAndFind, NSTextFinderActionSelectAll, NSTextFinderActionSelectAllInSelection, NSTextFinderActionSetSearchString, NSTextFinderActionShowFindInterface, NSTextFinderActionShowReplaceInterface, - NSTextFinderBarContainer, NSTextFinderClient, NSTextFinderMatchingType, - NSTextFinderMatchingTypeContains, NSTextFinderMatchingTypeEndsWith, - NSTextFinderMatchingTypeFullWord, NSTextFinderMatchingTypeStartsWith, + NSTextFinderBarContainer, NSTextFinderCaseInsensitiveKey, NSTextFinderClient, + NSTextFinderMatchingType, NSTextFinderMatchingTypeContains, + NSTextFinderMatchingTypeEndsWith, NSTextFinderMatchingTypeFullWord, + NSTextFinderMatchingTypeKey, NSTextFinderMatchingTypeStartsWith, }; pub use super::NSTextInputClient::NSTextInputClient; - pub use super::NSTextInputContext::{NSTextInputContext, NSTextInputSourceIdentifier}; + pub use super::NSTextInputContext::{ + NSTextInputContext, NSTextInputContextKeyboardSelectionDidChangeNotification, + NSTextInputSourceIdentifier, + }; pub use super::NSTextLayoutFragment::{ NSTextLayoutFragment, NSTextLayoutFragmentEnumerationOptions, NSTextLayoutFragmentEnumerationOptionsEnsuresExtraLineFragment, @@ -1308,7 +1928,14 @@ mod __exported { }; pub use super::NSTextLineFragment::NSTextLineFragment; pub use super::NSTextList::{ - NSTextList, NSTextListMarkerFormat, NSTextListOptions, NSTextListPrependEnclosingMarker, + NSTextList, NSTextListMarkerBox, NSTextListMarkerCheck, NSTextListMarkerCircle, + NSTextListMarkerDecimal, NSTextListMarkerDiamond, NSTextListMarkerDisc, + NSTextListMarkerFormat, NSTextListMarkerHyphen, NSTextListMarkerLowercaseAlpha, + NSTextListMarkerLowercaseHexadecimal, NSTextListMarkerLowercaseLatin, + NSTextListMarkerLowercaseRoman, NSTextListMarkerOctal, NSTextListMarkerSquare, + NSTextListMarkerUppercaseAlpha, NSTextListMarkerUppercaseHexadecimal, + NSTextListMarkerUppercaseLatin, NSTextListMarkerUppercaseRoman, NSTextListOptions, + NSTextListPrependEnclosingMarker, }; pub use super::NSTextRange::{NSTextLocation, NSTextRange}; pub use super::NSTextSelection::{ @@ -1337,9 +1964,10 @@ mod __exported { NSTextSelectionNavigationWritingDirectionRightToLeft, }; pub use super::NSTextStorage::{ - NSTextStorage, NSTextStorageDelegate, NSTextStorageEditActions, - NSTextStorageEditedAttributes, NSTextStorageEditedCharacters, NSTextStorageEditedOptions, - NSTextStorageObserving, + NSTextStorage, NSTextStorageDelegate, NSTextStorageDidProcessEditingNotification, + NSTextStorageEditActions, NSTextStorageEditedAttributes, NSTextStorageEditedCharacters, + NSTextStorageEditedOptions, NSTextStorageObserving, + NSTextStorageWillProcessEditingNotification, }; pub use super::NSTextTable::{ NSTextBlock, NSTextBlockAbsoluteValueType, NSTextBlockBaselineAlignment, NSTextBlockBorder, @@ -1352,17 +1980,25 @@ mod __exported { NSTextTableLayoutAlgorithm, }; pub use super::NSTextView::{ - NSFindPanelAction, NSFindPanelActionNext, NSFindPanelActionPrevious, - NSFindPanelActionReplace, NSFindPanelActionReplaceAll, + NSAllRomanInputSourcesLocaleIdentifier, NSFindPanelAction, NSFindPanelActionNext, + NSFindPanelActionPrevious, NSFindPanelActionReplace, NSFindPanelActionReplaceAll, NSFindPanelActionReplaceAllInSelection, NSFindPanelActionReplaceAndFind, NSFindPanelActionSelectAll, NSFindPanelActionSelectAllInSelection, NSFindPanelActionSetFindString, NSFindPanelActionShowFindPanel, - NSFindPanelSubstringMatchType, NSFindPanelSubstringMatchTypeContains, - NSFindPanelSubstringMatchTypeEndsWith, NSFindPanelSubstringMatchTypeFullWord, - NSFindPanelSubstringMatchTypeStartsWith, NSPasteboardTypeFindPanelSearchOptionKey, - NSSelectByCharacter, NSSelectByParagraph, NSSelectByWord, NSSelectionAffinity, - NSSelectionAffinityDownstream, NSSelectionAffinityUpstream, NSSelectionGranularity, - NSTextView, NSTextViewDelegate, + NSFindPanelCaseInsensitiveSearch, NSFindPanelSearchOptionsPboardType, + NSFindPanelSubstringMatch, NSFindPanelSubstringMatchType, + NSFindPanelSubstringMatchTypeContains, NSFindPanelSubstringMatchTypeEndsWith, + NSFindPanelSubstringMatchTypeFullWord, NSFindPanelSubstringMatchTypeStartsWith, + NSPasteboardTypeFindPanelSearchOptionKey, NSSelectByCharacter, NSSelectByParagraph, + NSSelectByWord, NSSelectionAffinity, NSSelectionAffinityDownstream, + NSSelectionAffinityUpstream, NSSelectionGranularity, NSTextView, NSTextViewDelegate, + NSTextViewDidChangeSelectionNotification, NSTextViewDidChangeTypingAttributesNotification, + NSTextViewDidSwitchToNSLayoutManagerNotification, + NSTextViewWillChangeNotifyingTextViewNotification, + NSTextViewWillSwitchToNSLayoutManagerNotification, NSTouchBarItemIdentifierCharacterPicker, + NSTouchBarItemIdentifierTextAlignment, NSTouchBarItemIdentifierTextColorPicker, + NSTouchBarItemIdentifierTextFormat, NSTouchBarItemIdentifierTextList, + NSTouchBarItemIdentifierTextStyle, }; pub use super::NSTextViewportLayoutController::{ NSTextViewportLayoutController, NSTextViewportLayoutControllerDelegate, @@ -1371,19 +2007,27 @@ mod __exported { pub use super::NSTitlebarAccessoryViewController::NSTitlebarAccessoryViewController; pub use super::NSTokenField::{NSTokenField, NSTokenFieldDelegate}; pub use super::NSTokenFieldCell::{ - NSTokenFieldCell, NSTokenFieldCellDelegate, NSTokenStyle, NSTokenStyleDefault, - NSTokenStyleNone, NSTokenStylePlainSquared, NSTokenStyleRounded, NSTokenStyleSquared, + NSDefaultTokenStyle, NSPlainTextTokenStyle, NSRoundedTokenStyle, NSTokenFieldCell, + NSTokenFieldCellDelegate, NSTokenStyle, NSTokenStyleDefault, NSTokenStyleNone, + NSTokenStylePlainSquared, NSTokenStyleRounded, NSTokenStyleSquared, }; pub use super::NSToolbar::{ - NSToolbar, NSToolbarDelegate, NSToolbarDisplayMode, NSToolbarDisplayModeDefault, - NSToolbarDisplayModeIconAndLabel, NSToolbarDisplayModeIconOnly, - NSToolbarDisplayModeLabelOnly, NSToolbarIdentifier, NSToolbarItemIdentifier, - NSToolbarSizeMode, NSToolbarSizeModeDefault, NSToolbarSizeModeRegular, - NSToolbarSizeModeSmall, + NSToolbar, NSToolbarDelegate, NSToolbarDidRemoveItemNotification, NSToolbarDisplayMode, + NSToolbarDisplayModeDefault, NSToolbarDisplayModeIconAndLabel, + NSToolbarDisplayModeIconOnly, NSToolbarDisplayModeLabelOnly, NSToolbarIdentifier, + NSToolbarItemIdentifier, NSToolbarSizeMode, NSToolbarSizeModeDefault, + NSToolbarSizeModeRegular, NSToolbarSizeModeSmall, NSToolbarWillAddItemNotification, }; pub use super::NSToolbarItem::{ - NSCloudSharingValidation, NSToolbarItem, NSToolbarItemValidation, - NSToolbarItemVisibilityPriority, + NSCloudSharingValidation, NSToolbarCloudSharingItemIdentifier, + NSToolbarCustomizeToolbarItemIdentifier, NSToolbarFlexibleSpaceItemIdentifier, + NSToolbarItem, NSToolbarItemValidation, NSToolbarItemVisibilityPriority, + NSToolbarItemVisibilityPriorityHigh, NSToolbarItemVisibilityPriorityLow, + NSToolbarItemVisibilityPriorityStandard, NSToolbarItemVisibilityPriorityUser, + NSToolbarPrintItemIdentifier, NSToolbarSeparatorItemIdentifier, + NSToolbarShowColorsItemIdentifier, NSToolbarShowFontsItemIdentifier, + NSToolbarSidebarTrackingSeparatorItemIdentifier, NSToolbarSpaceItemIdentifier, + NSToolbarToggleSidebarItemIdentifier, }; pub use super::NSToolbarItemGroup::{ NSToolbarItemGroup, NSToolbarItemGroupControlRepresentation, @@ -1402,7 +2046,12 @@ mod __exported { pub use super::NSTouchBar::{ NSTouchBar, NSTouchBarCustomizationIdentifier, NSTouchBarDelegate, NSTouchBarProvider, }; - pub use super::NSTouchBarItem::{NSTouchBarItem, NSTouchBarItemIdentifier}; + pub use super::NSTouchBarItem::{ + NSTouchBarItem, NSTouchBarItemIdentifier, NSTouchBarItemIdentifierFixedSpaceLarge, + NSTouchBarItemIdentifierFixedSpaceSmall, NSTouchBarItemIdentifierFlexibleSpace, + NSTouchBarItemIdentifierOtherItemsProxy, NSTouchBarItemPriorityHigh, + NSTouchBarItemPriorityLow, NSTouchBarItemPriorityNormal, + }; pub use super::NSTrackingArea::{ NSTrackingActiveAlways, NSTrackingActiveInActiveApp, NSTrackingActiveInKeyWindow, NSTrackingActiveWhenFirstResponder, NSTrackingArea, NSTrackingAreaOptions, @@ -1418,7 +2067,7 @@ mod __exported { NSTypesetterParagraphBreakAction, NSTypesetterWhitespaceAction, NSTypesetterZeroAdvancementAction, }; - pub use super::NSUserActivity::NSUserActivityRestoring; + pub use super::NSUserActivity::{NSUserActivityDocumentURLKey, NSUserActivityRestoring}; pub use super::NSUserDefaultsController::NSUserDefaultsController; pub use super::NSUserInterfaceCompression::{ NSUserInterfaceCompression, NSUserInterfaceCompressionOptions, @@ -1437,8 +2086,14 @@ mod __exported { }; pub use super::NSView::{ NSAutoresizingMaskOptions, NSBezelBorder, NSBorderType, NSDefinitionOptionKey, - NSDefinitionPresentationType, NSGrooveBorder, NSLineBorder, NSNoBorder, NSToolTipTag, - NSTrackingRectTag, NSView, NSViewFullScreenModeOptionKey, NSViewHeightSizable, + NSDefinitionPresentationType, NSDefinitionPresentationTypeDictionaryApplication, + NSDefinitionPresentationTypeKey, NSDefinitionPresentationTypeOverlay, + NSFullScreenModeAllScreens, NSFullScreenModeApplicationPresentationOptions, + NSFullScreenModeSetting, NSFullScreenModeWindowLevel, NSGrooveBorder, NSLineBorder, + NSNoBorder, NSToolTipTag, NSTrackingRectTag, NSView, NSViewBoundsDidChangeNotification, + NSViewDidUpdateTrackingAreasNotification, NSViewFocusDidChangeNotification, + NSViewFrameDidChangeNotification, NSViewFullScreenModeOptionKey, + NSViewGlobalFrameDidChangeNotification, NSViewHeightSizable, NSViewLayerContentScaleDelegate, NSViewLayerContentsPlacement, NSViewLayerContentsPlacementBottom, NSViewLayerContentsPlacementBottomLeft, NSViewLayerContentsPlacementBottomRight, NSViewLayerContentsPlacementCenter, @@ -1477,14 +2132,25 @@ mod __exported { NSVisualEffectView, }; pub use super::NSWindow::{ - NSDirectSelection, NSDisplayWindowRunLoopOrdering, NSResetCursorRectsRunLoopOrdering, - NSSelectingNext, NSSelectingPrevious, NSSelectionDirection, NSTitlebarSeparatorStyle, + NSAppKitVersionNumberWithCustomSheetPosition, + NSAppKitVersionNumberWithDeferredWindowDisplaySupport, NSBackingPropertyOldColorSpaceKey, + NSBackingPropertyOldScaleFactorKey, NSBorderlessWindowMask, NSClosableWindowMask, + NSDirectSelection, NSDisplayWindowRunLoopOrdering, NSDocModalWindowMask, NSDockWindowLevel, + NSEventDurationForever, NSFloatingWindowLevel, NSFullScreenWindowMask, + NSFullSizeContentViewWindowMask, NSHUDWindowMask, NSMainMenuWindowLevel, + NSMiniaturizableWindowMask, NSModalPanelWindowLevel, NSModalResponseCancel, + NSModalResponseOK, NSNonactivatingPanelMask, NSNormalWindowLevel, NSPopUpMenuWindowLevel, + NSResetCursorRectsRunLoopOrdering, NSResizableWindowMask, NSScreenSaverWindowLevel, + NSSelectingNext, NSSelectingPrevious, NSSelectionDirection, NSStatusWindowLevel, + NSSubmenuWindowLevel, NSTexturedBackgroundWindowMask, NSTitlebarSeparatorStyle, NSTitlebarSeparatorStyleAutomatic, NSTitlebarSeparatorStyleLine, - NSTitlebarSeparatorStyleNone, NSTitlebarSeparatorStyleShadow, NSWindow, - NSWindowAnimationBehavior, NSWindowAnimationBehaviorAlertPanel, - NSWindowAnimationBehaviorDefault, NSWindowAnimationBehaviorDocumentWindow, - NSWindowAnimationBehaviorNone, NSWindowAnimationBehaviorUtilityWindow, - NSWindowBackingLocation, NSWindowBackingLocationDefault, NSWindowBackingLocationMainMemory, + NSTitlebarSeparatorStyleNone, NSTitlebarSeparatorStyleShadow, NSTitledWindowMask, + NSTornOffMenuWindowLevel, NSUnifiedTitleAndToolbarWindowMask, NSUnscaledWindowMask, + NSUtilityWindowMask, NSWindow, NSWindowAnimationBehavior, + NSWindowAnimationBehaviorAlertPanel, NSWindowAnimationBehaviorDefault, + NSWindowAnimationBehaviorDocumentWindow, NSWindowAnimationBehaviorNone, + NSWindowAnimationBehaviorUtilityWindow, NSWindowBackingLocation, + NSWindowBackingLocationDefault, NSWindowBackingLocationMainMemory, NSWindowBackingLocationVideoMemory, NSWindowButton, NSWindowCloseButton, NSWindowCollectionBehavior, NSWindowCollectionBehaviorCanJoinAllSpaces, NSWindowCollectionBehaviorDefault, NSWindowCollectionBehaviorFullScreenAllowsTiling, @@ -1494,16 +2160,27 @@ mod __exported { NSWindowCollectionBehaviorIgnoresCycle, NSWindowCollectionBehaviorManaged, NSWindowCollectionBehaviorMoveToActiveSpace, NSWindowCollectionBehaviorParticipatesInCycle, NSWindowCollectionBehaviorStationary, NSWindowCollectionBehaviorTransient, - NSWindowDelegate, NSWindowDocumentIconButton, NSWindowDocumentVersionsButton, - NSWindowFrameAutosaveName, NSWindowLevel, NSWindowMiniaturizeButton, - NSWindowNumberListAllApplications, NSWindowNumberListAllSpaces, NSWindowNumberListOptions, - NSWindowOcclusionState, NSWindowOcclusionStateVisible, NSWindowPersistableFrameDescriptor, - NSWindowSharingNone, NSWindowSharingReadOnly, NSWindowSharingReadWrite, - NSWindowSharingType, NSWindowStyleMask, NSWindowStyleMaskBorderless, - NSWindowStyleMaskClosable, NSWindowStyleMaskDocModalWindow, NSWindowStyleMaskFullScreen, - NSWindowStyleMaskFullSizeContentView, NSWindowStyleMaskHUDWindow, - NSWindowStyleMaskMiniaturizable, NSWindowStyleMaskNonactivatingPanel, - NSWindowStyleMaskResizable, NSWindowStyleMaskTexturedBackground, NSWindowStyleMaskTitled, + NSWindowDelegate, NSWindowDidBecomeKeyNotification, NSWindowDidBecomeMainNotification, + NSWindowDidChangeBackingPropertiesNotification, + NSWindowDidChangeOcclusionStateNotification, NSWindowDidChangeScreenNotification, + NSWindowDidChangeScreenProfileNotification, NSWindowDidDeminiaturizeNotification, + NSWindowDidEndLiveResizeNotification, NSWindowDidEndSheetNotification, + NSWindowDidEnterFullScreenNotification, NSWindowDidEnterVersionBrowserNotification, + NSWindowDidExitFullScreenNotification, NSWindowDidExitVersionBrowserNotification, + NSWindowDidExposeNotification, NSWindowDidMiniaturizeNotification, + NSWindowDidMoveNotification, NSWindowDidResignKeyNotification, + NSWindowDidResignMainNotification, NSWindowDidResizeNotification, + NSWindowDidUpdateNotification, NSWindowDocumentIconButton, NSWindowDocumentVersionsButton, + NSWindowFrameAutosaveName, NSWindowFullScreenButton, NSWindowLevel, + NSWindowMiniaturizeButton, NSWindowNumberListAllApplications, NSWindowNumberListAllSpaces, + NSWindowNumberListOptions, NSWindowOcclusionState, NSWindowOcclusionStateVisible, + NSWindowPersistableFrameDescriptor, NSWindowSharingNone, NSWindowSharingReadOnly, + NSWindowSharingReadWrite, NSWindowSharingType, NSWindowStyleMask, + NSWindowStyleMaskBorderless, NSWindowStyleMaskClosable, NSWindowStyleMaskDocModalWindow, + NSWindowStyleMaskFullScreen, NSWindowStyleMaskFullSizeContentView, + NSWindowStyleMaskHUDWindow, NSWindowStyleMaskMiniaturizable, + NSWindowStyleMaskNonactivatingPanel, NSWindowStyleMaskResizable, + NSWindowStyleMaskTexturedBackground, NSWindowStyleMaskTitled, NSWindowStyleMaskUnifiedTitleAndToolbar, NSWindowStyleMaskUtilityWindow, NSWindowTabbingIdentifier, NSWindowTabbingMode, NSWindowTabbingModeAutomatic, NSWindowTabbingModeDisallowed, NSWindowTabbingModePreferred, NSWindowTitleHidden, @@ -1512,24 +2189,52 @@ mod __exported { NSWindowToolbarStylePreference, NSWindowToolbarStyleUnified, NSWindowToolbarStyleUnifiedCompact, NSWindowUserTabbingPreference, NSWindowUserTabbingPreferenceAlways, NSWindowUserTabbingPreferenceInFullScreen, - NSWindowUserTabbingPreferenceManual, NSWindowZoomButton, + NSWindowUserTabbingPreferenceManual, NSWindowWillBeginSheetNotification, + NSWindowWillCloseNotification, NSWindowWillEnterFullScreenNotification, + NSWindowWillEnterVersionBrowserNotification, NSWindowWillExitFullScreenNotification, + NSWindowWillExitVersionBrowserNotification, NSWindowWillMiniaturizeNotification, + NSWindowWillMoveNotification, NSWindowWillStartLiveResizeNotification, NSWindowZoomButton, }; pub use super::NSWindowController::NSWindowController; - pub use super::NSWindowRestoration::NSWindowRestoration; + pub use super::NSWindowRestoration::{ + NSApplicationDidFinishRestoringWindowsNotification, NSWindowRestoration, + }; pub use super::NSWindowTab::NSWindowTab; pub use super::NSWindowTabGroup::NSWindowTabGroup; pub use super::NSWorkspace::{ - NSExclude10_4ElementsIconCreationOption, NSExcludeQuickDrawElementsIconCreationOption, - NSWorkspace, NSWorkspaceAuthorization, NSWorkspaceAuthorizationType, + NSApplicationFileType, NSDirectoryFileType, NSExclude10_4ElementsIconCreationOption, + NSExcludeQuickDrawElementsIconCreationOption, NSFilesystemFileType, NSPlainFileType, + NSShellCommandFileType, NSWorkspace, NSWorkspaceActiveSpaceDidChangeNotification, + NSWorkspaceApplicationKey, NSWorkspaceAuthorization, NSWorkspaceAuthorizationType, NSWorkspaceAuthorizationTypeCreateSymbolicLink, NSWorkspaceAuthorizationTypeReplaceFile, - NSWorkspaceAuthorizationTypeSetAttributes, NSWorkspaceDesktopImageOptionKey, + NSWorkspaceAuthorizationTypeSetAttributes, NSWorkspaceCompressOperation, + NSWorkspaceCopyOperation, NSWorkspaceDecompressOperation, NSWorkspaceDecryptOperation, + NSWorkspaceDesktopImageAllowClippingKey, NSWorkspaceDesktopImageFillColorKey, + NSWorkspaceDesktopImageOptionKey, NSWorkspaceDesktopImageScalingKey, + NSWorkspaceDestroyOperation, NSWorkspaceDidActivateApplicationNotification, + NSWorkspaceDidChangeFileLabelsNotification, + NSWorkspaceDidDeactivateApplicationNotification, NSWorkspaceDidHideApplicationNotification, + NSWorkspaceDidLaunchApplicationNotification, NSWorkspaceDidMountNotification, + NSWorkspaceDidPerformFileOperationNotification, NSWorkspaceDidRenameVolumeNotification, + NSWorkspaceDidTerminateApplicationNotification, + NSWorkspaceDidUnhideApplicationNotification, NSWorkspaceDidUnmountNotification, + NSWorkspaceDidWakeNotification, NSWorkspaceDuplicateOperation, NSWorkspaceEncryptOperation, NSWorkspaceFileOperationName, NSWorkspaceIconCreationOptions, NSWorkspaceLaunchAllowingClassicStartup, NSWorkspaceLaunchAndHide, NSWorkspaceLaunchAndHideOthers, NSWorkspaceLaunchAndPrint, NSWorkspaceLaunchAsync, + NSWorkspaceLaunchConfigurationAppleEvent, NSWorkspaceLaunchConfigurationArchitecture, + NSWorkspaceLaunchConfigurationArguments, NSWorkspaceLaunchConfigurationEnvironment, NSWorkspaceLaunchConfigurationKey, NSWorkspaceLaunchDefault, NSWorkspaceLaunchInhibitingBackgroundOnly, NSWorkspaceLaunchNewInstance, NSWorkspaceLaunchOptions, NSWorkspaceLaunchPreferringClassic, NSWorkspaceLaunchWithErrorPresentation, NSWorkspaceLaunchWithoutActivation, - NSWorkspaceLaunchWithoutAddingToRecents, NSWorkspaceOpenConfiguration, + NSWorkspaceLaunchWithoutAddingToRecents, NSWorkspaceLinkOperation, + NSWorkspaceMoveOperation, NSWorkspaceOpenConfiguration, NSWorkspaceRecycleOperation, + NSWorkspaceScreensDidSleepNotification, NSWorkspaceScreensDidWakeNotification, + NSWorkspaceSessionDidBecomeActiveNotification, + NSWorkspaceSessionDidResignActiveNotification, NSWorkspaceVolumeLocalizedNameKey, + NSWorkspaceVolumeOldLocalizedNameKey, NSWorkspaceVolumeOldURLKey, NSWorkspaceVolumeURLKey, + NSWorkspaceWillLaunchApplicationNotification, NSWorkspaceWillPowerOffNotification, + NSWorkspaceWillSleepNotification, NSWorkspaceWillUnmountNotification, }; } diff --git a/icrate/src/Foundation/generated/NSAppleEventManager.rs b/icrate/src/Foundation/generated/NSAppleEventManager.rs index b9ec49321..86936b90f 100644 --- a/icrate/src/Foundation/generated/NSAppleEventManager.rs +++ b/icrate/src/Foundation/generated/NSAppleEventManager.rs @@ -5,6 +5,18 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSAppleEventTimeOutDefault: c_double; +} + +extern "C" { + static NSAppleEventTimeOutNone: c_double; +} + +extern "C" { + static NSAppleEventManagerWillProcessFirstEventNotification: &'static NSNotificationName; +} + extern_class!( #[derive(Debug)] pub struct NSAppleEventManager; diff --git a/icrate/src/Foundation/generated/NSAppleScript.rs b/icrate/src/Foundation/generated/NSAppleScript.rs index a1e7cb134..146c4ed4b 100644 --- a/icrate/src/Foundation/generated/NSAppleScript.rs +++ b/icrate/src/Foundation/generated/NSAppleScript.rs @@ -5,6 +5,26 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSAppleScriptErrorMessage: &'static NSString; +} + +extern "C" { + static NSAppleScriptErrorNumber: &'static NSString; +} + +extern "C" { + static NSAppleScriptErrorAppName: &'static NSString; +} + +extern "C" { + static NSAppleScriptErrorBriefMessage: &'static NSString; +} + +extern "C" { + static NSAppleScriptErrorRange: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSAppleScript; diff --git a/icrate/src/Foundation/generated/NSAttributedString.rs b/icrate/src/Foundation/generated/NSAttributedString.rs index a2a916c83..e38098d06 100644 --- a/icrate/src/Foundation/generated/NSAttributedString.rs +++ b/icrate/src/Foundation/generated/NSAttributedString.rs @@ -198,6 +198,22 @@ pub const NSInlinePresentationIntentLineBreak: NSInlinePresentationIntent = 1 << pub const NSInlinePresentationIntentInlineHTML: NSInlinePresentationIntent = 1 << 8; pub const NSInlinePresentationIntentBlockHTML: NSInlinePresentationIntent = 1 << 9; +extern "C" { + static NSInlinePresentationIntentAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSAlternateDescriptionAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSImageURLAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSLanguageIdentifierAttributeName: &'static NSAttributedStringKey; +} + pub type NSAttributedStringMarkdownParsingFailurePolicy = NSInteger; pub const NSAttributedStringMarkdownParsingFailureReturnError: NSAttributedStringMarkdownParsingFailurePolicy = 0; @@ -312,6 +328,10 @@ extern_methods!( unsafe impl NSMutableAttributedString {} ); +extern "C" { + static NSReplacementIndexAttributeName: &'static NSAttributedStringKey; +} + extern_methods!( /// NSMorphology unsafe impl NSAttributedString { @@ -320,6 +340,22 @@ extern_methods!( } ); +extern "C" { + static NSMorphologyAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSInflectionRuleAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSInflectionAlternativeAttributeName: &'static NSAttributedStringKey; +} + +extern "C" { + static NSPresentationIntentAttributeName: &'static NSAttributedStringKey; +} + pub type NSPresentationIntentKind = NSInteger; pub const NSPresentationIntentKindParagraph: NSPresentationIntentKind = 0; pub const NSPresentationIntentKindHeader: NSPresentationIntentKind = 1; diff --git a/icrate/src/Foundation/generated/NSBundle.rs b/icrate/src/Foundation/generated/NSBundle.rs index 9c6643387..14bcfbaef 100644 --- a/icrate/src/Foundation/generated/NSBundle.rs +++ b/icrate/src/Foundation/generated/NSBundle.rs @@ -294,6 +294,14 @@ extern_methods!( } ); +extern "C" { + static NSBundleDidLoadNotification: &'static NSNotificationName; +} + +extern "C" { + static NSLoadedClasses: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSBundleResourceRequest; @@ -364,3 +372,11 @@ extern_methods!( pub unsafe fn preservationPriorityForTag(&self, tag: &NSString) -> c_double; } ); + +extern "C" { + static NSBundleResourceRequestLowDiskSpaceNotification: &'static NSNotificationName; +} + +extern "C" { + static NSBundleResourceRequestLoadingPriorityUrgent: c_double; +} diff --git a/icrate/src/Foundation/generated/NSCalendar.rs b/icrate/src/Foundation/generated/NSCalendar.rs index de0e90637..be7a218b6 100644 --- a/icrate/src/Foundation/generated/NSCalendar.rs +++ b/icrate/src/Foundation/generated/NSCalendar.rs @@ -7,6 +7,70 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSCalendarIdentifier = NSString; +extern "C" { + static NSCalendarIdentifierGregorian: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierBuddhist: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierChinese: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierCoptic: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierEthiopicAmeteMihret: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierEthiopicAmeteAlem: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierHebrew: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierISO8601: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierIndian: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierIslamic: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierIslamicCivil: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierJapanese: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierPersian: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierRepublicOfChina: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierIslamicTabular: &'static NSCalendarIdentifier; +} + +extern "C" { + static NSCalendarIdentifierIslamicUmmAlQura: &'static NSCalendarIdentifier; +} + pub type NSCalendarUnit = NSUInteger; pub const NSCalendarUnitEra: NSCalendarUnit = kCFCalendarUnitEra; pub const NSCalendarUnitYear: NSCalendarUnit = kCFCalendarUnitYear; @@ -431,6 +495,10 @@ extern_methods!( } ); +extern "C" { + static NSCalendarDayChangedNotification: &'static NSNotificationName; +} + pub const NSDateComponentUndefined: i32 = 9223372036854775807; pub const NSUndefinedDateComponent: i32 = NSDateComponentUndefined; diff --git a/icrate/src/Foundation/generated/NSClassDescription.rs b/icrate/src/Foundation/generated/NSClassDescription.rs index 46cd51eed..00fda168f 100644 --- a/icrate/src/Foundation/generated/NSClassDescription.rs +++ b/icrate/src/Foundation/generated/NSClassDescription.rs @@ -69,3 +69,7 @@ extern_methods!( ) -> Option>; } ); + +extern "C" { + static NSClassDescriptionNeededForClassNotification: &'static NSNotificationName; +} diff --git a/icrate/src/Foundation/generated/NSConnection.rs b/icrate/src/Foundation/generated/NSConnection.rs index ff3a22ba1..63fd4882e 100644 --- a/icrate/src/Foundation/generated/NSConnection.rs +++ b/icrate/src/Foundation/generated/NSConnection.rs @@ -173,8 +173,24 @@ extern_methods!( } ); +extern "C" { + static NSConnectionReplyMode: &'static NSString; +} + +extern "C" { + static NSConnectionDidDieNotification: &'static NSString; +} + pub type NSConnectionDelegate = NSObject; +extern "C" { + static NSFailedAuthenticationException: &'static NSString; +} + +extern "C" { + static NSConnectionDidInitializeNotification: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSDistantObjectRequest; diff --git a/icrate/src/Foundation/generated/NSDate.rs b/icrate/src/Foundation/generated/NSDate.rs index 8d1d27d85..ca0728be4 100644 --- a/icrate/src/Foundation/generated/NSDate.rs +++ b/icrate/src/Foundation/generated/NSDate.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSSystemClockDidChangeNotification: &'static NSNotificationName; +} + extern_class!( #[derive(Debug)] pub struct NSDate; diff --git a/icrate/src/Foundation/generated/NSDecimalNumber.rs b/icrate/src/Foundation/generated/NSDecimalNumber.rs index 33ab91812..0ccbaf8bf 100644 --- a/icrate/src/Foundation/generated/NSDecimalNumber.rs +++ b/icrate/src/Foundation/generated/NSDecimalNumber.rs @@ -5,6 +5,22 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSDecimalNumberExactnessException: &'static NSExceptionName; +} + +extern "C" { + static NSDecimalNumberOverflowException: &'static NSExceptionName; +} + +extern "C" { + static NSDecimalNumberUnderflowException: &'static NSExceptionName; +} + +extern "C" { + static NSDecimalNumberDivideByZeroException: &'static NSExceptionName; +} + pub type NSDecimalNumberBehaviors = NSObject; extern_class!( diff --git a/icrate/src/Foundation/generated/NSDistributedNotificationCenter.rs b/icrate/src/Foundation/generated/NSDistributedNotificationCenter.rs index fecf920c0..a071efa85 100644 --- a/icrate/src/Foundation/generated/NSDistributedNotificationCenter.rs +++ b/icrate/src/Foundation/generated/NSDistributedNotificationCenter.rs @@ -7,6 +7,10 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSDistributedNotificationCenterType = NSString; +extern "C" { + static NSLocalNotificationCenterType: &'static NSDistributedNotificationCenterType; +} + pub type NSNotificationSuspensionBehavior = NSUInteger; pub const NSNotificationSuspensionBehaviorDrop: NSNotificationSuspensionBehavior = 1; pub const NSNotificationSuspensionBehaviorCoalesce: NSNotificationSuspensionBehavior = 2; @@ -17,6 +21,12 @@ pub type NSDistributedNotificationOptions = NSUInteger; pub const NSDistributedNotificationDeliverImmediately: NSDistributedNotificationOptions = (1 << 0); pub const NSDistributedNotificationPostToAllSessions: NSDistributedNotificationOptions = (1 << 1); +static NSNotificationDeliverImmediately: NSDistributedNotificationOptions = + NSDistributedNotificationDeliverImmediately; + +static NSNotificationPostToAllSessions: NSDistributedNotificationOptions = + NSDistributedNotificationPostToAllSessions; + extern_class!( #[derive(Debug)] pub struct NSDistributedNotificationCenter; diff --git a/icrate/src/Foundation/generated/NSError.rs b/icrate/src/Foundation/generated/NSError.rs index 2d54bb686..202cbc502 100644 --- a/icrate/src/Foundation/generated/NSError.rs +++ b/icrate/src/Foundation/generated/NSError.rs @@ -7,8 +7,76 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSErrorDomain = NSString; +extern "C" { + static NSCocoaErrorDomain: &'static NSErrorDomain; +} + +extern "C" { + static NSPOSIXErrorDomain: &'static NSErrorDomain; +} + +extern "C" { + static NSOSStatusErrorDomain: &'static NSErrorDomain; +} + +extern "C" { + static NSMachErrorDomain: &'static NSErrorDomain; +} + pub type NSErrorUserInfoKey = NSString; +extern "C" { + static NSUnderlyingErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSMultipleUnderlyingErrorsKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSLocalizedDescriptionKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSLocalizedFailureReasonErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSLocalizedRecoverySuggestionErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSLocalizedRecoveryOptionsErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSRecoveryAttempterErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSHelpAnchorErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSDebugDescriptionErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSLocalizedFailureErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSStringEncodingErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSURLErrorKey: &'static NSErrorUserInfoKey; +} + +extern "C" { + static NSFilePathErrorKey: &'static NSErrorUserInfoKey; +} + extern_class!( #[derive(Debug)] pub struct NSError; diff --git a/icrate/src/Foundation/generated/NSException.rs b/icrate/src/Foundation/generated/NSException.rs index c1eeda957..5697c7e28 100644 --- a/icrate/src/Foundation/generated/NSException.rs +++ b/icrate/src/Foundation/generated/NSException.rs @@ -5,6 +5,66 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSGenericException: &'static NSExceptionName; +} + +extern "C" { + static NSRangeException: &'static NSExceptionName; +} + +extern "C" { + static NSInvalidArgumentException: &'static NSExceptionName; +} + +extern "C" { + static NSInternalInconsistencyException: &'static NSExceptionName; +} + +extern "C" { + static NSMallocException: &'static NSExceptionName; +} + +extern "C" { + static NSObjectInaccessibleException: &'static NSExceptionName; +} + +extern "C" { + static NSObjectNotAvailableException: &'static NSExceptionName; +} + +extern "C" { + static NSDestinationInvalidException: &'static NSExceptionName; +} + +extern "C" { + static NSPortTimeoutException: &'static NSExceptionName; +} + +extern "C" { + static NSInvalidSendPortException: &'static NSExceptionName; +} + +extern "C" { + static NSInvalidReceivePortException: &'static NSExceptionName; +} + +extern "C" { + static NSPortSendException: &'static NSExceptionName; +} + +extern "C" { + static NSPortReceiveException: &'static NSExceptionName; +} + +extern "C" { + static NSOldStyleException: &'static NSExceptionName; +} + +extern "C" { + static NSInconsistentArchiveException: &'static NSExceptionName; +} + extern_class!( #[derive(Debug)] pub struct NSException; @@ -63,6 +123,10 @@ extern_methods!( } ); +extern "C" { + static NSAssertionHandlerKey: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSAssertionHandler; diff --git a/icrate/src/Foundation/generated/NSExtensionContext.rs b/icrate/src/Foundation/generated/NSExtensionContext.rs index 5d7cf4d07..dbbeaecd2 100644 --- a/icrate/src/Foundation/generated/NSExtensionContext.rs +++ b/icrate/src/Foundation/generated/NSExtensionContext.rs @@ -33,3 +33,23 @@ extern_methods!( pub unsafe fn openURL_completionHandler(&self, URL: &NSURL, completionHandler: TodoBlock); } ); + +extern "C" { + static NSExtensionItemsAndErrorsKey: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionHostWillEnterForegroundNotification: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionHostDidEnterBackgroundNotification: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionHostWillResignActiveNotification: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionHostDidBecomeActiveNotification: Option<&'static NSString>; +} diff --git a/icrate/src/Foundation/generated/NSExtensionItem.rs b/icrate/src/Foundation/generated/NSExtensionItem.rs index b6e5f4665..97f9eab7a 100644 --- a/icrate/src/Foundation/generated/NSExtensionItem.rs +++ b/icrate/src/Foundation/generated/NSExtensionItem.rs @@ -44,3 +44,15 @@ extern_methods!( pub unsafe fn setUserInfo(&self, userInfo: Option<&NSDictionary>); } ); + +extern "C" { + static NSExtensionItemAttributedTitleKey: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionItemAttributedContentTextKey: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionItemAttachmentsKey: Option<&'static NSString>; +} diff --git a/icrate/src/Foundation/generated/NSFileHandle.rs b/icrate/src/Foundation/generated/NSFileHandle.rs index 71fc51d42..7b6851805 100644 --- a/icrate/src/Foundation/generated/NSFileHandle.rs +++ b/icrate/src/Foundation/generated/NSFileHandle.rs @@ -116,6 +116,38 @@ extern_methods!( } ); +extern "C" { + static NSFileHandleOperationException: &'static NSExceptionName; +} + +extern "C" { + static NSFileHandleReadCompletionNotification: &'static NSNotificationName; +} + +extern "C" { + static NSFileHandleReadToEndOfFileCompletionNotification: &'static NSNotificationName; +} + +extern "C" { + static NSFileHandleConnectionAcceptedNotification: &'static NSNotificationName; +} + +extern "C" { + static NSFileHandleDataAvailableNotification: &'static NSNotificationName; +} + +extern "C" { + static NSFileHandleNotificationDataItem: &'static NSString; +} + +extern "C" { + static NSFileHandleNotificationFileHandleItem: &'static NSString; +} + +extern "C" { + static NSFileHandleNotificationMonitorModes: &'static NSString; +} + extern_methods!( /// NSFileHandleAsynchronousAccess unsafe impl NSFileHandle { diff --git a/icrate/src/Foundation/generated/NSFileManager.rs b/icrate/src/Foundation/generated/NSFileManager.rs index 75e01525c..b2fc2e052 100644 --- a/icrate/src/Foundation/generated/NSFileManager.rs +++ b/icrate/src/Foundation/generated/NSFileManager.rs @@ -41,6 +41,14 @@ pub type NSFileManagerUnmountOptions = NSUInteger; pub const NSFileManagerUnmountAllPartitionsAndEjectDisk: NSFileManagerUnmountOptions = 1 << 0; pub const NSFileManagerUnmountWithoutUI: NSFileManagerUnmountOptions = 1 << 1; +extern "C" { + static NSFileManagerUnmountDissentingProcessIdentifierErrorKey: &'static NSString; +} + +extern "C" { + static NSUbiquityIdentityDidChangeNotification: &'static NSNotificationName; +} + extern_class!( #[derive(Debug)] pub struct NSFileManager; @@ -558,6 +566,146 @@ extern_methods!( } ); +extern "C" { + static NSFileType: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileTypeDirectory: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileTypeRegular: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileTypeSymbolicLink: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileTypeSocket: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileTypeCharacterSpecial: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileTypeBlockSpecial: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileTypeUnknown: &'static NSFileAttributeType; +} + +extern "C" { + static NSFileSize: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileModificationDate: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileReferenceCount: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileDeviceIdentifier: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileOwnerAccountName: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileGroupOwnerAccountName: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFilePosixPermissions: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileSystemNumber: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileSystemFileNumber: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileExtensionHidden: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileHFSCreatorCode: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileHFSTypeCode: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileImmutable: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileAppendOnly: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileCreationDate: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileOwnerAccountID: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileGroupOwnerAccountID: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileBusy: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileProtectionKey: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileProtectionNone: &'static NSFileProtectionType; +} + +extern "C" { + static NSFileProtectionComplete: &'static NSFileProtectionType; +} + +extern "C" { + static NSFileProtectionCompleteUnlessOpen: &'static NSFileProtectionType; +} + +extern "C" { + static NSFileProtectionCompleteUntilFirstUserAuthentication: &'static NSFileProtectionType; +} + +extern "C" { + static NSFileSystemSize: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileSystemFreeSize: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileSystemNodes: &'static NSFileAttributeKey; +} + +extern "C" { + static NSFileSystemFreeNodes: &'static NSFileAttributeKey; +} + extern_methods!( /// NSFileAttributes unsafe impl NSDictionary { diff --git a/icrate/src/Foundation/generated/NSGeometry.rs b/icrate/src/Foundation/generated/NSGeometry.rs index 664f471e7..7ef59e48f 100644 --- a/icrate/src/Foundation/generated/NSGeometry.rs +++ b/icrate/src/Foundation/generated/NSGeometry.rs @@ -48,6 +48,22 @@ pub const NSAlignAllEdgesOutward: NSAlignmentOptions = pub const NSAlignAllEdgesNearest: NSAlignmentOptions = NSAlignMinXNearest | NSAlignMaxXNearest | NSAlignMinYNearest | NSAlignMaxYNearest; +extern "C" { + static NSZeroPoint: NSPoint; +} + +extern "C" { + static NSZeroSize: NSSize; +} + +extern "C" { + static NSZeroRect: NSRect; +} + +extern "C" { + static NSEdgeInsetsZero: NSEdgeInsets; +} + extern_methods!( /// NSValueGeometryExtensions unsafe impl NSValue { diff --git a/icrate/src/Foundation/generated/NSHTTPCookie.rs b/icrate/src/Foundation/generated/NSHTTPCookie.rs index df6618c5e..85df2d315 100644 --- a/icrate/src/Foundation/generated/NSHTTPCookie.rs +++ b/icrate/src/Foundation/generated/NSHTTPCookie.rs @@ -9,6 +9,70 @@ pub type NSHTTPCookiePropertyKey = NSString; pub type NSHTTPCookieStringPolicy = NSString; +extern "C" { + static NSHTTPCookieName: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieValue: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieOriginURL: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieVersion: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieDomain: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookiePath: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieSecure: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieExpires: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieComment: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieCommentURL: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieDiscard: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieMaximumAge: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookiePort: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieSameSitePolicy: &'static NSHTTPCookiePropertyKey; +} + +extern "C" { + static NSHTTPCookieSameSiteLax: &'static NSHTTPCookieStringPolicy; +} + +extern "C" { + static NSHTTPCookieSameSiteStrict: &'static NSHTTPCookieStringPolicy; +} + extern_class!( #[derive(Debug)] pub struct NSHTTPCookie; diff --git a/icrate/src/Foundation/generated/NSHTTPCookieStorage.rs b/icrate/src/Foundation/generated/NSHTTPCookieStorage.rs index 992bc9ad5..71e83dc5c 100644 --- a/icrate/src/Foundation/generated/NSHTTPCookieStorage.rs +++ b/icrate/src/Foundation/generated/NSHTTPCookieStorage.rs @@ -87,3 +87,11 @@ extern_methods!( ); } ); + +extern "C" { + static NSHTTPCookieManagerAcceptPolicyChangedNotification: &'static NSNotificationName; +} + +extern "C" { + static NSHTTPCookieManagerCookiesChangedNotification: &'static NSNotificationName; +} diff --git a/icrate/src/Foundation/generated/NSHashTable.rs b/icrate/src/Foundation/generated/NSHashTable.rs index f6ac795c9..af7dcbcd6 100644 --- a/icrate/src/Foundation/generated/NSHashTable.rs +++ b/icrate/src/Foundation/generated/NSHashTable.rs @@ -5,6 +5,18 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSHashTableStrongMemory: NSPointerFunctionsOptions = NSPointerFunctionsStrongMemory; + +static NSHashTableZeroingWeakMemory: NSPointerFunctionsOptions = + NSPointerFunctionsZeroingWeakMemory; + +static NSHashTableCopyIn: NSPointerFunctionsOptions = NSPointerFunctionsCopyIn; + +static NSHashTableObjectPointerPersonality: NSPointerFunctionsOptions = + NSPointerFunctionsObjectPointerPersonality; + +static NSHashTableWeakMemory: NSPointerFunctionsOptions = NSPointerFunctionsWeakMemory; + pub type NSHashTableOptions = NSUInteger; __inner_extern_class!( @@ -95,3 +107,35 @@ extern_methods!( pub unsafe fn setRepresentation(&self) -> Id, Shared>; } ); + +extern "C" { + static NSIntegerHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSNonOwnedPointerHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSNonRetainedObjectHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSObjectHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSOwnedObjectIdentityHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSOwnedPointerHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSPointerToStructHashCallBacks: NSHashTableCallBacks; +} + +extern "C" { + static NSIntHashCallBacks: NSHashTableCallBacks; +} diff --git a/icrate/src/Foundation/generated/NSItemProvider.rs b/icrate/src/Foundation/generated/NSItemProvider.rs index 5bf6824d2..a82043cd0 100644 --- a/icrate/src/Foundation/generated/NSItemProvider.rs +++ b/icrate/src/Foundation/generated/NSItemProvider.rs @@ -136,6 +136,10 @@ extern_methods!( } ); +extern "C" { + static NSItemProviderPreferredImageSizeKey: &'static NSString; +} + extern_methods!( /// NSPreviewSupport unsafe impl NSItemProvider { @@ -154,6 +158,18 @@ extern_methods!( } ); +extern "C" { + static NSExtensionJavaScriptPreprocessingResultsKey: Option<&'static NSString>; +} + +extern "C" { + static NSExtensionJavaScriptFinalizeArgumentKey: Option<&'static NSString>; +} + +extern "C" { + static NSItemProviderErrorDomain: &'static NSString; +} + pub type NSItemProviderErrorCode = NSInteger; pub const NSItemProviderUnknownError: NSItemProviderErrorCode = -1; pub const NSItemProviderItemUnavailableError: NSItemProviderErrorCode = -1000; diff --git a/icrate/src/Foundation/generated/NSKeyValueCoding.rs b/icrate/src/Foundation/generated/NSKeyValueCoding.rs index c988142a1..000ffe95d 100644 --- a/icrate/src/Foundation/generated/NSKeyValueCoding.rs +++ b/icrate/src/Foundation/generated/NSKeyValueCoding.rs @@ -5,8 +5,56 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSUndefinedKeyException: &'static NSExceptionName; +} + pub type NSKeyValueOperator = NSString; +extern "C" { + static NSAverageKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSCountKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSDistinctUnionOfArraysKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSDistinctUnionOfObjectsKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSDistinctUnionOfSetsKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSMaximumKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSMinimumKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSSumKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSUnionOfArraysKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSUnionOfObjectsKeyValueOperator: &'static NSKeyValueOperator; +} + +extern "C" { + static NSUnionOfSetsKeyValueOperator: &'static NSKeyValueOperator; +} + extern_methods!( /// NSKeyValueCoding unsafe impl NSObject { diff --git a/icrate/src/Foundation/generated/NSKeyValueObserving.rs b/icrate/src/Foundation/generated/NSKeyValueObserving.rs index 653017c30..123a5a7e7 100644 --- a/icrate/src/Foundation/generated/NSKeyValueObserving.rs +++ b/icrate/src/Foundation/generated/NSKeyValueObserving.rs @@ -25,6 +25,26 @@ pub const NSKeyValueSetSetMutation: NSKeyValueSetMutationKind = 4; pub type NSKeyValueChangeKey = NSString; +extern "C" { + static NSKeyValueChangeKindKey: &'static NSKeyValueChangeKey; +} + +extern "C" { + static NSKeyValueChangeNewKey: &'static NSKeyValueChangeKey; +} + +extern "C" { + static NSKeyValueChangeOldKey: &'static NSKeyValueChangeKey; +} + +extern "C" { + static NSKeyValueChangeIndexesKey: &'static NSKeyValueChangeKey; +} + +extern "C" { + static NSKeyValueChangeNotificationIsPriorKey: &'static NSKeyValueChangeKey; +} + extern_methods!( /// NSKeyValueObserving unsafe impl NSObject { diff --git a/icrate/src/Foundation/generated/NSKeyedArchiver.rs b/icrate/src/Foundation/generated/NSKeyedArchiver.rs index 7fb555545..6b8d2b1ad 100644 --- a/icrate/src/Foundation/generated/NSKeyedArchiver.rs +++ b/icrate/src/Foundation/generated/NSKeyedArchiver.rs @@ -5,6 +5,18 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSInvalidArchiveOperationException: &'static NSExceptionName; +} + +extern "C" { + static NSInvalidUnarchiveOperationException: &'static NSExceptionName; +} + +extern "C" { + static NSKeyedArchiveRootObjectKey: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSKeyedArchiver; diff --git a/icrate/src/Foundation/generated/NSLinguisticTagger.rs b/icrate/src/Foundation/generated/NSLinguisticTagger.rs index a9caea7cb..2eb0a88a3 100644 --- a/icrate/src/Foundation/generated/NSLinguisticTagger.rs +++ b/icrate/src/Foundation/generated/NSLinguisticTagger.rs @@ -7,8 +7,160 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSLinguisticTagScheme = NSString; +extern "C" { + static NSLinguisticTagSchemeTokenType: &'static NSLinguisticTagScheme; +} + +extern "C" { + static NSLinguisticTagSchemeLexicalClass: &'static NSLinguisticTagScheme; +} + +extern "C" { + static NSLinguisticTagSchemeNameType: &'static NSLinguisticTagScheme; +} + +extern "C" { + static NSLinguisticTagSchemeNameTypeOrLexicalClass: &'static NSLinguisticTagScheme; +} + +extern "C" { + static NSLinguisticTagSchemeLemma: &'static NSLinguisticTagScheme; +} + +extern "C" { + static NSLinguisticTagSchemeLanguage: &'static NSLinguisticTagScheme; +} + +extern "C" { + static NSLinguisticTagSchemeScript: &'static NSLinguisticTagScheme; +} + pub type NSLinguisticTag = NSString; +extern "C" { + static NSLinguisticTagWord: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagPunctuation: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagWhitespace: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOther: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagNoun: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagVerb: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagAdjective: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagAdverb: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagPronoun: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagDeterminer: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagParticle: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagPreposition: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagNumber: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagConjunction: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagInterjection: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagClassifier: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagIdiom: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOtherWord: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagSentenceTerminator: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOpenQuote: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagCloseQuote: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOpenParenthesis: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagCloseParenthesis: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagWordJoiner: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagDash: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOtherPunctuation: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagParagraphBreak: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOtherWhitespace: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagPersonalName: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagPlaceName: &'static NSLinguisticTag; +} + +extern "C" { + static NSLinguisticTagOrganizationName: &'static NSLinguisticTag; +} + pub type NSLinguisticTaggerUnit = NSInteger; pub const NSLinguisticTaggerUnitWord: NSLinguisticTaggerUnit = 0; pub const NSLinguisticTaggerUnitSentence: NSLinguisticTaggerUnit = 1; diff --git a/icrate/src/Foundation/generated/NSLocale.rs b/icrate/src/Foundation/generated/NSLocale.rs index da3a75793..b497d7a8e 100644 --- a/icrate/src/Foundation/generated/NSLocale.rs +++ b/icrate/src/Foundation/generated/NSLocale.rs @@ -240,3 +240,127 @@ extern_methods!( -> NSLocaleLanguageDirection; } ); + +extern "C" { + static NSCurrentLocaleDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSLocaleIdentifier: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleLanguageCode: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleCountryCode: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleScriptCode: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleVariantCode: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleExemplarCharacterSet: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleCalendar: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleCollationIdentifier: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleUsesMetricSystem: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleMeasurementSystem: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleDecimalSeparator: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleGroupingSeparator: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleCurrencySymbol: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleCurrencyCode: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleCollatorIdentifier: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleQuotationBeginDelimiterKey: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleQuotationEndDelimiterKey: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleAlternateQuotationBeginDelimiterKey: &'static NSLocaleKey; +} + +extern "C" { + static NSLocaleAlternateQuotationEndDelimiterKey: &'static NSLocaleKey; +} + +extern "C" { + static NSGregorianCalendar: &'static NSString; +} + +extern "C" { + static NSBuddhistCalendar: &'static NSString; +} + +extern "C" { + static NSChineseCalendar: &'static NSString; +} + +extern "C" { + static NSHebrewCalendar: &'static NSString; +} + +extern "C" { + static NSIslamicCalendar: &'static NSString; +} + +extern "C" { + static NSIslamicCivilCalendar: &'static NSString; +} + +extern "C" { + static NSJapaneseCalendar: &'static NSString; +} + +extern "C" { + static NSRepublicOfChinaCalendar: &'static NSString; +} + +extern "C" { + static NSPersianCalendar: &'static NSString; +} + +extern "C" { + static NSIndianCalendar: &'static NSString; +} + +extern "C" { + static NSISO8601Calendar: &'static NSString; +} diff --git a/icrate/src/Foundation/generated/NSMapTable.rs b/icrate/src/Foundation/generated/NSMapTable.rs index 3d8033530..85d8bb577 100644 --- a/icrate/src/Foundation/generated/NSMapTable.rs +++ b/icrate/src/Foundation/generated/NSMapTable.rs @@ -5,6 +5,17 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSMapTableStrongMemory: NSPointerFunctionsOptions = NSPointerFunctionsStrongMemory; + +static NSMapTableZeroingWeakMemory: NSPointerFunctionsOptions = NSPointerFunctionsZeroingWeakMemory; + +static NSMapTableCopyIn: NSPointerFunctionsOptions = NSPointerFunctionsCopyIn; + +static NSMapTableObjectPointerPersonality: NSPointerFunctionsOptions = + NSPointerFunctionsObjectPointerPersonality; + +static NSMapTableWeakMemory: NSPointerFunctionsOptions = NSPointerFunctionsWeakMemory; + pub type NSMapTableOptions = NSUInteger; __inner_extern_class!( @@ -102,3 +113,55 @@ extern_methods!( ) -> Id, Shared>; } ); + +extern "C" { + static NSIntegerMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSNonOwnedPointerMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSNonOwnedPointerOrNullMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSNonRetainedObjectMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSObjectMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSOwnedPointerMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSIntMapKeyCallBacks: NSMapTableKeyCallBacks; +} + +extern "C" { + static NSIntegerMapValueCallBacks: NSMapTableValueCallBacks; +} + +extern "C" { + static NSNonOwnedPointerMapValueCallBacks: NSMapTableValueCallBacks; +} + +extern "C" { + static NSObjectMapValueCallBacks: NSMapTableValueCallBacks; +} + +extern "C" { + static NSNonRetainedObjectMapValueCallBacks: NSMapTableValueCallBacks; +} + +extern "C" { + static NSOwnedPointerMapValueCallBacks: NSMapTableValueCallBacks; +} + +extern "C" { + static NSIntMapValueCallBacks: NSMapTableValueCallBacks; +} diff --git a/icrate/src/Foundation/generated/NSMetadata.rs b/icrate/src/Foundation/generated/NSMetadata.rs index 35f4bd84b..916a077bf 100644 --- a/icrate/src/Foundation/generated/NSMetadata.rs +++ b/icrate/src/Foundation/generated/NSMetadata.rs @@ -135,6 +135,70 @@ extern_methods!( pub type NSMetadataQueryDelegate = NSObject; +extern "C" { + static NSMetadataQueryDidStartGatheringNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMetadataQueryGatheringProgressNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMetadataQueryDidFinishGatheringNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMetadataQueryDidUpdateNotification: &'static NSNotificationName; +} + +extern "C" { + static NSMetadataQueryUpdateAddedItemsKey: &'static NSString; +} + +extern "C" { + static NSMetadataQueryUpdateChangedItemsKey: &'static NSString; +} + +extern "C" { + static NSMetadataQueryUpdateRemovedItemsKey: &'static NSString; +} + +extern "C" { + static NSMetadataQueryResultContentRelevanceAttribute: &'static NSString; +} + +extern "C" { + static NSMetadataQueryUserHomeScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryLocalComputerScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryNetworkScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryIndexedLocalComputerScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryIndexedNetworkScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryUbiquitousDocumentsScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryUbiquitousDataScope: &'static NSString; +} + +extern "C" { + static NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSMetadataItem; diff --git a/icrate/src/Foundation/generated/NSMetadataAttributes.rs b/icrate/src/Foundation/generated/NSMetadataAttributes.rs index 9810872e4..71c7db339 100644 --- a/icrate/src/Foundation/generated/NSMetadataAttributes.rs +++ b/icrate/src/Foundation/generated/NSMetadataAttributes.rs @@ -4,3 +4,727 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; + +extern "C" { + static NSMetadataItemFSNameKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDisplayNameKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemURLKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPathKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFSSizeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFSCreationDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFSContentChangeDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemContentTypeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemContentTypeTreeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemIsUbiquitousKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemHasUnresolvedConflictsKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemIsDownloadedKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemDownloadingStatusKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemDownloadingStatusNotDownloaded: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemDownloadingStatusDownloaded: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemDownloadingStatusCurrent: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemIsDownloadingKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemIsUploadedKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemIsUploadingKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemPercentDownloadedKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemPercentUploadedKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemDownloadingErrorKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemUploadingErrorKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemDownloadRequestedKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemIsExternalDocumentKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemContainerDisplayNameKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemURLInLocalContainerKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousItemIsSharedKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemCurrentUserRoleKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemOwnerNameComponentsKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemRoleOwner: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemRoleParticipant: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemPermissionsReadOnly: &'static NSString; +} + +extern "C" { + static NSMetadataUbiquitousSharedItemPermissionsReadWrite: &'static NSString; +} + +extern "C" { + static NSMetadataItemAttributeChangeDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemKeywordsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemTitleKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAuthorsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemEditorsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemParticipantsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemProjectsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDownloadedDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemWhereFromsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCommentKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCopyrightKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLastUsedDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemContentCreationDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemContentModificationDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDateAddedKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDurationSecondsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemContactKeywordsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemVersionKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPixelHeightKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPixelWidthKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPixelCountKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemColorSpaceKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemBitsPerSampleKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFlashOnOffKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFocalLengthKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAcquisitionMakeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAcquisitionModelKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemISOSpeedKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemOrientationKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLayerNamesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemWhiteBalanceKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemApertureKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemProfileNameKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemResolutionWidthDPIKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemResolutionHeightDPIKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemExposureModeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemExposureTimeSecondsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemEXIFVersionKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCameraOwnerKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFocalLength35mmKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLensModelKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemEXIFGPSVersionKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAltitudeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLatitudeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLongitudeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemSpeedKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemTimestampKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSTrackKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemImageDirectionKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemNamedLocationKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSStatusKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSMeasureModeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDOPKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSMapDatumKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDestLatitudeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDestLongitudeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDestBearingKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDestDistanceKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSProcessingMethodKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSAreaInformationKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDateStampKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGPSDifferentalKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCodecsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemMediaTypesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemStreamableKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemTotalBitRateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemVideoBitRateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAudioBitRateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDeliveryTypeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAlbumKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemHasAlphaChannelKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRedEyeOnOffKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemMeteringModeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemMaxApertureKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFNumberKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemExposureProgramKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemExposureTimeStringKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemHeadlineKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemInstructionsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCityKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemStateOrProvinceKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCountryKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemTextContentKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAudioSampleRateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAudioChannelCountKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemTempoKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemKeySignatureKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemTimeSignatureKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAudioEncodingApplicationKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemComposerKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLyricistKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAudioTrackNumberKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRecordingDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemMusicalGenreKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemIsGeneralMIDISequenceKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRecordingYearKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemOrganizationsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemLanguagesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRightsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPublishersKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemContributorsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCoverageKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemSubjectKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemThemeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDescriptionKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemIdentifierKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAudiencesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemNumberOfPagesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPageWidthKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPageHeightKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemSecurityMethodKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCreatorKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemEncodingApplicationsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDueDateKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemStarRatingKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPhoneNumbersKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemEmailAddressesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemInstantMessageAddressesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemKindKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRecipientsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFinderCommentKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemFontsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAppleLoopsRootKeyKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAppleLoopsKeyFilterTypeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAppleLoopsLoopModeKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAppleLoopDescriptorsKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemMusicalInstrumentCategoryKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemMusicalInstrumentNameKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemCFBundleIdentifierKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemInformationKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemDirectorKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemProducerKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemGenreKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemPerformersKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemOriginalFormatKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemOriginalSourceKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAuthorEmailAddressesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRecipientEmailAddressesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemAuthorAddressesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemRecipientAddressesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemIsLikelyJunkKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemExecutableArchitecturesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemExecutablePlatformKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemApplicationCategoriesKey: &'static NSString; +} + +extern "C" { + static NSMetadataItemIsApplicationManagedKey: &'static NSString; +} diff --git a/icrate/src/Foundation/generated/NSNetServices.rs b/icrate/src/Foundation/generated/NSNetServices.rs index d899d55ac..15b45c1ba 100644 --- a/icrate/src/Foundation/generated/NSNetServices.rs +++ b/icrate/src/Foundation/generated/NSNetServices.rs @@ -5,6 +5,14 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSNetServicesErrorCode: &'static NSString; +} + +extern "C" { + static NSNetServicesErrorDomain: &'static NSErrorDomain; +} + pub type NSNetServicesError = NSInteger; pub const NSNetServicesUnknownError: NSNetServicesError = -72000; pub const NSNetServicesCollisionError: NSNetServicesError = -72001; diff --git a/icrate/src/Foundation/generated/NSObjCRuntime.rs b/icrate/src/Foundation/generated/NSObjCRuntime.rs index 6c7f67725..5594e34a2 100644 --- a/icrate/src/Foundation/generated/NSObjCRuntime.rs +++ b/icrate/src/Foundation/generated/NSObjCRuntime.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSFoundationVersionNumber: c_double; +} + pub type NSExceptionName = NSString; pub type NSRunLoopMode = NSString; @@ -28,3 +32,5 @@ pub const NSQualityOfServiceUserInitiated: NSQualityOfService = 0x19; pub const NSQualityOfServiceUtility: NSQualityOfService = 0x11; pub const NSQualityOfServiceBackground: NSQualityOfService = 0x09; pub const NSQualityOfServiceDefault: NSQualityOfService = -1; + +static NSNotFound: NSInteger = todo; diff --git a/icrate/src/Foundation/generated/NSOperation.rs b/icrate/src/Foundation/generated/NSOperation.rs index 86ff4bb50..51e019263 100644 --- a/icrate/src/Foundation/generated/NSOperation.rs +++ b/icrate/src/Foundation/generated/NSOperation.rs @@ -143,6 +143,16 @@ extern_methods!( } ); +extern "C" { + static NSInvocationOperationVoidResultException: &'static NSExceptionName; +} + +extern "C" { + static NSInvocationOperationCancelledException: &'static NSExceptionName; +} + +static NSOperationQueueDefaultMaxConcurrentOperationCount: NSInteger = -1; + extern_class!( #[derive(Debug)] pub struct NSOperationQueue; diff --git a/icrate/src/Foundation/generated/NSPersonNameComponentsFormatter.rs b/icrate/src/Foundation/generated/NSPersonNameComponentsFormatter.rs index 52d75bd48..f9d1ffbcb 100644 --- a/icrate/src/Foundation/generated/NSPersonNameComponentsFormatter.rs +++ b/icrate/src/Foundation/generated/NSPersonNameComponentsFormatter.rs @@ -79,3 +79,35 @@ extern_methods!( ) -> bool; } ); + +extern "C" { + static NSPersonNameComponentKey: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentGivenName: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentFamilyName: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentMiddleName: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentPrefix: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentSuffix: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentNickname: &'static NSString; +} + +extern "C" { + static NSPersonNameComponentDelimiter: &'static NSString; +} diff --git a/icrate/src/Foundation/generated/NSPort.rs b/icrate/src/Foundation/generated/NSPort.rs index 641979936..d4644ebf0 100644 --- a/icrate/src/Foundation/generated/NSPort.rs +++ b/icrate/src/Foundation/generated/NSPort.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSPortDidBecomeInvalidNotification: &'static NSNotificationName; +} + extern_class!( #[derive(Debug)] pub struct NSPort; diff --git a/icrate/src/Foundation/generated/NSProcessInfo.rs b/icrate/src/Foundation/generated/NSProcessInfo.rs index 8658ad868..79e3df528 100644 --- a/icrate/src/Foundation/generated/NSProcessInfo.rs +++ b/icrate/src/Foundation/generated/NSProcessInfo.rs @@ -176,6 +176,14 @@ extern_methods!( } ); +extern "C" { + static NSProcessInfoThermalStateDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSProcessInfoPowerStateDidChangeNotification: &'static NSNotificationName; +} + extern_methods!( /// NSProcessInfoPlatform unsafe impl NSProcessInfo { diff --git a/icrate/src/Foundation/generated/NSProgress.rs b/icrate/src/Foundation/generated/NSProgress.rs index 2670d02e5..4dadd911f 100644 --- a/icrate/src/Foundation/generated/NSProgress.rs +++ b/icrate/src/Foundation/generated/NSProgress.rs @@ -224,3 +224,68 @@ extern_methods!( ); pub type NSProgressReporting = NSObject; + +extern "C" { + static NSProgressEstimatedTimeRemainingKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressThroughputKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressKindFile: &'static NSProgressKind; +} + +extern "C" { + static NSProgressFileOperationKindKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressFileOperationKindDownloading: &'static NSProgressFileOperationKind; +} + +extern "C" { + static NSProgressFileOperationKindDecompressingAfterDownloading: + &'static NSProgressFileOperationKind; +} + +extern "C" { + static NSProgressFileOperationKindReceiving: &'static NSProgressFileOperationKind; +} + +extern "C" { + static NSProgressFileOperationKindCopying: &'static NSProgressFileOperationKind; +} + +extern "C" { + static NSProgressFileOperationKindUploading: &'static NSProgressFileOperationKind; +} + +extern "C" { + static NSProgressFileOperationKindDuplicating: &'static NSProgressFileOperationKind; +} + +extern "C" { + static NSProgressFileURLKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressFileTotalCountKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressFileCompletedCountKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressFileAnimationImageKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressFileAnimationImageOriginalRectKey: &'static NSProgressUserInfoKey; +} + +extern "C" { + static NSProgressFileIconKey: &'static NSProgressUserInfoKey; +} diff --git a/icrate/src/Foundation/generated/NSRunLoop.rs b/icrate/src/Foundation/generated/NSRunLoop.rs index 650d1aa60..291f6d8a3 100644 --- a/icrate/src/Foundation/generated/NSRunLoop.rs +++ b/icrate/src/Foundation/generated/NSRunLoop.rs @@ -5,6 +5,14 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSDefaultRunLoopMode: &'static NSRunLoopMode; +} + +extern "C" { + static NSRunLoopCommonModes: &'static NSRunLoopMode; +} + extern_class!( #[derive(Debug)] pub struct NSRunLoop; diff --git a/icrate/src/Foundation/generated/NSScriptKeyValueCoding.rs b/icrate/src/Foundation/generated/NSScriptKeyValueCoding.rs index 91abe6c14..fce3eca7a 100644 --- a/icrate/src/Foundation/generated/NSScriptKeyValueCoding.rs +++ b/icrate/src/Foundation/generated/NSScriptKeyValueCoding.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSOperationNotSupportedForKeyException: &'static NSString; +} + extern_methods!( /// NSScriptKeyValueCoding unsafe impl NSObject { diff --git a/icrate/src/Foundation/generated/NSSpellServer.rs b/icrate/src/Foundation/generated/NSSpellServer.rs index 6644c828b..6c122601c 100644 --- a/icrate/src/Foundation/generated/NSSpellServer.rs +++ b/icrate/src/Foundation/generated/NSSpellServer.rs @@ -41,4 +41,16 @@ extern_methods!( } ); +extern "C" { + static NSGrammarRange: &'static NSString; +} + +extern "C" { + static NSGrammarUserDescription: &'static NSString; +} + +extern "C" { + static NSGrammarCorrections: &'static NSString; +} + pub type NSSpellServerDelegate = NSObject; diff --git a/icrate/src/Foundation/generated/NSStream.rs b/icrate/src/Foundation/generated/NSStream.rs index 05c2ae080..14bfcab9a 100644 --- a/icrate/src/Foundation/generated/NSStream.rs +++ b/icrate/src/Foundation/generated/NSStream.rs @@ -228,10 +228,106 @@ extern_methods!( pub type NSStreamDelegate = NSObject; +extern "C" { + static NSStreamSocketSecurityLevelKey: &'static NSStreamPropertyKey; +} + pub type NSStreamSocketSecurityLevel = NSString; +extern "C" { + static NSStreamSocketSecurityLevelNone: &'static NSStreamSocketSecurityLevel; +} + +extern "C" { + static NSStreamSocketSecurityLevelSSLv2: &'static NSStreamSocketSecurityLevel; +} + +extern "C" { + static NSStreamSocketSecurityLevelSSLv3: &'static NSStreamSocketSecurityLevel; +} + +extern "C" { + static NSStreamSocketSecurityLevelTLSv1: &'static NSStreamSocketSecurityLevel; +} + +extern "C" { + static NSStreamSocketSecurityLevelNegotiatedSSL: &'static NSStreamSocketSecurityLevel; +} + +extern "C" { + static NSStreamSOCKSProxyConfigurationKey: &'static NSStreamPropertyKey; +} + pub type NSStreamSOCKSProxyConfiguration = NSString; +extern "C" { + static NSStreamSOCKSProxyHostKey: &'static NSStreamSOCKSProxyConfiguration; +} + +extern "C" { + static NSStreamSOCKSProxyPortKey: &'static NSStreamSOCKSProxyConfiguration; +} + +extern "C" { + static NSStreamSOCKSProxyVersionKey: &'static NSStreamSOCKSProxyConfiguration; +} + +extern "C" { + static NSStreamSOCKSProxyUserKey: &'static NSStreamSOCKSProxyConfiguration; +} + +extern "C" { + static NSStreamSOCKSProxyPasswordKey: &'static NSStreamSOCKSProxyConfiguration; +} + pub type NSStreamSOCKSProxyVersion = NSString; +extern "C" { + static NSStreamSOCKSProxyVersion4: &'static NSStreamSOCKSProxyVersion; +} + +extern "C" { + static NSStreamSOCKSProxyVersion5: &'static NSStreamSOCKSProxyVersion; +} + +extern "C" { + static NSStreamDataWrittenToMemoryStreamKey: &'static NSStreamPropertyKey; +} + +extern "C" { + static NSStreamFileCurrentOffsetKey: &'static NSStreamPropertyKey; +} + +extern "C" { + static NSStreamSocketSSLErrorDomain: &'static NSErrorDomain; +} + +extern "C" { + static NSStreamSOCKSErrorDomain: &'static NSErrorDomain; +} + +extern "C" { + static NSStreamNetworkServiceType: &'static NSStreamPropertyKey; +} + pub type NSStreamNetworkServiceTypeValue = NSString; + +extern "C" { + static NSStreamNetworkServiceTypeVoIP: &'static NSStreamNetworkServiceTypeValue; +} + +extern "C" { + static NSStreamNetworkServiceTypeVideo: &'static NSStreamNetworkServiceTypeValue; +} + +extern "C" { + static NSStreamNetworkServiceTypeBackground: &'static NSStreamNetworkServiceTypeValue; +} + +extern "C" { + static NSStreamNetworkServiceTypeVoice: &'static NSStreamNetworkServiceTypeValue; +} + +extern "C" { + static NSStreamNetworkServiceTypeCallSignaling: &'static NSStreamNetworkServiceTypeValue; +} diff --git a/icrate/src/Foundation/generated/NSString.rs b/icrate/src/Foundation/generated/NSString.rs index e6f07454b..58bd01d45 100644 --- a/icrate/src/Foundation/generated/NSString.rs +++ b/icrate/src/Foundation/generated/NSString.rs @@ -85,6 +85,70 @@ pub const NSStringEnumerationLocalized: NSStringEnumerationOptions = 1 << 10; pub type NSStringTransform = NSString; +extern "C" { + static NSStringTransformLatinToKatakana: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToHiragana: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToHangul: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToArabic: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToHebrew: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToThai: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToCyrillic: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformLatinToGreek: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformToLatin: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformMandarinToLatin: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformHiraganaToKatakana: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformFullwidthToHalfwidth: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformToXMLHex: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformToUnicodeName: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformStripCombiningMarks: &'static NSStringTransform; +} + +extern "C" { + static NSStringTransformStripDiacritics: &'static NSStringTransform; +} + extern_methods!( /// NSStringExtensionMethods unsafe impl NSString { @@ -642,6 +706,38 @@ extern_methods!( pub type NSStringEncodingDetectionOptionsKey = NSString; +extern "C" { + static NSStringEncodingDetectionSuggestedEncodingsKey: + &'static NSStringEncodingDetectionOptionsKey; +} + +extern "C" { + static NSStringEncodingDetectionDisallowedEncodingsKey: + &'static NSStringEncodingDetectionOptionsKey; +} + +extern "C" { + static NSStringEncodingDetectionUseOnlySuggestedEncodingsKey: + &'static NSStringEncodingDetectionOptionsKey; +} + +extern "C" { + static NSStringEncodingDetectionAllowLossyKey: &'static NSStringEncodingDetectionOptionsKey; +} + +extern "C" { + static NSStringEncodingDetectionFromWindowsKey: &'static NSStringEncodingDetectionOptionsKey; +} + +extern "C" { + static NSStringEncodingDetectionLossySubstitutionKey: + &'static NSStringEncodingDetectionOptionsKey; +} + +extern "C" { + static NSStringEncodingDetectionLikelyLanguageKey: &'static NSStringEncodingDetectionOptionsKey; +} + extern_methods!( /// NSStringEncodingDetection unsafe impl NSString { @@ -721,6 +817,14 @@ extern_methods!( } ); +extern "C" { + static NSCharacterConversionException: &'static NSExceptionName; +} + +extern "C" { + static NSParseErrorException: &'static NSExceptionName; +} + extern_methods!( /// NSExtendedStringPropertyListParsing unsafe impl NSString { diff --git a/icrate/src/Foundation/generated/NSTask.rs b/icrate/src/Foundation/generated/NSTask.rs index 07117fe88..6abc65449 100644 --- a/icrate/src/Foundation/generated/NSTask.rs +++ b/icrate/src/Foundation/generated/NSTask.rs @@ -147,3 +147,7 @@ extern_methods!( ) -> Id; } ); + +extern "C" { + static NSTaskDidTerminateNotification: &'static NSNotificationName; +} diff --git a/icrate/src/Foundation/generated/NSTextCheckingResult.rs b/icrate/src/Foundation/generated/NSTextCheckingResult.rs index 5ff7fda1e..3e0c5c928 100644 --- a/icrate/src/Foundation/generated/NSTextCheckingResult.rs +++ b/icrate/src/Foundation/generated/NSTextCheckingResult.rs @@ -110,6 +110,50 @@ extern_methods!( } ); +extern "C" { + static NSTextCheckingNameKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingJobTitleKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingOrganizationKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingStreetKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingCityKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingStateKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingZIPKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingCountryKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingPhoneKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingAirlineKey: &'static NSTextCheckingKey; +} + +extern "C" { + static NSTextCheckingFlightKey: &'static NSTextCheckingKey; +} + extern_methods!( /// NSTextCheckingResultCreation unsafe impl NSTextCheckingResult { diff --git a/icrate/src/Foundation/generated/NSThread.rs b/icrate/src/Foundation/generated/NSThread.rs index 55d4763a9..00b0b893d 100644 --- a/icrate/src/Foundation/generated/NSThread.rs +++ b/icrate/src/Foundation/generated/NSThread.rs @@ -123,6 +123,18 @@ extern_methods!( } ); +extern "C" { + static NSWillBecomeMultiThreadedNotification: &'static NSNotificationName; +} + +extern "C" { + static NSDidBecomeSingleThreadedNotification: &'static NSNotificationName; +} + +extern "C" { + static NSThreadWillExitNotification: &'static NSNotificationName; +} + extern_methods!( /// NSThreadPerformAdditions unsafe impl NSObject { diff --git a/icrate/src/Foundation/generated/NSTimeZone.rs b/icrate/src/Foundation/generated/NSTimeZone.rs index 7f4b70e37..f02674bb0 100644 --- a/icrate/src/Foundation/generated/NSTimeZone.rs +++ b/icrate/src/Foundation/generated/NSTimeZone.rs @@ -142,3 +142,7 @@ extern_methods!( -> Option>; } ); + +extern "C" { + static NSSystemTimeZoneDidChangeNotification: &'static NSNotificationName; +} diff --git a/icrate/src/Foundation/generated/NSURL.rs b/icrate/src/Foundation/generated/NSURL.rs index cc4649c80..d8900f1e0 100644 --- a/icrate/src/Foundation/generated/NSURL.rs +++ b/icrate/src/Foundation/generated/NSURL.rs @@ -7,18 +7,588 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSURLResourceKey = NSString; +extern "C" { + static NSURLFileScheme: &'static NSString; +} + +extern "C" { + static NSURLKeysOfUnsetValuesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLNameKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLLocalizedNameKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsRegularFileKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsDirectoryKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsSymbolicLinkKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsVolumeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsPackageKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsApplicationKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLApplicationIsScriptableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsSystemImmutableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsUserImmutableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsHiddenKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLHasHiddenExtensionKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLCreationDateKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLContentAccessDateKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLContentModificationDateKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLAttributeModificationDateKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLLinkCountKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLParentDirectoryURLKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeURLKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLTypeIdentifierKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLContentTypeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLLocalizedTypeDescriptionKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLLabelNumberKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLLabelColorKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLLocalizedLabelKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLEffectiveIconKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLCustomIconKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLFileResourceIdentifierKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIdentifierKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLPreferredIOBlockSizeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsReadableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsWritableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsExecutableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLFileSecurityKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsExcludedFromBackupKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLTagNamesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLPathKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLCanonicalPathKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsMountTriggerKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLGenerationIdentifierKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLDocumentIdentifierKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLAddedToDirectoryDateKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLQuarantinePropertiesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLFileResourceTypeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLFileContentIdentifierKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLMayShareFileContentKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLMayHaveExtendedAttributesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsPurgeableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsSparseKey: &'static NSURLResourceKey; +} + pub type NSURLFileResourceType = NSString; +extern "C" { + static NSURLFileResourceTypeNamedPipe: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeCharacterSpecial: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeDirectory: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeBlockSpecial: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeRegular: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeSymbolicLink: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeSocket: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLFileResourceTypeUnknown: &'static NSURLFileResourceType; +} + +extern "C" { + static NSURLThumbnailDictionaryKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLThumbnailKey: &'static NSURLResourceKey; +} + pub type NSURLThumbnailDictionaryItem = NSString; +extern "C" { + static NSThumbnail1024x1024SizeKey: &'static NSURLThumbnailDictionaryItem; +} + +extern "C" { + static NSURLFileSizeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLFileAllocatedSizeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLTotalFileSizeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLTotalFileAllocatedSizeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsAliasFileKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLFileProtectionKey: &'static NSURLResourceKey; +} + pub type NSURLFileProtectionType = NSString; +extern "C" { + static NSURLFileProtectionNone: &'static NSURLFileProtectionType; +} + +extern "C" { + static NSURLFileProtectionComplete: &'static NSURLFileProtectionType; +} + +extern "C" { + static NSURLFileProtectionCompleteUnlessOpen: &'static NSURLFileProtectionType; +} + +extern "C" { + static NSURLFileProtectionCompleteUntilFirstUserAuthentication: + &'static NSURLFileProtectionType; +} + +extern "C" { + static NSURLVolumeLocalizedFormatDescriptionKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeTotalCapacityKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeAvailableCapacityKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeResourceCountKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsPersistentIDsKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsSymbolicLinksKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsHardLinksKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsJournalingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsJournalingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsSparseFilesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsZeroRunsKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsCaseSensitiveNamesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsCasePreservedNamesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsRootDirectoryDatesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsVolumeSizesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsRenamingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsAdvisoryFileLockingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsExtendedSecurityKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsBrowsableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeMaximumFileSizeKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsEjectableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsRemovableKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsInternalKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsAutomountedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsLocalKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsReadOnlyKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeCreationDateKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeURLForRemountingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeUUIDStringKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeNameKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeLocalizedNameKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsEncryptedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeIsRootFileSystemKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsCompressionKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsFileCloningKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsSwapRenamingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsExclusiveRenamingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsImmutableFilesKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsAccessPermissionsKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeSupportsFileProtectionKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeAvailableCapacityForImportantUsageKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLVolumeAvailableCapacityForOpportunisticUsageKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLIsUbiquitousItemKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemHasUnresolvedConflictsKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemIsDownloadedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemIsDownloadingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemIsUploadedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemIsUploadingKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemPercentDownloadedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemPercentUploadedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemDownloadingStatusKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemDownloadingErrorKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemUploadingErrorKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemDownloadRequestedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemContainerDisplayNameKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemIsExcludedFromSyncKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousItemIsSharedKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousSharedItemCurrentUserRoleKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousSharedItemCurrentUserPermissionsKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousSharedItemOwnerNameComponentsKey: &'static NSURLResourceKey; +} + +extern "C" { + static NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey: &'static NSURLResourceKey; +} + pub type NSURLUbiquitousItemDownloadingStatus = NSString; +extern "C" { + static NSURLUbiquitousItemDownloadingStatusNotDownloaded: + &'static NSURLUbiquitousItemDownloadingStatus; +} + +extern "C" { + static NSURLUbiquitousItemDownloadingStatusDownloaded: + &'static NSURLUbiquitousItemDownloadingStatus; +} + +extern "C" { + static NSURLUbiquitousItemDownloadingStatusCurrent: + &'static NSURLUbiquitousItemDownloadingStatus; +} + pub type NSURLUbiquitousSharedItemRole = NSString; +extern "C" { + static NSURLUbiquitousSharedItemRoleOwner: &'static NSURLUbiquitousSharedItemRole; +} + +extern "C" { + static NSURLUbiquitousSharedItemRoleParticipant: &'static NSURLUbiquitousSharedItemRole; +} + pub type NSURLUbiquitousSharedItemPermissions = NSString; +extern "C" { + static NSURLUbiquitousSharedItemPermissionsReadOnly: + &'static NSURLUbiquitousSharedItemPermissions; +} + +extern "C" { + static NSURLUbiquitousSharedItemPermissionsReadWrite: + &'static NSURLUbiquitousSharedItemPermissions; +} + pub type NSURLBookmarkCreationOptions = NSUInteger; pub const NSURLBookmarkCreationPreferFileIDResolution: NSURLBookmarkCreationOptions = (1 << 8); pub const NSURLBookmarkCreationMinimalBookmark: NSURLBookmarkCreationOptions = (1 << 9); diff --git a/icrate/src/Foundation/generated/NSURLCredentialStorage.rs b/icrate/src/Foundation/generated/NSURLCredentialStorage.rs index 1613ce6f1..2baabeef8 100644 --- a/icrate/src/Foundation/generated/NSURLCredentialStorage.rs +++ b/icrate/src/Foundation/generated/NSURLCredentialStorage.rs @@ -112,3 +112,11 @@ extern_methods!( ); } ); + +extern "C" { + static NSURLCredentialStorageChangedNotification: &'static NSNotificationName; +} + +extern "C" { + static NSURLCredentialStorageRemoveSynchronizableCredentials: &'static NSString; +} diff --git a/icrate/src/Foundation/generated/NSURLError.rs b/icrate/src/Foundation/generated/NSURLError.rs index cd1302a7a..e904f452f 100644 --- a/icrate/src/Foundation/generated/NSURLError.rs +++ b/icrate/src/Foundation/generated/NSURLError.rs @@ -5,10 +5,38 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSURLErrorDomain: &'static NSErrorDomain; +} + +extern "C" { + static NSURLErrorFailingURLErrorKey: &'static NSString; +} + +extern "C" { + static NSURLErrorFailingURLStringErrorKey: &'static NSString; +} + +extern "C" { + static NSErrorFailingURLStringKey: &'static NSString; +} + +extern "C" { + static NSURLErrorFailingURLPeerTrustErrorKey: &'static NSString; +} + +extern "C" { + static NSURLErrorBackgroundTaskCancelledReasonKey: &'static NSString; +} + pub const NSURLErrorCancelledReasonUserForceQuitApplication: i32 = 0; pub const NSURLErrorCancelledReasonBackgroundUpdatesDisabled: i32 = 1; pub const NSURLErrorCancelledReasonInsufficientSystemResources: i32 = 2; +extern "C" { + static NSURLErrorNetworkUnavailableReasonKey: &'static NSErrorUserInfoKey; +} + pub type NSURLErrorNetworkUnavailableReason = NSInteger; pub const NSURLErrorNetworkUnavailableReasonCellular: NSURLErrorNetworkUnavailableReason = 0; pub const NSURLErrorNetworkUnavailableReasonExpensive: NSURLErrorNetworkUnavailableReason = 1; diff --git a/icrate/src/Foundation/generated/NSURLHandle.rs b/icrate/src/Foundation/generated/NSURLHandle.rs index 8b1eb7bef..afad211d8 100644 --- a/icrate/src/Foundation/generated/NSURLHandle.rs +++ b/icrate/src/Foundation/generated/NSURLHandle.rs @@ -5,6 +5,50 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSHTTPPropertyStatusCodeKey: Option<&'static NSString>; +} + +extern "C" { + static NSHTTPPropertyStatusReasonKey: Option<&'static NSString>; +} + +extern "C" { + static NSHTTPPropertyServerHTTPVersionKey: Option<&'static NSString>; +} + +extern "C" { + static NSHTTPPropertyRedirectionHeadersKey: Option<&'static NSString>; +} + +extern "C" { + static NSHTTPPropertyErrorPageDataKey: Option<&'static NSString>; +} + +extern "C" { + static NSHTTPPropertyHTTPProxy: Option<&'static NSString>; +} + +extern "C" { + static NSFTPPropertyUserLoginKey: Option<&'static NSString>; +} + +extern "C" { + static NSFTPPropertyUserPasswordKey: Option<&'static NSString>; +} + +extern "C" { + static NSFTPPropertyActiveTransferModeKey: Option<&'static NSString>; +} + +extern "C" { + static NSFTPPropertyFileOffsetKey: Option<&'static NSString>; +} + +extern "C" { + static NSFTPPropertyFTPProxy: Option<&'static NSString>; +} + pub type NSURLHandleStatus = NSUInteger; pub const NSURLHandleNotLoaded: NSURLHandleStatus = 0; pub const NSURLHandleLoadSucceeded: NSURLHandleStatus = 1; diff --git a/icrate/src/Foundation/generated/NSURLProtectionSpace.rs b/icrate/src/Foundation/generated/NSURLProtectionSpace.rs index 04510d981..ec75a94a2 100644 --- a/icrate/src/Foundation/generated/NSURLProtectionSpace.rs +++ b/icrate/src/Foundation/generated/NSURLProtectionSpace.rs @@ -5,6 +5,66 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSURLProtectionSpaceHTTP: &'static NSString; +} + +extern "C" { + static NSURLProtectionSpaceHTTPS: &'static NSString; +} + +extern "C" { + static NSURLProtectionSpaceFTP: &'static NSString; +} + +extern "C" { + static NSURLProtectionSpaceHTTPProxy: &'static NSString; +} + +extern "C" { + static NSURLProtectionSpaceHTTPSProxy: &'static NSString; +} + +extern "C" { + static NSURLProtectionSpaceFTPProxy: &'static NSString; +} + +extern "C" { + static NSURLProtectionSpaceSOCKSProxy: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodDefault: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodHTTPBasic: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodHTTPDigest: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodHTMLForm: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodNTLM: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodNegotiate: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodClientCertificate: &'static NSString; +} + +extern "C" { + static NSURLAuthenticationMethodServerTrust: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSURLProtectionSpace; diff --git a/icrate/src/Foundation/generated/NSURLSession.rs b/icrate/src/Foundation/generated/NSURLSession.rs index 7a598d43c..c6be0a54e 100644 --- a/icrate/src/Foundation/generated/NSURLSession.rs +++ b/icrate/src/Foundation/generated/NSURLSession.rs @@ -5,6 +5,10 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSURLSessionTransferSizeUnknown: int64_t; +} + extern_class!( #[derive(Debug)] pub struct NSURLSession; @@ -322,6 +326,18 @@ extern_methods!( } ); +extern "C" { + static NSURLSessionTaskPriorityDefault: c_float; +} + +extern "C" { + static NSURLSessionTaskPriorityLow: c_float; +} + +extern "C" { + static NSURLSessionTaskPriorityHigh: c_float; +} + extern_class!( #[derive(Debug)] pub struct NSURLSessionDataTask; @@ -815,6 +831,10 @@ pub type NSURLSessionStreamDelegate = NSObject; pub type NSURLSessionWebSocketDelegate = NSObject; +extern "C" { + static NSURLSessionDownloadTaskResumeData: &'static NSString; +} + extern_methods!( /// NSURLSessionDeprecated unsafe impl NSURLSessionConfiguration { diff --git a/icrate/src/Foundation/generated/NSUbiquitousKeyValueStore.rs b/icrate/src/Foundation/generated/NSUbiquitousKeyValueStore.rs index 8f9b298a0..406fa2e44 100644 --- a/icrate/src/Foundation/generated/NSUbiquitousKeyValueStore.rs +++ b/icrate/src/Foundation/generated/NSUbiquitousKeyValueStore.rs @@ -86,6 +86,18 @@ extern_methods!( } ); +extern "C" { + static NSUbiquitousKeyValueStoreDidChangeExternallyNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUbiquitousKeyValueStoreChangeReasonKey: &'static NSString; +} + +extern "C" { + static NSUbiquitousKeyValueStoreChangedKeysKey: &'static NSString; +} + pub const NSUbiquitousKeyValueStoreServerChange: i32 = 0; pub const NSUbiquitousKeyValueStoreInitialSyncChange: i32 = 1; pub const NSUbiquitousKeyValueStoreQuotaViolationChange: i32 = 2; diff --git a/icrate/src/Foundation/generated/NSUndoManager.rs b/icrate/src/Foundation/generated/NSUndoManager.rs index a9fc3c433..c7027e3f1 100644 --- a/icrate/src/Foundation/generated/NSUndoManager.rs +++ b/icrate/src/Foundation/generated/NSUndoManager.rs @@ -5,6 +5,12 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +static NSUndoCloseGroupingRunLoopOrdering: NSUInteger = 350000; + +extern "C" { + static NSUndoManagerGroupIsDiscardableKey: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSUndoManager; @@ -134,3 +140,35 @@ extern_methods!( ) -> Id; } ); + +extern "C" { + static NSUndoManagerCheckpointNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerWillUndoChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerWillRedoChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerDidUndoChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerDidRedoChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerDidOpenUndoGroupNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerWillCloseUndoGroupNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUndoManagerDidCloseUndoGroupNotification: &'static NSNotificationName; +} diff --git a/icrate/src/Foundation/generated/NSUserActivity.rs b/icrate/src/Foundation/generated/NSUserActivity.rs index d980fd696..e3939956d 100644 --- a/icrate/src/Foundation/generated/NSUserActivity.rs +++ b/icrate/src/Foundation/generated/NSUserActivity.rs @@ -160,4 +160,8 @@ extern_methods!( } ); +extern "C" { + static NSUserActivityTypeBrowsingWeb: &'static NSString; +} + pub type NSUserActivityDelegate = NSObject; diff --git a/icrate/src/Foundation/generated/NSUserDefaults.rs b/icrate/src/Foundation/generated/NSUserDefaults.rs index f08a88f38..1f7b0e511 100644 --- a/icrate/src/Foundation/generated/NSUserDefaults.rs +++ b/icrate/src/Foundation/generated/NSUserDefaults.rs @@ -5,6 +5,18 @@ use objc2::rc::{Id, Shared}; #[allow(unused_imports)] use objc2::{extern_class, extern_methods, ClassType}; +extern "C" { + static NSGlobalDomain: &'static NSString; +} + +extern "C" { + static NSArgumentDomain: &'static NSString; +} + +extern "C" { + static NSRegistrationDomain: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSUserDefaults; @@ -162,3 +174,127 @@ extern_methods!( ) -> bool; } ); + +extern "C" { + static NSUserDefaultsSizeLimitExceededNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUbiquitousUserDefaultsNoCloudAccountNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUbiquitousUserDefaultsDidChangeAccountsNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUbiquitousUserDefaultsCompletedInitialSyncNotification: &'static NSNotificationName; +} + +extern "C" { + static NSUserDefaultsDidChangeNotification: &'static NSNotificationName; +} + +extern "C" { + static NSWeekDayNameArray: &'static NSString; +} + +extern "C" { + static NSShortWeekDayNameArray: &'static NSString; +} + +extern "C" { + static NSMonthNameArray: &'static NSString; +} + +extern "C" { + static NSShortMonthNameArray: &'static NSString; +} + +extern "C" { + static NSTimeFormatString: &'static NSString; +} + +extern "C" { + static NSDateFormatString: &'static NSString; +} + +extern "C" { + static NSTimeDateFormatString: &'static NSString; +} + +extern "C" { + static NSShortTimeDateFormatString: &'static NSString; +} + +extern "C" { + static NSCurrencySymbol: &'static NSString; +} + +extern "C" { + static NSDecimalSeparator: &'static NSString; +} + +extern "C" { + static NSThousandsSeparator: &'static NSString; +} + +extern "C" { + static NSDecimalDigits: &'static NSString; +} + +extern "C" { + static NSAMPMDesignation: &'static NSString; +} + +extern "C" { + static NSHourNameDesignations: &'static NSString; +} + +extern "C" { + static NSYearMonthWeekDesignations: &'static NSString; +} + +extern "C" { + static NSEarlierTimeDesignations: &'static NSString; +} + +extern "C" { + static NSLaterTimeDesignations: &'static NSString; +} + +extern "C" { + static NSThisDayDesignations: &'static NSString; +} + +extern "C" { + static NSNextDayDesignations: &'static NSString; +} + +extern "C" { + static NSNextNextDayDesignations: &'static NSString; +} + +extern "C" { + static NSPriorDayDesignations: &'static NSString; +} + +extern "C" { + static NSDateTimeOrdering: &'static NSString; +} + +extern "C" { + static NSInternationalCurrencyString: &'static NSString; +} + +extern "C" { + static NSShortDateFormatString: &'static NSString; +} + +extern "C" { + static NSPositiveCurrencyFormatString: &'static NSString; +} + +extern "C" { + static NSNegativeCurrencyFormatString: &'static NSString; +} diff --git a/icrate/src/Foundation/generated/NSUserNotification.rs b/icrate/src/Foundation/generated/NSUserNotification.rs index 8539f4ed9..579caba27 100644 --- a/icrate/src/Foundation/generated/NSUserNotification.rs +++ b/icrate/src/Foundation/generated/NSUserNotification.rs @@ -178,6 +178,10 @@ extern_methods!( } ); +extern "C" { + static NSUserNotificationDefaultSoundName: &'static NSString; +} + extern_class!( #[derive(Debug)] pub struct NSUserNotificationCenter; diff --git a/icrate/src/Foundation/generated/NSValueTransformer.rs b/icrate/src/Foundation/generated/NSValueTransformer.rs index f29c70080..cb186d03d 100644 --- a/icrate/src/Foundation/generated/NSValueTransformer.rs +++ b/icrate/src/Foundation/generated/NSValueTransformer.rs @@ -7,6 +7,30 @@ use objc2::{extern_class, extern_methods, ClassType}; pub type NSValueTransformerName = NSString; +extern "C" { + static NSNegateBooleanTransformerName: &'static NSValueTransformerName; +} + +extern "C" { + static NSIsNilTransformerName: &'static NSValueTransformerName; +} + +extern "C" { + static NSIsNotNilTransformerName: &'static NSValueTransformerName; +} + +extern "C" { + static NSUnarchiveFromDataTransformerName: &'static NSValueTransformerName; +} + +extern "C" { + static NSKeyedUnarchiveFromDataTransformerName: &'static NSValueTransformerName; +} + +extern "C" { + static NSSecureUnarchiveFromDataTransformerName: &'static NSValueTransformerName; +} + extern_class!( #[derive(Debug)] pub struct NSValueTransformer; diff --git a/icrate/src/Foundation/generated/NSXMLParser.rs b/icrate/src/Foundation/generated/NSXMLParser.rs index 459988f52..55a9af3b2 100644 --- a/icrate/src/Foundation/generated/NSXMLParser.rs +++ b/icrate/src/Foundation/generated/NSXMLParser.rs @@ -106,6 +106,10 @@ extern_methods!( pub type NSXMLParserDelegate = NSObject; +extern "C" { + static NSXMLParserErrorDomain: &'static NSErrorDomain; +} + pub type NSXMLParserError = NSInteger; pub const NSXMLParserInternalError: NSXMLParserError = 1; pub const NSXMLParserOutOfMemoryError: NSXMLParserError = 2; diff --git a/icrate/src/Foundation/generated/mod.rs b/icrate/src/Foundation/generated/mod.rs index 451864725..104ebc429 100644 --- a/icrate/src/Foundation/generated/mod.rs +++ b/icrate/src/Foundation/generated/mod.rs @@ -209,15 +209,22 @@ mod __exported { NSAppleEventSendNeverInteract, NSAppleEventSendNoReply, NSAppleEventSendOptions, NSAppleEventSendQueueReply, NSAppleEventSendWaitForReply, }; - pub use super::NSAppleEventManager::NSAppleEventManager; - pub use super::NSAppleScript::NSAppleScript; + pub use super::NSAppleEventManager::{ + NSAppleEventManager, NSAppleEventManagerWillProcessFirstEventNotification, + NSAppleEventTimeOutDefault, NSAppleEventTimeOutNone, + }; + pub use super::NSAppleScript::{ + NSAppleScript, NSAppleScriptErrorAppName, NSAppleScriptErrorBriefMessage, + NSAppleScriptErrorMessage, NSAppleScriptErrorNumber, NSAppleScriptErrorRange, + }; pub use super::NSArchiver::{NSArchiver, NSUnarchiver}; pub use super::NSArray::{ NSArray, NSBinarySearchingFirstEqual, NSBinarySearchingInsertionIndex, NSBinarySearchingLastEqual, NSBinarySearchingOptions, NSMutableArray, }; pub use super::NSAttributedString::{ - NSAttributedString, NSAttributedStringEnumerationLongestEffectiveRangeNotRequired, + NSAlternateDescriptionAttributeName, NSAttributedString, + NSAttributedStringEnumerationLongestEffectiveRangeNotRequired, NSAttributedStringEnumerationOptions, NSAttributedStringEnumerationReverse, NSAttributedStringFormattingApplyReplacementIndexAttribute, NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging, @@ -229,12 +236,15 @@ mod __exported { NSAttributedStringMarkdownParsingFailurePolicy, NSAttributedStringMarkdownParsingFailureReturnError, NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible, - NSAttributedStringMarkdownParsingOptions, NSInlinePresentationIntent, + NSAttributedStringMarkdownParsingOptions, NSImageURLAttributeName, + NSInflectionAlternativeAttributeName, NSInflectionRuleAttributeName, + NSInlinePresentationIntent, NSInlinePresentationIntentAttributeName, NSInlinePresentationIntentBlockHTML, NSInlinePresentationIntentCode, NSInlinePresentationIntentEmphasized, NSInlinePresentationIntentInlineHTML, NSInlinePresentationIntentLineBreak, NSInlinePresentationIntentSoftBreak, NSInlinePresentationIntentStrikethrough, NSInlinePresentationIntentStronglyEmphasized, - NSMutableAttributedString, NSPresentationIntent, NSPresentationIntentKind, + NSLanguageIdentifierAttributeName, NSMorphologyAttributeName, NSMutableAttributedString, + NSPresentationIntent, NSPresentationIntentAttributeName, NSPresentationIntentKind, NSPresentationIntentKindBlockQuote, NSPresentationIntentKindCodeBlock, NSPresentationIntentKindHeader, NSPresentationIntentKindListItem, NSPresentationIntentKindOrderedList, NSPresentationIntentKindParagraph, @@ -243,7 +253,7 @@ mod __exported { NSPresentationIntentKindThematicBreak, NSPresentationIntentKindUnorderedList, NSPresentationIntentTableColumnAlignment, NSPresentationIntentTableColumnAlignmentCenter, NSPresentationIntentTableColumnAlignmentLeft, - NSPresentationIntentTableColumnAlignmentRight, + NSPresentationIntentTableColumnAlignmentRight, NSReplacementIndexAttributeName, }; pub use super::NSAutoreleasePool::NSAutoreleasePool; pub use super::NSBackgroundActivityScheduler::{ @@ -251,9 +261,11 @@ mod __exported { NSBackgroundActivityResultFinished, NSBackgroundActivityScheduler, }; pub use super::NSBundle::{ - NSBundle, NSBundleExecutableArchitectureARM64, NSBundleExecutableArchitectureI386, - NSBundleExecutableArchitecturePPC, NSBundleExecutableArchitecturePPC64, - NSBundleExecutableArchitectureX86_64, NSBundleResourceRequest, + NSBundle, NSBundleDidLoadNotification, NSBundleExecutableArchitectureARM64, + NSBundleExecutableArchitectureI386, NSBundleExecutableArchitecturePPC, + NSBundleExecutableArchitecturePPC64, NSBundleExecutableArchitectureX86_64, + NSBundleResourceRequest, NSBundleResourceRequestLoadingPriorityUrgent, + NSBundleResourceRequestLowDiskSpaceNotification, NSLoadedClasses, }; pub use super::NSByteCountFormatter::{ NSByteCountFormatter, NSByteCountFormatterCountStyle, NSByteCountFormatterCountStyleBinary, @@ -267,9 +279,15 @@ mod __exported { pub use super::NSByteOrder::{NS_BigEndian, NS_LittleEndian, NS_UnknownByteOrder}; pub use super::NSCache::{NSCache, NSCacheDelegate}; pub use super::NSCalendar::{ - NSCalendar, NSCalendarCalendarUnit, NSCalendarIdentifier, NSCalendarMatchFirst, - NSCalendarMatchLast, NSCalendarMatchNextTime, - NSCalendarMatchNextTimePreservingSmallerUnits, + NSCalendar, NSCalendarCalendarUnit, NSCalendarDayChangedNotification, NSCalendarIdentifier, + NSCalendarIdentifierBuddhist, NSCalendarIdentifierChinese, NSCalendarIdentifierCoptic, + NSCalendarIdentifierEthiopicAmeteAlem, NSCalendarIdentifierEthiopicAmeteMihret, + NSCalendarIdentifierGregorian, NSCalendarIdentifierHebrew, NSCalendarIdentifierISO8601, + NSCalendarIdentifierIndian, NSCalendarIdentifierIslamic, NSCalendarIdentifierIslamicCivil, + NSCalendarIdentifierIslamicTabular, NSCalendarIdentifierIslamicUmmAlQura, + NSCalendarIdentifierJapanese, NSCalendarIdentifierPersian, + NSCalendarIdentifierRepublicOfChina, NSCalendarMatchFirst, NSCalendarMatchLast, + NSCalendarMatchNextTime, NSCalendarMatchNextTimePreservingSmallerUnits, NSCalendarMatchPreviousTimePreservingSmallerUnits, NSCalendarMatchStrictly, NSCalendarOptions, NSCalendarSearchBackwards, NSCalendarUnit, NSCalendarUnitCalendar, NSCalendarUnitDay, NSCalendarUnitEra, NSCalendarUnitHour, NSCalendarUnitMinute, @@ -288,7 +306,9 @@ mod __exported { pub use super::NSCharacterSet::{ NSCharacterSet, NSMutableCharacterSet, NSOpenStepUnicodeReservedBase, }; - pub use super::NSClassDescription::NSClassDescription; + pub use super::NSClassDescription::{ + NSClassDescription, NSClassDescriptionNeededForClassNotification, + }; pub use super::NSCoder::{ NSCoder, NSDecodingFailurePolicy, NSDecodingFailurePolicyRaiseException, NSDecodingFailurePolicySetErrorAndReturn, @@ -310,7 +330,11 @@ mod __exported { NSAndPredicateType, NSCompoundPredicate, NSCompoundPredicateType, NSNotPredicateType, NSOrPredicateType, }; - pub use super::NSConnection::{NSConnection, NSConnectionDelegate, NSDistantObjectRequest}; + pub use super::NSConnection::{ + NSConnection, NSConnectionDelegate, NSConnectionDidDieNotification, + NSConnectionDidInitializeNotification, NSConnectionReplyMode, NSDistantObjectRequest, + NSFailedAuthenticationException, + }; pub use super::NSData::{ NSAtomicWrite, NSData, NSDataBase64DecodingIgnoreUnknownCharacters, NSDataBase64DecodingOptions, NSDataBase64Encoding64CharacterLineLength, @@ -327,7 +351,7 @@ mod __exported { NSDataWritingWithoutOverwriting, NSMappedRead, NSMutableData, NSPurgeableData, NSUncachedRead, }; - pub use super::NSDate::NSDate; + pub use super::NSDate::{NSDate, NSSystemClockDidChangeNotification}; pub use super::NSDateComponentsFormatter::{ NSDateComponentsFormatter, NSDateComponentsFormatterUnitsStyle, NSDateComponentsFormatterUnitsStyleAbbreviated, NSDateComponentsFormatterUnitsStyleBrief, @@ -361,7 +385,9 @@ mod __exported { NSRoundDown, NSRoundPlain, NSRoundUp, NSRoundingMode, }; pub use super::NSDecimalNumber::{ - NSDecimalNumber, NSDecimalNumberBehaviors, NSDecimalNumberHandler, + NSDecimalNumber, NSDecimalNumberBehaviors, NSDecimalNumberDivideByZeroException, + NSDecimalNumberExactnessException, NSDecimalNumberHandler, + NSDecimalNumberOverflowException, NSDecimalNumberUnderflowException, }; pub use super::NSDictionary::{NSDictionary, NSMutableDictionary}; pub use super::NSDistantObject::NSDistantObject; @@ -369,8 +395,9 @@ mod __exported { pub use super::NSDistributedNotificationCenter::{ NSDistributedNotificationCenter, NSDistributedNotificationCenterType, NSDistributedNotificationDeliverImmediately, NSDistributedNotificationOptions, - NSDistributedNotificationPostToAllSessions, NSNotificationSuspensionBehavior, - NSNotificationSuspensionBehaviorCoalesce, + NSDistributedNotificationPostToAllSessions, NSLocalNotificationCenterType, + NSNotificationDeliverImmediately, NSNotificationPostToAllSessions, + NSNotificationSuspensionBehavior, NSNotificationSuspensionBehaviorCoalesce, NSNotificationSuspensionBehaviorDeliverImmediately, NSNotificationSuspensionBehaviorDrop, NSNotificationSuspensionBehaviorHold, }; @@ -380,8 +407,23 @@ mod __exported { NSEnergyFormatterUnitKilojoule, }; pub use super::NSEnumerator::{NSEnumerator, NSFastEnumeration}; - pub use super::NSError::{NSError, NSErrorDomain, NSErrorUserInfoKey}; - pub use super::NSException::{NSAssertionHandler, NSException}; + pub use super::NSError::{ + NSCocoaErrorDomain, NSDebugDescriptionErrorKey, NSError, NSErrorDomain, NSErrorUserInfoKey, + NSFilePathErrorKey, NSHelpAnchorErrorKey, NSLocalizedDescriptionKey, + NSLocalizedFailureErrorKey, NSLocalizedFailureReasonErrorKey, + NSLocalizedRecoveryOptionsErrorKey, NSLocalizedRecoverySuggestionErrorKey, + NSMachErrorDomain, NSMultipleUnderlyingErrorsKey, NSOSStatusErrorDomain, + NSPOSIXErrorDomain, NSRecoveryAttempterErrorKey, NSStringEncodingErrorKey, NSURLErrorKey, + NSUnderlyingErrorKey, + }; + pub use super::NSException::{ + NSAssertionHandler, NSAssertionHandlerKey, NSDestinationInvalidException, NSException, + NSGenericException, NSInconsistentArchiveException, NSInternalInconsistencyException, + NSInvalidArgumentException, NSInvalidReceivePortException, NSInvalidSendPortException, + NSMallocException, NSObjectInaccessibleException, NSObjectNotAvailableException, + NSOldStyleException, NSPortReceiveException, NSPortSendException, NSPortTimeoutException, + NSRangeException, + }; pub use super::NSExpression::{ NSAggregateExpressionType, NSAnyKeyExpressionType, NSBlockExpressionType, NSConditionalExpressionType, NSConstantValueExpressionType, @@ -389,8 +431,16 @@ mod __exported { NSIntersectSetExpressionType, NSKeyPathExpressionType, NSMinusSetExpressionType, NSSubqueryExpressionType, NSUnionSetExpressionType, NSVariableExpressionType, }; - pub use super::NSExtensionContext::NSExtensionContext; - pub use super::NSExtensionItem::NSExtensionItem; + pub use super::NSExtensionContext::{ + NSExtensionContext, NSExtensionHostDidBecomeActiveNotification, + NSExtensionHostDidEnterBackgroundNotification, + NSExtensionHostWillEnterForegroundNotification, + NSExtensionHostWillResignActiveNotification, NSExtensionItemsAndErrorsKey, + }; + pub use super::NSExtensionItem::{ + NSExtensionItem, NSExtensionItemAttachmentsKey, NSExtensionItemAttributedContentTextKey, + NSExtensionItemAttributedTitleKey, + }; pub use super::NSExtensionRequestHandling::NSExtensionRequestHandling; pub use super::NSFileCoordinator::{ NSFileAccessIntent, NSFileCoordinator, NSFileCoordinatorReadingForUploading, @@ -401,19 +451,36 @@ mod __exported { NSFileCoordinatorWritingForMoving, NSFileCoordinatorWritingForReplacing, NSFileCoordinatorWritingOptions, }; - pub use super::NSFileHandle::{NSFileHandle, NSPipe}; + pub use super::NSFileHandle::{ + NSFileHandle, NSFileHandleConnectionAcceptedNotification, + NSFileHandleDataAvailableNotification, NSFileHandleNotificationDataItem, + NSFileHandleNotificationFileHandleItem, NSFileHandleNotificationMonitorModes, + NSFileHandleOperationException, NSFileHandleReadCompletionNotification, + NSFileHandleReadToEndOfFileCompletionNotification, NSPipe, + }; pub use super::NSFileManager::{ NSDirectoryEnumerationIncludesDirectoriesPostOrder, NSDirectoryEnumerationOptions, NSDirectoryEnumerationProducesRelativePathURLs, NSDirectoryEnumerationSkipsHiddenFiles, NSDirectoryEnumerationSkipsPackageDescendants, NSDirectoryEnumerationSkipsSubdirectoryDescendants, NSDirectoryEnumerator, - NSFileAttributeKey, NSFileAttributeType, NSFileManager, NSFileManagerDelegate, - NSFileManagerItemReplacementOptions, NSFileManagerItemReplacementUsingNewMetadataOnly, + NSFileAppendOnly, NSFileAttributeKey, NSFileAttributeType, NSFileBusy, NSFileCreationDate, + NSFileDeviceIdentifier, NSFileExtensionHidden, NSFileGroupOwnerAccountID, + NSFileGroupOwnerAccountName, NSFileHFSCreatorCode, NSFileHFSTypeCode, NSFileImmutable, + NSFileManager, NSFileManagerDelegate, NSFileManagerItemReplacementOptions, + NSFileManagerItemReplacementUsingNewMetadataOnly, NSFileManagerItemReplacementWithoutDeletingBackupItem, - NSFileManagerUnmountAllPartitionsAndEjectDisk, NSFileManagerUnmountOptions, - NSFileManagerUnmountWithoutUI, NSFileProtectionType, NSFileProviderService, - NSFileProviderServiceName, NSURLRelationship, NSURLRelationshipContains, - NSURLRelationshipOther, NSURLRelationshipSame, NSVolumeEnumerationOptions, + NSFileManagerUnmountAllPartitionsAndEjectDisk, + NSFileManagerUnmountDissentingProcessIdentifierErrorKey, NSFileManagerUnmountOptions, + NSFileManagerUnmountWithoutUI, NSFileModificationDate, NSFileOwnerAccountID, + NSFileOwnerAccountName, NSFilePosixPermissions, NSFileProtectionComplete, + NSFileProtectionCompleteUnlessOpen, NSFileProtectionCompleteUntilFirstUserAuthentication, + NSFileProtectionKey, NSFileProtectionNone, NSFileProtectionType, NSFileProviderService, + NSFileProviderServiceName, NSFileReferenceCount, NSFileSize, NSFileSystemFileNumber, + NSFileSystemFreeNodes, NSFileSystemFreeSize, NSFileSystemNodes, NSFileSystemNumber, + NSFileSystemSize, NSFileType, NSFileTypeBlockSpecial, NSFileTypeCharacterSpecial, + NSFileTypeDirectory, NSFileTypeRegular, NSFileTypeSocket, NSFileTypeSymbolicLink, + NSFileTypeUnknown, NSURLRelationship, NSURLRelationshipContains, NSURLRelationshipOther, + NSURLRelationshipSame, NSUbiquityIdentityDidChangeNotification, NSVolumeEnumerationOptions, NSVolumeEnumerationProduceFileReferenceURLs, NSVolumeEnumerationSkipHiddenVolumes, }; pub use super::NSFilePresenter::NSFilePresenter; @@ -440,18 +507,32 @@ mod __exported { NSAlignMaxXOutward, NSAlignMaxYInward, NSAlignMaxYNearest, NSAlignMaxYOutward, NSAlignMinXInward, NSAlignMinXNearest, NSAlignMinXOutward, NSAlignMinYInward, NSAlignMinYNearest, NSAlignMinYOutward, NSAlignRectFlipped, NSAlignWidthInward, - NSAlignWidthNearest, NSAlignWidthOutward, NSAlignmentOptions, NSMaxXEdge, NSMaxYEdge, - NSMinXEdge, NSMinYEdge, NSPoint, NSRect, NSRectEdge, NSRectEdgeMaxX, NSRectEdgeMaxY, - NSRectEdgeMinX, NSRectEdgeMinY, NSSize, + NSAlignWidthNearest, NSAlignWidthOutward, NSAlignmentOptions, NSEdgeInsetsZero, NSMaxXEdge, + NSMaxYEdge, NSMinXEdge, NSMinYEdge, NSPoint, NSRect, NSRectEdge, NSRectEdgeMaxX, + NSRectEdgeMaxY, NSRectEdgeMinX, NSRectEdgeMinY, NSSize, NSZeroPoint, NSZeroRect, + NSZeroSize, }; pub use super::NSHTTPCookie::{ - NSHTTPCookie, NSHTTPCookiePropertyKey, NSHTTPCookieStringPolicy, + NSHTTPCookie, NSHTTPCookieComment, NSHTTPCookieCommentURL, NSHTTPCookieDiscard, + NSHTTPCookieDomain, NSHTTPCookieExpires, NSHTTPCookieMaximumAge, NSHTTPCookieName, + NSHTTPCookieOriginURL, NSHTTPCookiePath, NSHTTPCookiePort, NSHTTPCookiePropertyKey, + NSHTTPCookieSameSiteLax, NSHTTPCookieSameSitePolicy, NSHTTPCookieSameSiteStrict, + NSHTTPCookieSecure, NSHTTPCookieStringPolicy, NSHTTPCookieValue, NSHTTPCookieVersion, }; pub use super::NSHTTPCookieStorage::{ NSHTTPCookieAcceptPolicy, NSHTTPCookieAcceptPolicyAlways, NSHTTPCookieAcceptPolicyNever, - NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, NSHTTPCookieStorage, + NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, + NSHTTPCookieManagerAcceptPolicyChangedNotification, + NSHTTPCookieManagerCookiesChangedNotification, NSHTTPCookieStorage, + }; + pub use super::NSHashTable::{ + NSHashTable, NSHashTableCopyIn, NSHashTableObjectPointerPersonality, NSHashTableOptions, + NSHashTableStrongMemory, NSHashTableWeakMemory, NSHashTableZeroingWeakMemory, + NSIntHashCallBacks, NSIntegerHashCallBacks, NSNonOwnedPointerHashCallBacks, + NSNonRetainedObjectHashCallBacks, NSObjectHashCallBacks, + NSOwnedObjectIdentityHashCallBacks, NSOwnedPointerHashCallBacks, + NSPointerToStructHashCallBacks, }; - pub use super::NSHashTable::{NSHashTable, NSHashTableOptions}; pub use super::NSHost::NSHost; pub use super::NSISO8601DateFormatter::{ NSISO8601DateFormatOptions, NSISO8601DateFormatWithColonSeparatorInTime, @@ -468,10 +549,12 @@ mod __exported { pub use super::NSInflectionRule::{NSInflectionRule, NSInflectionRuleExplicit}; pub use super::NSInvocation::NSInvocation; pub use super::NSItemProvider::{ - NSItemProvider, NSItemProviderErrorCode, NSItemProviderFileOptionOpenInPlace, - NSItemProviderFileOptions, NSItemProviderItemUnavailableError, NSItemProviderReading, - NSItemProviderRepresentationVisibility, NSItemProviderRepresentationVisibilityAll, - NSItemProviderRepresentationVisibilityGroup, + NSExtensionJavaScriptFinalizeArgumentKey, NSExtensionJavaScriptPreprocessingResultsKey, + NSItemProvider, NSItemProviderErrorCode, NSItemProviderErrorDomain, + NSItemProviderFileOptionOpenInPlace, NSItemProviderFileOptions, + NSItemProviderItemUnavailableError, NSItemProviderPreferredImageSizeKey, + NSItemProviderReading, NSItemProviderRepresentationVisibility, + NSItemProviderRepresentationVisibilityAll, NSItemProviderRepresentationVisibilityGroup, NSItemProviderRepresentationVisibilityOwnProcess, NSItemProviderRepresentationVisibilityTeam, NSItemProviderUnavailableCoercionError, NSItemProviderUnexpectedValueClassError, NSItemProviderUnknownError, NSItemProviderWriting, @@ -483,16 +566,27 @@ mod __exported { NSJSONWritingOptions, NSJSONWritingPrettyPrinted, NSJSONWritingSortedKeys, NSJSONWritingWithoutEscapingSlashes, }; - pub use super::NSKeyValueCoding::NSKeyValueOperator; + pub use super::NSKeyValueCoding::{ + NSAverageKeyValueOperator, NSCountKeyValueOperator, + NSDistinctUnionOfArraysKeyValueOperator, NSDistinctUnionOfObjectsKeyValueOperator, + NSDistinctUnionOfSetsKeyValueOperator, NSKeyValueOperator, NSMaximumKeyValueOperator, + NSMinimumKeyValueOperator, NSSumKeyValueOperator, NSUndefinedKeyException, + NSUnionOfArraysKeyValueOperator, NSUnionOfObjectsKeyValueOperator, + NSUnionOfSetsKeyValueOperator, + }; pub use super::NSKeyValueObserving::{ - NSKeyValueChange, NSKeyValueChangeInsertion, NSKeyValueChangeKey, NSKeyValueChangeRemoval, + NSKeyValueChange, NSKeyValueChangeIndexesKey, NSKeyValueChangeInsertion, + NSKeyValueChangeKey, NSKeyValueChangeKindKey, NSKeyValueChangeNewKey, + NSKeyValueChangeNotificationIsPriorKey, NSKeyValueChangeOldKey, NSKeyValueChangeRemoval, NSKeyValueChangeReplacement, NSKeyValueChangeSetting, NSKeyValueIntersectSetMutation, NSKeyValueMinusSetMutation, NSKeyValueObservingOptionInitial, NSKeyValueObservingOptionNew, NSKeyValueObservingOptionOld, NSKeyValueObservingOptionPrior, NSKeyValueObservingOptions, NSKeyValueSetMutationKind, NSKeyValueSetSetMutation, NSKeyValueUnionSetMutation, }; pub use super::NSKeyedArchiver::{ - NSKeyedArchiver, NSKeyedArchiverDelegate, NSKeyedUnarchiver, NSKeyedUnarchiverDelegate, + NSInvalidArchiveOperationException, NSInvalidUnarchiveOperationException, + NSKeyedArchiveRootObjectKey, NSKeyedArchiver, NSKeyedArchiverDelegate, NSKeyedUnarchiver, + NSKeyedUnarchiverDelegate, }; pub use super::NSLengthFormatter::{ NSLengthFormatter, NSLengthFormatterUnit, NSLengthFormatterUnitCentimeter, @@ -501,20 +595,54 @@ mod __exported { NSLengthFormatterUnitYard, }; pub use super::NSLinguisticTagger::{ - NSLinguisticTag, NSLinguisticTagScheme, NSLinguisticTagger, NSLinguisticTaggerJoinNames, - NSLinguisticTaggerOmitOther, NSLinguisticTaggerOmitPunctuation, - NSLinguisticTaggerOmitWhitespace, NSLinguisticTaggerOmitWords, NSLinguisticTaggerOptions, - NSLinguisticTaggerUnit, NSLinguisticTaggerUnitDocument, NSLinguisticTaggerUnitParagraph, + NSLinguisticTag, NSLinguisticTagAdjective, NSLinguisticTagAdverb, + NSLinguisticTagClassifier, NSLinguisticTagCloseParenthesis, NSLinguisticTagCloseQuote, + NSLinguisticTagConjunction, NSLinguisticTagDash, NSLinguisticTagDeterminer, + NSLinguisticTagIdiom, NSLinguisticTagInterjection, NSLinguisticTagNoun, + NSLinguisticTagNumber, NSLinguisticTagOpenParenthesis, NSLinguisticTagOpenQuote, + NSLinguisticTagOrganizationName, NSLinguisticTagOther, NSLinguisticTagOtherPunctuation, + NSLinguisticTagOtherWhitespace, NSLinguisticTagOtherWord, NSLinguisticTagParagraphBreak, + NSLinguisticTagParticle, NSLinguisticTagPersonalName, NSLinguisticTagPlaceName, + NSLinguisticTagPreposition, NSLinguisticTagPronoun, NSLinguisticTagPunctuation, + NSLinguisticTagScheme, NSLinguisticTagSchemeLanguage, NSLinguisticTagSchemeLemma, + NSLinguisticTagSchemeLexicalClass, NSLinguisticTagSchemeNameType, + NSLinguisticTagSchemeNameTypeOrLexicalClass, NSLinguisticTagSchemeScript, + NSLinguisticTagSchemeTokenType, NSLinguisticTagSentenceTerminator, NSLinguisticTagVerb, + NSLinguisticTagWhitespace, NSLinguisticTagWord, NSLinguisticTagWordJoiner, + NSLinguisticTagger, NSLinguisticTaggerJoinNames, NSLinguisticTaggerOmitOther, + NSLinguisticTaggerOmitPunctuation, NSLinguisticTaggerOmitWhitespace, + NSLinguisticTaggerOmitWords, NSLinguisticTaggerOptions, NSLinguisticTaggerUnit, + NSLinguisticTaggerUnitDocument, NSLinguisticTaggerUnitParagraph, NSLinguisticTaggerUnitSentence, NSLinguisticTaggerUnitWord, }; pub use super::NSListFormatter::NSListFormatter; pub use super::NSLocale::{ - NSLocale, NSLocaleKey, NSLocaleLanguageDirection, NSLocaleLanguageDirectionBottomToTop, - NSLocaleLanguageDirectionLeftToRight, NSLocaleLanguageDirectionRightToLeft, - NSLocaleLanguageDirectionTopToBottom, NSLocaleLanguageDirectionUnknown, + NSBuddhistCalendar, NSChineseCalendar, NSCurrentLocaleDidChangeNotification, + NSGregorianCalendar, NSHebrewCalendar, NSISO8601Calendar, NSIndianCalendar, + NSIslamicCalendar, NSIslamicCivilCalendar, NSJapaneseCalendar, NSLocale, + NSLocaleAlternateQuotationBeginDelimiterKey, NSLocaleAlternateQuotationEndDelimiterKey, + NSLocaleCalendar, NSLocaleCollationIdentifier, NSLocaleCollatorIdentifier, + NSLocaleCountryCode, NSLocaleCurrencyCode, NSLocaleCurrencySymbol, + NSLocaleDecimalSeparator, NSLocaleExemplarCharacterSet, NSLocaleGroupingSeparator, + NSLocaleIdentifier, NSLocaleKey, NSLocaleLanguageCode, NSLocaleLanguageDirection, + NSLocaleLanguageDirectionBottomToTop, NSLocaleLanguageDirectionLeftToRight, + NSLocaleLanguageDirectionRightToLeft, NSLocaleLanguageDirectionTopToBottom, + NSLocaleLanguageDirectionUnknown, NSLocaleMeasurementSystem, + NSLocaleQuotationBeginDelimiterKey, NSLocaleQuotationEndDelimiterKey, NSLocaleScriptCode, + NSLocaleUsesMetricSystem, NSLocaleVariantCode, NSPersianCalendar, + NSRepublicOfChinaCalendar, }; pub use super::NSLock::{NSCondition, NSConditionLock, NSLock, NSLocking, NSRecursiveLock}; - pub use super::NSMapTable::{NSMapTable, NSMapTableOptions}; + pub use super::NSMapTable::{ + NSIntMapKeyCallBacks, NSIntMapValueCallBacks, NSIntegerMapKeyCallBacks, + NSIntegerMapValueCallBacks, NSMapTable, NSMapTableCopyIn, + NSMapTableObjectPointerPersonality, NSMapTableOptions, NSMapTableStrongMemory, + NSMapTableWeakMemory, NSMapTableZeroingWeakMemory, NSNonOwnedPointerMapKeyCallBacks, + NSNonOwnedPointerMapValueCallBacks, NSNonOwnedPointerOrNullMapKeyCallBacks, + NSNonRetainedObjectMapKeyCallBacks, NSNonRetainedObjectMapValueCallBacks, + NSObjectMapKeyCallBacks, NSObjectMapValueCallBacks, NSOwnedPointerMapKeyCallBacks, + NSOwnedPointerMapValueCallBacks, + }; pub use super::NSMassFormatter::{ NSMassFormatter, NSMassFormatterUnit, NSMassFormatterUnitGram, NSMassFormatterUnitKilogram, NSMassFormatterUnitOunce, NSMassFormatterUnitPound, NSMassFormatterUnitStone, @@ -527,8 +655,102 @@ mod __exported { NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit, }; pub use super::NSMetadata::{ - NSMetadataItem, NSMetadataQuery, NSMetadataQueryAttributeValueTuple, - NSMetadataQueryDelegate, NSMetadataQueryResultGroup, + NSMetadataItem, NSMetadataQuery, NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, + NSMetadataQueryAttributeValueTuple, NSMetadataQueryDelegate, + NSMetadataQueryDidFinishGatheringNotification, + NSMetadataQueryDidStartGatheringNotification, NSMetadataQueryDidUpdateNotification, + NSMetadataQueryGatheringProgressNotification, NSMetadataQueryIndexedLocalComputerScope, + NSMetadataQueryIndexedNetworkScope, NSMetadataQueryLocalComputerScope, + NSMetadataQueryNetworkScope, NSMetadataQueryResultContentRelevanceAttribute, + NSMetadataQueryResultGroup, NSMetadataQueryUbiquitousDataScope, + NSMetadataQueryUbiquitousDocumentsScope, NSMetadataQueryUpdateAddedItemsKey, + NSMetadataQueryUpdateChangedItemsKey, NSMetadataQueryUpdateRemovedItemsKey, + NSMetadataQueryUserHomeScope, + }; + pub use super::NSMetadataAttributes::{ + NSMetadataItemAcquisitionMakeKey, NSMetadataItemAcquisitionModelKey, + NSMetadataItemAlbumKey, NSMetadataItemAltitudeKey, NSMetadataItemApertureKey, + NSMetadataItemAppleLoopDescriptorsKey, NSMetadataItemAppleLoopsKeyFilterTypeKey, + NSMetadataItemAppleLoopsLoopModeKey, NSMetadataItemAppleLoopsRootKeyKey, + NSMetadataItemApplicationCategoriesKey, NSMetadataItemAttributeChangeDateKey, + NSMetadataItemAudiencesKey, NSMetadataItemAudioBitRateKey, + NSMetadataItemAudioChannelCountKey, NSMetadataItemAudioEncodingApplicationKey, + NSMetadataItemAudioSampleRateKey, NSMetadataItemAudioTrackNumberKey, + NSMetadataItemAuthorAddressesKey, NSMetadataItemAuthorEmailAddressesKey, + NSMetadataItemAuthorsKey, NSMetadataItemBitsPerSampleKey, + NSMetadataItemCFBundleIdentifierKey, NSMetadataItemCameraOwnerKey, NSMetadataItemCityKey, + NSMetadataItemCodecsKey, NSMetadataItemColorSpaceKey, NSMetadataItemCommentKey, + NSMetadataItemComposerKey, NSMetadataItemContactKeywordsKey, + NSMetadataItemContentCreationDateKey, NSMetadataItemContentModificationDateKey, + NSMetadataItemContentTypeKey, NSMetadataItemContentTypeTreeKey, + NSMetadataItemContributorsKey, NSMetadataItemCopyrightKey, NSMetadataItemCountryKey, + NSMetadataItemCoverageKey, NSMetadataItemCreatorKey, NSMetadataItemDateAddedKey, + NSMetadataItemDeliveryTypeKey, NSMetadataItemDescriptionKey, NSMetadataItemDirectorKey, + NSMetadataItemDisplayNameKey, NSMetadataItemDownloadedDateKey, NSMetadataItemDueDateKey, + NSMetadataItemDurationSecondsKey, NSMetadataItemEXIFGPSVersionKey, + NSMetadataItemEXIFVersionKey, NSMetadataItemEditorsKey, NSMetadataItemEmailAddressesKey, + NSMetadataItemEncodingApplicationsKey, NSMetadataItemExecutableArchitecturesKey, + NSMetadataItemExecutablePlatformKey, NSMetadataItemExposureModeKey, + NSMetadataItemExposureProgramKey, NSMetadataItemExposureTimeSecondsKey, + NSMetadataItemExposureTimeStringKey, NSMetadataItemFNumberKey, + NSMetadataItemFSContentChangeDateKey, NSMetadataItemFSCreationDateKey, + NSMetadataItemFSNameKey, NSMetadataItemFSSizeKey, NSMetadataItemFinderCommentKey, + NSMetadataItemFlashOnOffKey, NSMetadataItemFocalLength35mmKey, + NSMetadataItemFocalLengthKey, NSMetadataItemFontsKey, NSMetadataItemGPSAreaInformationKey, + NSMetadataItemGPSDOPKey, NSMetadataItemGPSDateStampKey, NSMetadataItemGPSDestBearingKey, + NSMetadataItemGPSDestDistanceKey, NSMetadataItemGPSDestLatitudeKey, + NSMetadataItemGPSDestLongitudeKey, NSMetadataItemGPSDifferentalKey, + NSMetadataItemGPSMapDatumKey, NSMetadataItemGPSMeasureModeKey, + NSMetadataItemGPSProcessingMethodKey, NSMetadataItemGPSStatusKey, + NSMetadataItemGPSTrackKey, NSMetadataItemGenreKey, NSMetadataItemHasAlphaChannelKey, + NSMetadataItemHeadlineKey, NSMetadataItemISOSpeedKey, NSMetadataItemIdentifierKey, + NSMetadataItemImageDirectionKey, NSMetadataItemInformationKey, + NSMetadataItemInstantMessageAddressesKey, NSMetadataItemInstructionsKey, + NSMetadataItemIsApplicationManagedKey, NSMetadataItemIsGeneralMIDISequenceKey, + NSMetadataItemIsLikelyJunkKey, NSMetadataItemIsUbiquitousKey, + NSMetadataItemKeySignatureKey, NSMetadataItemKeywordsKey, NSMetadataItemKindKey, + NSMetadataItemLanguagesKey, NSMetadataItemLastUsedDateKey, NSMetadataItemLatitudeKey, + NSMetadataItemLayerNamesKey, NSMetadataItemLensModelKey, NSMetadataItemLongitudeKey, + NSMetadataItemLyricistKey, NSMetadataItemMaxApertureKey, NSMetadataItemMediaTypesKey, + NSMetadataItemMeteringModeKey, NSMetadataItemMusicalGenreKey, + NSMetadataItemMusicalInstrumentCategoryKey, NSMetadataItemMusicalInstrumentNameKey, + NSMetadataItemNamedLocationKey, NSMetadataItemNumberOfPagesKey, + NSMetadataItemOrganizationsKey, NSMetadataItemOrientationKey, + NSMetadataItemOriginalFormatKey, NSMetadataItemOriginalSourceKey, + NSMetadataItemPageHeightKey, NSMetadataItemPageWidthKey, NSMetadataItemParticipantsKey, + NSMetadataItemPathKey, NSMetadataItemPerformersKey, NSMetadataItemPhoneNumbersKey, + NSMetadataItemPixelCountKey, NSMetadataItemPixelHeightKey, NSMetadataItemPixelWidthKey, + NSMetadataItemProducerKey, NSMetadataItemProfileNameKey, NSMetadataItemProjectsKey, + NSMetadataItemPublishersKey, NSMetadataItemRecipientAddressesKey, + NSMetadataItemRecipientEmailAddressesKey, NSMetadataItemRecipientsKey, + NSMetadataItemRecordingDateKey, NSMetadataItemRecordingYearKey, + NSMetadataItemRedEyeOnOffKey, NSMetadataItemResolutionHeightDPIKey, + NSMetadataItemResolutionWidthDPIKey, NSMetadataItemRightsKey, + NSMetadataItemSecurityMethodKey, NSMetadataItemSpeedKey, NSMetadataItemStarRatingKey, + NSMetadataItemStateOrProvinceKey, NSMetadataItemStreamableKey, NSMetadataItemSubjectKey, + NSMetadataItemTempoKey, NSMetadataItemTextContentKey, NSMetadataItemThemeKey, + NSMetadataItemTimeSignatureKey, NSMetadataItemTimestampKey, NSMetadataItemTitleKey, + NSMetadataItemTotalBitRateKey, NSMetadataItemURLKey, NSMetadataItemVersionKey, + NSMetadataItemVideoBitRateKey, NSMetadataItemWhereFromsKey, NSMetadataItemWhiteBalanceKey, + NSMetadataUbiquitousItemContainerDisplayNameKey, + NSMetadataUbiquitousItemDownloadRequestedKey, NSMetadataUbiquitousItemDownloadingErrorKey, + NSMetadataUbiquitousItemDownloadingStatusCurrent, + NSMetadataUbiquitousItemDownloadingStatusDownloaded, + NSMetadataUbiquitousItemDownloadingStatusKey, + NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, + NSMetadataUbiquitousItemHasUnresolvedConflictsKey, NSMetadataUbiquitousItemIsDownloadedKey, + NSMetadataUbiquitousItemIsDownloadingKey, NSMetadataUbiquitousItemIsExternalDocumentKey, + NSMetadataUbiquitousItemIsSharedKey, NSMetadataUbiquitousItemIsUploadedKey, + NSMetadataUbiquitousItemIsUploadingKey, NSMetadataUbiquitousItemPercentDownloadedKey, + NSMetadataUbiquitousItemPercentUploadedKey, NSMetadataUbiquitousItemURLInLocalContainerKey, + NSMetadataUbiquitousItemUploadingErrorKey, + NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, + NSMetadataUbiquitousSharedItemCurrentUserRoleKey, + NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, + NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, + NSMetadataUbiquitousSharedItemPermissionsReadOnly, + NSMetadataUbiquitousSharedItemPermissionsReadWrite, + NSMetadataUbiquitousSharedItemRoleOwner, NSMetadataUbiquitousSharedItemRoleParticipant, }; pub use super::NSMethodSignature::NSMethodSignature; pub use super::NSMorphology::{ @@ -551,8 +773,9 @@ mod __exported { NSNetServiceListenForConnections, NSNetServiceNoAutoRename, NSNetServiceOptions, NSNetServicesActivityInProgress, NSNetServicesBadArgumentError, NSNetServicesCancelledError, NSNetServicesCollisionError, NSNetServicesError, - NSNetServicesInvalidError, NSNetServicesMissingRequiredConfigurationError, - NSNetServicesNotFoundError, NSNetServicesTimeoutError, NSNetServicesUnknownError, + NSNetServicesErrorCode, NSNetServicesErrorDomain, NSNetServicesInvalidError, + NSNetServicesMissingRequiredConfigurationError, NSNetServicesNotFoundError, + NSNetServicesTimeoutError, NSNetServicesUnknownError, }; pub use super::NSNotification::{NSNotification, NSNotificationCenter, NSNotificationName}; pub use super::NSNotificationQueue::{ @@ -577,19 +800,21 @@ mod __exported { }; pub use super::NSObjCRuntime::{ NSComparisonResult, NSEnumerationConcurrent, NSEnumerationOptions, NSEnumerationReverse, - NSExceptionName, NSOrderedAscending, NSOrderedDescending, NSOrderedSame, - NSQualityOfService, NSQualityOfServiceBackground, NSQualityOfServiceDefault, - NSQualityOfServiceUserInitiated, NSQualityOfServiceUserInteractive, - NSQualityOfServiceUtility, NSRunLoopMode, NSSortConcurrent, NSSortOptions, NSSortStable, + NSExceptionName, NSFoundationVersionNumber, NSNotFound, NSOrderedAscending, + NSOrderedDescending, NSOrderedSame, NSQualityOfService, NSQualityOfServiceBackground, + NSQualityOfServiceDefault, NSQualityOfServiceUserInitiated, + NSQualityOfServiceUserInteractive, NSQualityOfServiceUtility, NSRunLoopMode, + NSSortConcurrent, NSSortOptions, NSSortStable, }; pub use super::NSObject::{ NSCoding, NSCopying, NSDiscardableContent, NSMutableCopying, NSSecureCoding, }; pub use super::NSOperation::{ - NSBlockOperation, NSInvocationOperation, NSOperation, NSOperationQueue, - NSOperationQueuePriority, NSOperationQueuePriorityHigh, NSOperationQueuePriorityLow, - NSOperationQueuePriorityNormal, NSOperationQueuePriorityVeryHigh, - NSOperationQueuePriorityVeryLow, + NSBlockOperation, NSInvocationOperation, NSInvocationOperationCancelledException, + NSInvocationOperationVoidResultException, NSOperation, NSOperationQueue, + NSOperationQueueDefaultMaxConcurrentOperationCount, NSOperationQueuePriority, + NSOperationQueuePriorityHigh, NSOperationQueuePriorityLow, NSOperationQueuePriorityNormal, + NSOperationQueuePriorityVeryHigh, NSOperationQueuePriorityVeryLow, }; pub use super::NSOrderedCollectionChange::{ NSCollectionChangeInsert, NSCollectionChangeRemove, NSCollectionChangeType, @@ -618,6 +843,9 @@ mod __exported { }; pub use super::NSPersonNameComponents::NSPersonNameComponents; pub use super::NSPersonNameComponentsFormatter::{ + NSPersonNameComponentDelimiter, NSPersonNameComponentFamilyName, + NSPersonNameComponentGivenName, NSPersonNameComponentKey, NSPersonNameComponentMiddleName, + NSPersonNameComponentNickname, NSPersonNameComponentPrefix, NSPersonNameComponentSuffix, NSPersonNameComponentsFormatter, NSPersonNameComponentsFormatterOptions, NSPersonNameComponentsFormatterPhonetic, NSPersonNameComponentsFormatterStyle, NSPersonNameComponentsFormatterStyleAbbreviated, @@ -637,7 +865,7 @@ mod __exported { pub use super::NSPort::{ NSMachPort, NSMachPortDeallocateNone, NSMachPortDeallocateReceiveRight, NSMachPortDeallocateSendRight, NSMachPortDelegate, NSMachPortOptions, NSMessagePort, - NSPort, NSPortDelegate, NSSocketPort, + NSPort, NSPortDelegate, NSPortDidBecomeInvalidNotification, NSSocketPort, }; pub use super::NSPortCoder::NSPortCoder; pub use super::NSPortMessage::NSPortMessage; @@ -651,13 +879,21 @@ mod __exported { NSActivityLatencyCritical, NSActivityOptions, NSActivitySuddenTerminationDisabled, NSActivityUserInitiated, NSActivityUserInitiatedAllowingIdleSystemSleep, NSHPUXOperatingSystem, NSMACHOperatingSystem, NSOSF1OperatingSystem, NSProcessInfo, - NSProcessInfoThermalState, NSProcessInfoThermalStateCritical, + NSProcessInfoPowerStateDidChangeNotification, NSProcessInfoThermalState, + NSProcessInfoThermalStateCritical, NSProcessInfoThermalStateDidChangeNotification, NSProcessInfoThermalStateFair, NSProcessInfoThermalStateNominal, NSProcessInfoThermalStateSerious, NSSolarisOperatingSystem, NSSunOSOperatingSystem, NSWindows95OperatingSystem, NSWindowsNTOperatingSystem, }; pub use super::NSProgress::{ - NSProgress, NSProgressFileOperationKind, NSProgressKind, NSProgressReporting, + NSProgress, NSProgressEstimatedTimeRemainingKey, NSProgressFileAnimationImageKey, + NSProgressFileAnimationImageOriginalRectKey, NSProgressFileCompletedCountKey, + NSProgressFileIconKey, NSProgressFileOperationKind, NSProgressFileOperationKindCopying, + NSProgressFileOperationKindDecompressingAfterDownloading, + NSProgressFileOperationKindDownloading, NSProgressFileOperationKindDuplicating, + NSProgressFileOperationKindKey, NSProgressFileOperationKindReceiving, + NSProgressFileOperationKindUploading, NSProgressFileTotalCountKey, NSProgressFileURLKey, + NSProgressKind, NSProgressKindFile, NSProgressReporting, NSProgressThroughputKey, NSProgressUserInfoKey, }; pub use super::NSPropertyList::{ @@ -686,7 +922,7 @@ mod __exported { NSRelativeDateTimeFormatterUnitsStyleFull, NSRelativeDateTimeFormatterUnitsStyleShort, NSRelativeDateTimeFormatterUnitsStyleSpellOut, }; - pub use super::NSRunLoop::NSRunLoop; + pub use super::NSRunLoop::{NSDefaultRunLoopMode, NSRunLoop, NSRunLoopCommonModes}; pub use super::NSScanner::NSScanner; pub use super::NSScriptClassDescription::NSScriptClassDescription; pub use super::NSScriptCoercionHandler::NSScriptCoercionHandler; @@ -700,6 +936,7 @@ mod __exported { }; pub use super::NSScriptCommandDescription::NSScriptCommandDescription; pub use super::NSScriptExecutionContext::NSScriptExecutionContext; + pub use super::NSScriptKeyValueCoding::NSOperationNotSupportedForKeyException; pub use super::NSScriptObjectSpecifiers::{ NSContainerSpecifierError, NSEverySubelement, NSIndexSpecifier, NSIndexSubelement, NSInsertionPosition, NSInternalSpecifierError, NSInvalidIndexSpecifierError, @@ -725,57 +962,89 @@ mod __exported { }; pub use super::NSSet::{NSCountedSet, NSMutableSet, NSSet}; pub use super::NSSortDescriptor::NSSortDescriptor; - pub use super::NSSpellServer::{NSSpellServer, NSSpellServerDelegate}; + pub use super::NSSpellServer::{ + NSGrammarCorrections, NSGrammarRange, NSGrammarUserDescription, NSSpellServer, + NSSpellServerDelegate, + }; pub use super::NSStream::{ - NSInputStream, NSOutputStream, NSStream, NSStreamDelegate, NSStreamEvent, - NSStreamEventEndEncountered, NSStreamEventErrorOccurred, NSStreamEventHasBytesAvailable, - NSStreamEventHasSpaceAvailable, NSStreamEventNone, NSStreamEventOpenCompleted, - NSStreamNetworkServiceTypeValue, NSStreamPropertyKey, NSStreamSOCKSProxyConfiguration, - NSStreamSOCKSProxyVersion, NSStreamSocketSecurityLevel, NSStreamStatus, + NSInputStream, NSOutputStream, NSStream, NSStreamDataWrittenToMemoryStreamKey, + NSStreamDelegate, NSStreamEvent, NSStreamEventEndEncountered, NSStreamEventErrorOccurred, + NSStreamEventHasBytesAvailable, NSStreamEventHasSpaceAvailable, NSStreamEventNone, + NSStreamEventOpenCompleted, NSStreamFileCurrentOffsetKey, NSStreamNetworkServiceType, + NSStreamNetworkServiceTypeBackground, NSStreamNetworkServiceTypeCallSignaling, + NSStreamNetworkServiceTypeValue, NSStreamNetworkServiceTypeVideo, + NSStreamNetworkServiceTypeVoIP, NSStreamNetworkServiceTypeVoice, NSStreamPropertyKey, + NSStreamSOCKSErrorDomain, NSStreamSOCKSProxyConfiguration, + NSStreamSOCKSProxyConfigurationKey, NSStreamSOCKSProxyHostKey, + NSStreamSOCKSProxyPasswordKey, NSStreamSOCKSProxyPortKey, NSStreamSOCKSProxyUserKey, + NSStreamSOCKSProxyVersion, NSStreamSOCKSProxyVersion4, NSStreamSOCKSProxyVersion5, + NSStreamSOCKSProxyVersionKey, NSStreamSocketSSLErrorDomain, NSStreamSocketSecurityLevel, + NSStreamSocketSecurityLevelKey, NSStreamSocketSecurityLevelNegotiatedSSL, + NSStreamSocketSecurityLevelNone, NSStreamSocketSecurityLevelSSLv2, + NSStreamSocketSecurityLevelSSLv3, NSStreamSocketSecurityLevelTLSv1, NSStreamStatus, NSStreamStatusAtEnd, NSStreamStatusClosed, NSStreamStatusError, NSStreamStatusNotOpen, NSStreamStatusOpen, NSStreamStatusOpening, NSStreamStatusReading, NSStreamStatusWriting, }; pub use super::NSString::{ NSASCIIStringEncoding, NSAnchoredSearch, NSBackwardsSearch, NSCaseInsensitiveSearch, - NSConstantString, NSDiacriticInsensitiveSearch, NSForcedOrderingSearch, - NSISO2022JPStringEncoding, NSISOLatin1StringEncoding, NSISOLatin2StringEncoding, - NSJapaneseEUCStringEncoding, NSLiteralSearch, NSMacOSRomanStringEncoding, NSMutableString, - NSNEXTSTEPStringEncoding, NSNonLossyASCIIStringEncoding, NSNumericSearch, + NSCharacterConversionException, NSConstantString, NSDiacriticInsensitiveSearch, + NSForcedOrderingSearch, NSISO2022JPStringEncoding, NSISOLatin1StringEncoding, + NSISOLatin2StringEncoding, NSJapaneseEUCStringEncoding, NSLiteralSearch, + NSMacOSRomanStringEncoding, NSMutableString, NSNEXTSTEPStringEncoding, + NSNonLossyASCIIStringEncoding, NSNumericSearch, NSParseErrorException, NSProprietaryStringEncoding, NSRegularExpressionSearch, NSShiftJISStringEncoding, NSSimpleCString, NSString, NSStringCompareOptions, NSStringEncoding, NSStringEncodingConversionAllowLossy, NSStringEncodingConversionExternalRepresentation, - NSStringEncodingConversionOptions, NSStringEncodingDetectionOptionsKey, - NSStringEnumerationByCaretPositions, NSStringEnumerationByComposedCharacterSequences, - NSStringEnumerationByDeletionClusters, NSStringEnumerationByLines, - NSStringEnumerationByParagraphs, NSStringEnumerationBySentences, - NSStringEnumerationByWords, NSStringEnumerationLocalized, NSStringEnumerationOptions, - NSStringEnumerationReverse, NSStringEnumerationSubstringNotRequired, NSStringTransform, - NSSymbolStringEncoding, NSUTF16BigEndianStringEncoding, NSUTF16LittleEndianStringEncoding, - NSUTF16StringEncoding, NSUTF32BigEndianStringEncoding, NSUTF32LittleEndianStringEncoding, - NSUTF32StringEncoding, NSUTF8StringEncoding, NSUnicodeStringEncoding, - NSWidthInsensitiveSearch, NSWindowsCP1250StringEncoding, NSWindowsCP1251StringEncoding, - NSWindowsCP1252StringEncoding, NSWindowsCP1253StringEncoding, - NSWindowsCP1254StringEncoding, + NSStringEncodingConversionOptions, NSStringEncodingDetectionAllowLossyKey, + NSStringEncodingDetectionDisallowedEncodingsKey, NSStringEncodingDetectionFromWindowsKey, + NSStringEncodingDetectionLikelyLanguageKey, NSStringEncodingDetectionLossySubstitutionKey, + NSStringEncodingDetectionOptionsKey, NSStringEncodingDetectionSuggestedEncodingsKey, + NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, NSStringEnumerationByCaretPositions, + NSStringEnumerationByComposedCharacterSequences, NSStringEnumerationByDeletionClusters, + NSStringEnumerationByLines, NSStringEnumerationByParagraphs, + NSStringEnumerationBySentences, NSStringEnumerationByWords, NSStringEnumerationLocalized, + NSStringEnumerationOptions, NSStringEnumerationReverse, + NSStringEnumerationSubstringNotRequired, NSStringTransform, + NSStringTransformFullwidthToHalfwidth, NSStringTransformHiraganaToKatakana, + NSStringTransformLatinToArabic, NSStringTransformLatinToCyrillic, + NSStringTransformLatinToGreek, NSStringTransformLatinToHangul, + NSStringTransformLatinToHebrew, NSStringTransformLatinToHiragana, + NSStringTransformLatinToKatakana, NSStringTransformLatinToThai, + NSStringTransformMandarinToLatin, NSStringTransformStripCombiningMarks, + NSStringTransformStripDiacritics, NSStringTransformToLatin, NSStringTransformToUnicodeName, + NSStringTransformToXMLHex, NSSymbolStringEncoding, NSUTF16BigEndianStringEncoding, + NSUTF16LittleEndianStringEncoding, NSUTF16StringEncoding, NSUTF32BigEndianStringEncoding, + NSUTF32LittleEndianStringEncoding, NSUTF32StringEncoding, NSUTF8StringEncoding, + NSUnicodeStringEncoding, NSWidthInsensitiveSearch, NSWindowsCP1250StringEncoding, + NSWindowsCP1251StringEncoding, NSWindowsCP1252StringEncoding, + NSWindowsCP1253StringEncoding, NSWindowsCP1254StringEncoding, }; pub use super::NSTask::{ - NSTask, NSTaskTerminationReason, NSTaskTerminationReasonExit, - NSTaskTerminationReasonUncaughtSignal, + NSTask, NSTaskDidTerminateNotification, NSTaskTerminationReason, + NSTaskTerminationReasonExit, NSTaskTerminationReasonUncaughtSignal, }; pub use super::NSTextCheckingResult::{ - NSTextCheckingAllCustomTypes, NSTextCheckingAllSystemTypes, NSTextCheckingAllTypes, - NSTextCheckingKey, NSTextCheckingResult, NSTextCheckingType, NSTextCheckingTypeAddress, - NSTextCheckingTypeCorrection, NSTextCheckingTypeDash, NSTextCheckingTypeDate, - NSTextCheckingTypeGrammar, NSTextCheckingTypeLink, NSTextCheckingTypeOrthography, - NSTextCheckingTypePhoneNumber, NSTextCheckingTypeQuote, + NSTextCheckingAirlineKey, NSTextCheckingAllCustomTypes, NSTextCheckingAllSystemTypes, + NSTextCheckingAllTypes, NSTextCheckingCityKey, NSTextCheckingCountryKey, + NSTextCheckingFlightKey, NSTextCheckingJobTitleKey, NSTextCheckingKey, + NSTextCheckingNameKey, NSTextCheckingOrganizationKey, NSTextCheckingPhoneKey, + NSTextCheckingResult, NSTextCheckingStateKey, NSTextCheckingStreetKey, NSTextCheckingType, + NSTextCheckingTypeAddress, NSTextCheckingTypeCorrection, NSTextCheckingTypeDash, + NSTextCheckingTypeDate, NSTextCheckingTypeGrammar, NSTextCheckingTypeLink, + NSTextCheckingTypeOrthography, NSTextCheckingTypePhoneNumber, NSTextCheckingTypeQuote, NSTextCheckingTypeRegularExpression, NSTextCheckingTypeReplacement, NSTextCheckingTypeSpelling, NSTextCheckingTypeTransitInformation, NSTextCheckingTypes, + NSTextCheckingZIPKey, + }; + pub use super::NSThread::{ + NSDidBecomeSingleThreadedNotification, NSThread, NSThreadWillExitNotification, + NSWillBecomeMultiThreadedNotification, }; - pub use super::NSThread::NSThread; pub use super::NSTimeZone::{ - NSTimeZone, NSTimeZoneNameStyle, NSTimeZoneNameStyleDaylightSaving, - NSTimeZoneNameStyleGeneric, NSTimeZoneNameStyleShortDaylightSaving, - NSTimeZoneNameStyleShortGeneric, NSTimeZoneNameStyleShortStandard, - NSTimeZoneNameStyleStandard, + NSSystemTimeZoneDidChangeNotification, NSTimeZone, NSTimeZoneNameStyle, + NSTimeZoneNameStyleDaylightSaving, NSTimeZoneNameStyleGeneric, + NSTimeZoneNameStyleShortDaylightSaving, NSTimeZoneNameStyleShortGeneric, + NSTimeZoneNameStyleShortStandard, NSTimeZoneNameStyleStandard, }; pub use super::NSTimer::NSTimer; pub use super::NSURLAuthenticationChallenge::{ @@ -794,14 +1063,17 @@ mod __exported { NSURLCredentialPersistenceNone, NSURLCredentialPersistencePermanent, NSURLCredentialPersistenceSynchronizable, }; - pub use super::NSURLCredentialStorage::NSURLCredentialStorage; + pub use super::NSURLCredentialStorage::{ + NSURLCredentialStorage, NSURLCredentialStorageChangedNotification, + NSURLCredentialStorageRemoveSynchronizableCredentials, + }; pub use super::NSURLDownload::{NSURLDownload, NSURLDownloadDelegate}; pub use super::NSURLError::{ - NSURLErrorAppTransportSecurityRequiresSecureConnection, + NSErrorFailingURLStringKey, NSURLErrorAppTransportSecurityRequiresSecureConnection, NSURLErrorBackgroundSessionInUseByAnotherProcess, NSURLErrorBackgroundSessionRequiresSharedContainer, - NSURLErrorBackgroundSessionWasDisconnected, NSURLErrorBadServerResponse, NSURLErrorBadURL, - NSURLErrorCallIsActive, NSURLErrorCancelled, + NSURLErrorBackgroundSessionWasDisconnected, NSURLErrorBackgroundTaskCancelledReasonKey, + NSURLErrorBadServerResponse, NSURLErrorBadURL, NSURLErrorCallIsActive, NSURLErrorCancelled, NSURLErrorCancelledReasonBackgroundUpdatesDisabled, NSURLErrorCancelledReasonInsufficientSystemResources, NSURLErrorCancelledReasonUserForceQuitApplication, NSURLErrorCannotCloseFile, @@ -811,25 +1083,41 @@ mod __exported { NSURLErrorCannotParseResponse, NSURLErrorCannotRemoveFile, NSURLErrorCannotWriteToFile, NSURLErrorClientCertificateRejected, NSURLErrorClientCertificateRequired, NSURLErrorDNSLookupFailed, NSURLErrorDataLengthExceedsMaximum, NSURLErrorDataNotAllowed, - NSURLErrorDownloadDecodingFailedMidStream, NSURLErrorDownloadDecodingFailedToComplete, + NSURLErrorDomain, NSURLErrorDownloadDecodingFailedMidStream, + NSURLErrorDownloadDecodingFailedToComplete, NSURLErrorFailingURLErrorKey, + NSURLErrorFailingURLPeerTrustErrorKey, NSURLErrorFailingURLStringErrorKey, NSURLErrorFileDoesNotExist, NSURLErrorFileIsDirectory, NSURLErrorFileOutsideSafeArea, NSURLErrorHTTPTooManyRedirects, NSURLErrorInternationalRoamingOff, NSURLErrorNetworkConnectionLost, NSURLErrorNetworkUnavailableReason, NSURLErrorNetworkUnavailableReasonCellular, NSURLErrorNetworkUnavailableReasonConstrained, - NSURLErrorNetworkUnavailableReasonExpensive, NSURLErrorNoPermissionsToReadFile, - NSURLErrorNotConnectedToInternet, NSURLErrorRedirectToNonExistentLocation, - NSURLErrorRequestBodyStreamExhausted, NSURLErrorResourceUnavailable, - NSURLErrorSecureConnectionFailed, NSURLErrorServerCertificateHasBadDate, - NSURLErrorServerCertificateHasUnknownRoot, NSURLErrorServerCertificateNotYetValid, - NSURLErrorServerCertificateUntrusted, NSURLErrorTimedOut, NSURLErrorUnknown, - NSURLErrorUnsupportedURL, NSURLErrorUserAuthenticationRequired, - NSURLErrorUserCancelledAuthentication, NSURLErrorZeroByteResource, + NSURLErrorNetworkUnavailableReasonExpensive, NSURLErrorNetworkUnavailableReasonKey, + NSURLErrorNoPermissionsToReadFile, NSURLErrorNotConnectedToInternet, + NSURLErrorRedirectToNonExistentLocation, NSURLErrorRequestBodyStreamExhausted, + NSURLErrorResourceUnavailable, NSURLErrorSecureConnectionFailed, + NSURLErrorServerCertificateHasBadDate, NSURLErrorServerCertificateHasUnknownRoot, + NSURLErrorServerCertificateNotYetValid, NSURLErrorServerCertificateUntrusted, + NSURLErrorTimedOut, NSURLErrorUnknown, NSURLErrorUnsupportedURL, + NSURLErrorUserAuthenticationRequired, NSURLErrorUserCancelledAuthentication, + NSURLErrorZeroByteResource, }; pub use super::NSURLHandle::{ - NSURLHandle, NSURLHandleClient, NSURLHandleLoadFailed, NSURLHandleLoadInProgress, - NSURLHandleLoadSucceeded, NSURLHandleNotLoaded, NSURLHandleStatus, + NSFTPPropertyActiveTransferModeKey, NSFTPPropertyFTPProxy, NSFTPPropertyFileOffsetKey, + NSFTPPropertyUserLoginKey, NSFTPPropertyUserPasswordKey, NSHTTPPropertyErrorPageDataKey, + NSHTTPPropertyHTTPProxy, NSHTTPPropertyRedirectionHeadersKey, + NSHTTPPropertyServerHTTPVersionKey, NSHTTPPropertyStatusCodeKey, + NSHTTPPropertyStatusReasonKey, NSURLHandle, NSURLHandleClient, NSURLHandleLoadFailed, + NSURLHandleLoadInProgress, NSURLHandleLoadSucceeded, NSURLHandleNotLoaded, + NSURLHandleStatus, + }; + pub use super::NSURLProtectionSpace::{ + NSURLAuthenticationMethodClientCertificate, NSURLAuthenticationMethodDefault, + NSURLAuthenticationMethodHTMLForm, NSURLAuthenticationMethodHTTPBasic, + NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM, + NSURLAuthenticationMethodNegotiate, NSURLAuthenticationMethodServerTrust, + NSURLProtectionSpace, NSURLProtectionSpaceFTP, NSURLProtectionSpaceFTPProxy, + NSURLProtectionSpaceHTTP, NSURLProtectionSpaceHTTPProxy, NSURLProtectionSpaceHTTPS, + NSURLProtectionSpaceHTTPSProxy, NSURLProtectionSpaceSOCKSProxy, }; - pub use super::NSURLProtectionSpace::NSURLProtectionSpace; pub use super::NSURLProtocol::{NSURLProtocol, NSURLProtocolClient}; pub use super::NSURLRequest::{ NSMutableURLRequest, NSURLNetworkServiceTypeAVStreaming, NSURLNetworkServiceTypeBackground, @@ -852,13 +1140,14 @@ mod __exported { NSURLSessionDelayedRequestCancel, NSURLSessionDelayedRequestContinueLoading, NSURLSessionDelayedRequestDisposition, NSURLSessionDelayedRequestUseNewRequest, NSURLSessionDelegate, NSURLSessionDownloadDelegate, NSURLSessionDownloadTask, - NSURLSessionMultipathServiceType, NSURLSessionMultipathServiceTypeAggregate, - NSURLSessionMultipathServiceTypeHandover, NSURLSessionMultipathServiceTypeInteractive, - NSURLSessionMultipathServiceTypeNone, NSURLSessionResponseAllow, - NSURLSessionResponseBecomeDownload, NSURLSessionResponseBecomeStream, - NSURLSessionResponseCancel, NSURLSessionResponseDisposition, NSURLSessionStreamDelegate, - NSURLSessionStreamTask, NSURLSessionTask, NSURLSessionTaskDelegate, - NSURLSessionTaskMetrics, NSURLSessionTaskMetricsDomainResolutionProtocol, + NSURLSessionDownloadTaskResumeData, NSURLSessionMultipathServiceType, + NSURLSessionMultipathServiceTypeAggregate, NSURLSessionMultipathServiceTypeHandover, + NSURLSessionMultipathServiceTypeInteractive, NSURLSessionMultipathServiceTypeNone, + NSURLSessionResponseAllow, NSURLSessionResponseBecomeDownload, + NSURLSessionResponseBecomeStream, NSURLSessionResponseCancel, + NSURLSessionResponseDisposition, NSURLSessionStreamDelegate, NSURLSessionStreamTask, + NSURLSessionTask, NSURLSessionTaskDelegate, NSURLSessionTaskMetrics, + NSURLSessionTaskMetricsDomainResolutionProtocol, NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, NSURLSessionTaskMetricsDomainResolutionProtocolTCP, NSURLSessionTaskMetricsDomainResolutionProtocolTLS, @@ -868,10 +1157,12 @@ mod __exported { NSURLSessionTaskMetricsResourceFetchTypeLocalCache, NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad, NSURLSessionTaskMetricsResourceFetchTypeServerPush, - NSURLSessionTaskMetricsResourceFetchTypeUnknown, NSURLSessionTaskState, + NSURLSessionTaskMetricsResourceFetchTypeUnknown, NSURLSessionTaskPriorityDefault, + NSURLSessionTaskPriorityHigh, NSURLSessionTaskPriorityLow, NSURLSessionTaskState, NSURLSessionTaskStateCanceling, NSURLSessionTaskStateCompleted, NSURLSessionTaskStateRunning, NSURLSessionTaskStateSuspended, - NSURLSessionTaskTransactionMetrics, NSURLSessionUploadTask, NSURLSessionWebSocketCloseCode, + NSURLSessionTaskTransactionMetrics, NSURLSessionTransferSizeUnknown, + NSURLSessionUploadTask, NSURLSessionWebSocketCloseCode, NSURLSessionWebSocketCloseCodeAbnormalClosure, NSURLSessionWebSocketCloseCodeGoingAway, NSURLSessionWebSocketCloseCodeInternalServerError, NSURLSessionWebSocketCloseCodeInvalid, NSURLSessionWebSocketCloseCodeInvalidFramePayloadData, @@ -888,10 +1179,18 @@ mod __exported { }; pub use super::NSUbiquitousKeyValueStore::{ NSUbiquitousKeyValueStore, NSUbiquitousKeyValueStoreAccountChange, + NSUbiquitousKeyValueStoreChangeReasonKey, NSUbiquitousKeyValueStoreChangedKeysKey, + NSUbiquitousKeyValueStoreDidChangeExternallyNotification, NSUbiquitousKeyValueStoreInitialSyncChange, NSUbiquitousKeyValueStoreQuotaViolationChange, NSUbiquitousKeyValueStoreServerChange, }; - pub use super::NSUndoManager::NSUndoManager; + pub use super::NSUndoManager::{ + NSUndoCloseGroupingRunLoopOrdering, NSUndoManager, NSUndoManagerCheckpointNotification, + NSUndoManagerDidCloseUndoGroupNotification, NSUndoManagerDidOpenUndoGroupNotification, + NSUndoManagerDidRedoChangeNotification, NSUndoManagerDidUndoChangeNotification, + NSUndoManagerGroupIsDiscardableKey, NSUndoManagerWillCloseUndoGroupNotification, + NSUndoManagerWillRedoChangeNotification, NSUndoManagerWillUndoChangeNotification, + }; pub use super::NSUnit::{ NSDimension, NSUnit, NSUnitAcceleration, NSUnitAngle, NSUnitArea, NSUnitConcentrationMass, NSUnitConverter, NSUnitConverterLinear, NSUnitDispersion, NSUnitDuration, @@ -902,22 +1201,40 @@ mod __exported { }; pub use super::NSUserActivity::{ NSUserActivity, NSUserActivityDelegate, NSUserActivityPersistentIdentifier, + NSUserActivityTypeBrowsingWeb, + }; + pub use super::NSUserDefaults::{ + NSAMPMDesignation, NSArgumentDomain, NSCurrencySymbol, NSDateFormatString, + NSDateTimeOrdering, NSDecimalDigits, NSDecimalSeparator, NSEarlierTimeDesignations, + NSGlobalDomain, NSHourNameDesignations, NSInternationalCurrencyString, + NSLaterTimeDesignations, NSMonthNameArray, NSNegativeCurrencyFormatString, + NSNextDayDesignations, NSNextNextDayDesignations, NSPositiveCurrencyFormatString, + NSPriorDayDesignations, NSRegistrationDomain, NSShortDateFormatString, + NSShortMonthNameArray, NSShortTimeDateFormatString, NSShortWeekDayNameArray, + NSThisDayDesignations, NSThousandsSeparator, NSTimeDateFormatString, NSTimeFormatString, + NSUbiquitousUserDefaultsCompletedInitialSyncNotification, + NSUbiquitousUserDefaultsDidChangeAccountsNotification, + NSUbiquitousUserDefaultsNoCloudAccountNotification, NSUserDefaults, + NSUserDefaultsDidChangeNotification, NSUserDefaultsSizeLimitExceededNotification, + NSWeekDayNameArray, NSYearMonthWeekDesignations, }; - pub use super::NSUserDefaults::NSUserDefaults; pub use super::NSUserNotification::{ NSUserNotification, NSUserNotificationAction, NSUserNotificationActivationType, NSUserNotificationActivationTypeActionButtonClicked, NSUserNotificationActivationTypeAdditionalActionClicked, NSUserNotificationActivationTypeContentsClicked, NSUserNotificationActivationTypeNone, NSUserNotificationActivationTypeReplied, NSUserNotificationCenter, - NSUserNotificationCenterDelegate, + NSUserNotificationCenterDelegate, NSUserNotificationDefaultSoundName, }; pub use super::NSUserScriptTask::{ NSUserAppleScriptTask, NSUserAutomatorTask, NSUserScriptTask, NSUserUnixTask, }; pub use super::NSValue::{NSNumber, NSValue}; pub use super::NSValueTransformer::{ - NSSecureUnarchiveFromDataTransformer, NSValueTransformer, NSValueTransformerName, + NSIsNilTransformerName, NSIsNotNilTransformerName, NSKeyedUnarchiveFromDataTransformerName, + NSNegateBooleanTransformerName, NSSecureUnarchiveFromDataTransformer, + NSSecureUnarchiveFromDataTransformerName, NSUnarchiveFromDataTransformerName, + NSValueTransformer, NSValueTransformerName, }; pub use super::NSXMLDTDNode::{ NSXMLAttributeCDATAKind, NSXMLAttributeEntitiesKind, NSXMLAttributeEntityKind, @@ -971,14 +1288,15 @@ mod __exported { NSXMLParserEntityRefInEpilogError, NSXMLParserEntityRefInPrologError, NSXMLParserEntityRefLoopError, NSXMLParserEntityReferenceMissingSemiError, NSXMLParserEntityReferenceWithoutNameError, NSXMLParserEntityValueRequiredError, - NSXMLParserEqualExpectedError, NSXMLParserError, NSXMLParserExternalEntityResolvingPolicy, - NSXMLParserExternalStandaloneEntityError, NSXMLParserExternalSubsetNotFinishedError, - NSXMLParserExtraContentError, NSXMLParserGTRequiredError, NSXMLParserInternalError, - NSXMLParserInvalidCharacterError, NSXMLParserInvalidCharacterInEntityError, - NSXMLParserInvalidCharacterRefError, NSXMLParserInvalidConditionalSectionError, - NSXMLParserInvalidDecimalCharacterRefError, NSXMLParserInvalidEncodingError, - NSXMLParserInvalidEncodingNameError, NSXMLParserInvalidHexCharacterRefError, - NSXMLParserInvalidURIError, NSXMLParserLTRequiredError, NSXMLParserLTSlashRequiredError, + NSXMLParserEqualExpectedError, NSXMLParserError, NSXMLParserErrorDomain, + NSXMLParserExternalEntityResolvingPolicy, NSXMLParserExternalStandaloneEntityError, + NSXMLParserExternalSubsetNotFinishedError, NSXMLParserExtraContentError, + NSXMLParserGTRequiredError, NSXMLParserInternalError, NSXMLParserInvalidCharacterError, + NSXMLParserInvalidCharacterInEntityError, NSXMLParserInvalidCharacterRefError, + NSXMLParserInvalidConditionalSectionError, NSXMLParserInvalidDecimalCharacterRefError, + NSXMLParserInvalidEncodingError, NSXMLParserInvalidEncodingNameError, + NSXMLParserInvalidHexCharacterRefError, NSXMLParserInvalidURIError, + NSXMLParserLTRequiredError, NSXMLParserLTSlashRequiredError, NSXMLParserLessThanSymbolInAttributeError, NSXMLParserLiteralNotFinishedError, NSXMLParserLiteralNotStartedError, NSXMLParserMisplacedCDATAEndStringError, NSXMLParserMisplacedXMLDeclarationError, NSXMLParserMixedContentDeclNotFinishedError, @@ -1010,17 +1328,77 @@ mod __exported { }; pub use super::NSZone::{NSCollectorDisabledOption, NSScannedOption}; pub use super::NSURL::{ - NSFileSecurity, NSURLBookmarkCreationMinimalBookmark, NSURLBookmarkCreationOptions, + NSFileSecurity, NSThumbnail1024x1024SizeKey, NSURLAddedToDirectoryDateKey, + NSURLApplicationIsScriptableKey, NSURLAttributeModificationDateKey, + NSURLBookmarkCreationMinimalBookmark, NSURLBookmarkCreationOptions, NSURLBookmarkCreationPreferFileIDResolution, NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, NSURLBookmarkCreationSuitableForBookmarkFile, NSURLBookmarkCreationWithSecurityScope, NSURLBookmarkCreationWithoutImplicitSecurityScope, NSURLBookmarkFileCreationOptions, NSURLBookmarkResolutionOptions, NSURLBookmarkResolutionWithSecurityScope, NSURLBookmarkResolutionWithoutImplicitStartAccessing, - NSURLBookmarkResolutionWithoutMounting, NSURLBookmarkResolutionWithoutUI, NSURLComponents, - NSURLFileProtectionType, NSURLFileResourceType, NSURLQueryItem, NSURLResourceKey, - NSURLThumbnailDictionaryItem, NSURLUbiquitousItemDownloadingStatus, - NSURLUbiquitousSharedItemPermissions, NSURLUbiquitousSharedItemRole, NSURL, + NSURLBookmarkResolutionWithoutMounting, NSURLBookmarkResolutionWithoutUI, + NSURLCanonicalPathKey, NSURLComponents, NSURLContentAccessDateKey, + NSURLContentModificationDateKey, NSURLContentTypeKey, NSURLCreationDateKey, + NSURLCustomIconKey, NSURLDocumentIdentifierKey, NSURLEffectiveIconKey, + NSURLFileAllocatedSizeKey, NSURLFileContentIdentifierKey, NSURLFileProtectionComplete, + NSURLFileProtectionCompleteUnlessOpen, + NSURLFileProtectionCompleteUntilFirstUserAuthentication, NSURLFileProtectionKey, + NSURLFileProtectionNone, NSURLFileProtectionType, NSURLFileResourceIdentifierKey, + NSURLFileResourceType, NSURLFileResourceTypeBlockSpecial, + NSURLFileResourceTypeCharacterSpecial, NSURLFileResourceTypeDirectory, + NSURLFileResourceTypeKey, NSURLFileResourceTypeNamedPipe, NSURLFileResourceTypeRegular, + NSURLFileResourceTypeSocket, NSURLFileResourceTypeSymbolicLink, + NSURLFileResourceTypeUnknown, NSURLFileScheme, NSURLFileSecurityKey, NSURLFileSizeKey, + NSURLGenerationIdentifierKey, NSURLHasHiddenExtensionKey, NSURLIsAliasFileKey, + NSURLIsApplicationKey, NSURLIsDirectoryKey, NSURLIsExcludedFromBackupKey, + NSURLIsExecutableKey, NSURLIsHiddenKey, NSURLIsMountTriggerKey, NSURLIsPackageKey, + NSURLIsPurgeableKey, NSURLIsReadableKey, NSURLIsRegularFileKey, NSURLIsSparseKey, + NSURLIsSymbolicLinkKey, NSURLIsSystemImmutableKey, NSURLIsUbiquitousItemKey, + NSURLIsUserImmutableKey, NSURLIsVolumeKey, NSURLIsWritableKey, NSURLKeysOfUnsetValuesKey, + NSURLLabelColorKey, NSURLLabelNumberKey, NSURLLinkCountKey, NSURLLocalizedLabelKey, + NSURLLocalizedNameKey, NSURLLocalizedTypeDescriptionKey, NSURLMayHaveExtendedAttributesKey, + NSURLMayShareFileContentKey, NSURLNameKey, NSURLParentDirectoryURLKey, NSURLPathKey, + NSURLPreferredIOBlockSizeKey, NSURLQuarantinePropertiesKey, NSURLQueryItem, + NSURLResourceKey, NSURLTagNamesKey, NSURLThumbnailDictionaryItem, + NSURLThumbnailDictionaryKey, NSURLThumbnailKey, NSURLTotalFileAllocatedSizeKey, + NSURLTotalFileSizeKey, NSURLTypeIdentifierKey, NSURLUbiquitousItemContainerDisplayNameKey, + NSURLUbiquitousItemDownloadRequestedKey, NSURLUbiquitousItemDownloadingErrorKey, + NSURLUbiquitousItemDownloadingStatus, NSURLUbiquitousItemDownloadingStatusCurrent, + NSURLUbiquitousItemDownloadingStatusDownloaded, NSURLUbiquitousItemDownloadingStatusKey, + NSURLUbiquitousItemDownloadingStatusNotDownloaded, + NSURLUbiquitousItemHasUnresolvedConflictsKey, NSURLUbiquitousItemIsDownloadedKey, + NSURLUbiquitousItemIsDownloadingKey, NSURLUbiquitousItemIsExcludedFromSyncKey, + NSURLUbiquitousItemIsSharedKey, NSURLUbiquitousItemIsUploadedKey, + NSURLUbiquitousItemIsUploadingKey, NSURLUbiquitousItemPercentDownloadedKey, + NSURLUbiquitousItemPercentUploadedKey, NSURLUbiquitousItemUploadingErrorKey, + NSURLUbiquitousSharedItemCurrentUserPermissionsKey, + NSURLUbiquitousSharedItemCurrentUserRoleKey, + NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, + NSURLUbiquitousSharedItemOwnerNameComponentsKey, NSURLUbiquitousSharedItemPermissions, + NSURLUbiquitousSharedItemPermissionsReadOnly, + NSURLUbiquitousSharedItemPermissionsReadWrite, NSURLUbiquitousSharedItemRole, + NSURLUbiquitousSharedItemRoleOwner, NSURLUbiquitousSharedItemRoleParticipant, + NSURLVolumeAvailableCapacityForImportantUsageKey, + NSURLVolumeAvailableCapacityForOpportunisticUsageKey, NSURLVolumeAvailableCapacityKey, + NSURLVolumeCreationDateKey, NSURLVolumeIdentifierKey, NSURLVolumeIsAutomountedKey, + NSURLVolumeIsBrowsableKey, NSURLVolumeIsEjectableKey, NSURLVolumeIsEncryptedKey, + NSURLVolumeIsInternalKey, NSURLVolumeIsJournalingKey, NSURLVolumeIsLocalKey, + NSURLVolumeIsReadOnlyKey, NSURLVolumeIsRemovableKey, NSURLVolumeIsRootFileSystemKey, + NSURLVolumeLocalizedFormatDescriptionKey, NSURLVolumeLocalizedNameKey, + NSURLVolumeMaximumFileSizeKey, NSURLVolumeNameKey, NSURLVolumeResourceCountKey, + NSURLVolumeSupportsAccessPermissionsKey, NSURLVolumeSupportsAdvisoryFileLockingKey, + NSURLVolumeSupportsCasePreservedNamesKey, NSURLVolumeSupportsCaseSensitiveNamesKey, + NSURLVolumeSupportsCompressionKey, NSURLVolumeSupportsExclusiveRenamingKey, + NSURLVolumeSupportsExtendedSecurityKey, NSURLVolumeSupportsFileCloningKey, + NSURLVolumeSupportsFileProtectionKey, NSURLVolumeSupportsHardLinksKey, + NSURLVolumeSupportsImmutableFilesKey, NSURLVolumeSupportsJournalingKey, + NSURLVolumeSupportsPersistentIDsKey, NSURLVolumeSupportsRenamingKey, + NSURLVolumeSupportsRootDirectoryDatesKey, NSURLVolumeSupportsSparseFilesKey, + NSURLVolumeSupportsSwapRenamingKey, NSURLVolumeSupportsSymbolicLinksKey, + NSURLVolumeSupportsVolumeSizesKey, NSURLVolumeSupportsZeroRunsKey, + NSURLVolumeTotalCapacityKey, NSURLVolumeURLForRemountingKey, NSURLVolumeURLKey, + NSURLVolumeUUIDStringKey, NSURL, }; pub use super::NSUUID::NSUUID; pub use super::NSXMLDTD::NSXMLDTD;