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/domrangeexception?language=objc)
    pub static DOMRangeException: Option<&'static NSString>;
}

/// [Apple's documentation](https://developer.apple.com/documentation/webkit/domrangeexceptioncode?language=objc)
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct DOMRangeExceptionCode(pub c_uint);
impl DOMRangeExceptionCode {
    #[deprecated]
    #[doc(alias = "DOM_BAD_BOUNDARYPOINTS_ERR")]
    pub const BAD_BOUNDARYPOINTS_ERR: Self = Self(1);
    #[deprecated]
    #[doc(alias = "DOM_INVALID_NODE_TYPE_ERR")]
    pub const INVALID_NODE_TYPE_ERR: Self = Self(2);
}

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

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