objc2-web-kit 0.3.0

Bindings to the WebKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domexception?language=objc)
    pub static DOMException: Option<&'static NSString>;
}

/// [Apple's documentation](https://developer.apple.com/documentation/webkit/domexceptioncode?language=objc)
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct DOMExceptionCode(pub c_uint);
impl DOMExceptionCode {
    #[deprecated]
    #[doc(alias = "DOM_INDEX_SIZE_ERR")]
    pub const INDEX_SIZE_ERR: Self = Self(1);
    #[deprecated]
    #[doc(alias = "DOM_DOMSTRING_SIZE_ERR")]
    pub const DOMSTRING_SIZE_ERR: Self = Self(2);
    #[deprecated]
    #[doc(alias = "DOM_HIERARCHY_REQUEST_ERR")]
    pub const HIERARCHY_REQUEST_ERR: Self = Self(3);
    #[deprecated]
    #[doc(alias = "DOM_WRONG_DOCUMENT_ERR")]
    pub const WRONG_DOCUMENT_ERR: Self = Self(4);
    #[deprecated]
    #[doc(alias = "DOM_INVALID_CHARACTER_ERR")]
    pub const INVALID_CHARACTER_ERR: Self = Self(5);
    #[deprecated]
    #[doc(alias = "DOM_NO_DATA_ALLOWED_ERR")]
    pub const NO_DATA_ALLOWED_ERR: Self = Self(6);
    #[deprecated]
    #[doc(alias = "DOM_NO_MODIFICATION_ALLOWED_ERR")]
    pub const NO_MODIFICATION_ALLOWED_ERR: Self = Self(7);
    #[deprecated]
    #[doc(alias = "DOM_NOT_FOUND_ERR")]
    pub const NOT_FOUND_ERR: Self = Self(8);
    #[deprecated]
    #[doc(alias = "DOM_NOT_SUPPORTED_ERR")]
    pub const NOT_SUPPORTED_ERR: Self = Self(9);
    #[deprecated]
    #[doc(alias = "DOM_INUSE_ATTRIBUTE_ERR")]
    pub const INUSE_ATTRIBUTE_ERR: Self = Self(10);
    #[deprecated]
    #[doc(alias = "DOM_INVALID_STATE_ERR")]
    pub const INVALID_STATE_ERR: Self = Self(11);
    #[deprecated]
    #[doc(alias = "DOM_SYNTAX_ERR")]
    pub const SYNTAX_ERR: Self = Self(12);
    #[deprecated]
    #[doc(alias = "DOM_INVALID_MODIFICATION_ERR")]
    pub const INVALID_MODIFICATION_ERR: Self = Self(13);
    #[deprecated]
    #[doc(alias = "DOM_NAMESPACE_ERR")]
    pub const NAMESPACE_ERR: Self = Self(14);
    #[deprecated]
    #[doc(alias = "DOM_INVALID_ACCESS_ERR")]
    pub const INVALID_ACCESS_ERR: Self = Self(15);
}

unsafe impl Encode for DOMExceptionCode {
    const ENCODING: Encoding = c_uint::ENCODING;
}

unsafe impl RefEncode for DOMExceptionCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}