objc2-web-kit 0.3.1

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

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_horizontal?language=objc)
#[deprecated]
pub const DOM_HORIZONTAL: c_uint = 0;
/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_vertical?language=objc)
#[deprecated]
pub const DOM_VERTICAL: c_uint = 1;
/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_both?language=objc)
#[deprecated]
pub const DOM_BOTH: c_uint = 2;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domoverflowevent?language=objc)
    #[unsafe(super(DOMEvent, DOMObject, WebScriptObject, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(all(
        feature = "DOMEvent",
        feature = "DOMObject",
        feature = "WebScriptObject"
    ))]
    #[deprecated]
    pub struct DOMOverflowEvent;
);

#[cfg(all(
    feature = "DOMEvent",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
extern_conformance!(
    unsafe impl NSCopying for DOMOverflowEvent {}
);

#[cfg(all(
    feature = "DOMEvent",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
unsafe impl CopyingHelper for DOMOverflowEvent {
    type Result = Self;
}

#[cfg(all(
    feature = "DOMEvent",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
extern_conformance!(
    unsafe impl NSObjectProtocol for DOMOverflowEvent {}
);

#[cfg(all(
    feature = "DOMEvent",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMOverflowEvent {
    extern_methods!(
        #[deprecated]
        #[unsafe(method(orient))]
        #[unsafe(method_family = none)]
        pub unsafe fn orient(&self) -> c_ushort;

        #[deprecated]
        #[unsafe(method(horizontalOverflow))]
        #[unsafe(method_family = none)]
        pub unsafe fn horizontalOverflow(&self) -> bool;

        #[deprecated]
        #[unsafe(method(verticalOverflow))]
        #[unsafe(method_family = none)]
        pub unsafe fn verticalOverflow(&self) -> bool;

        #[deprecated]
        #[unsafe(method(initOverflowEvent:horizontalOverflow:verticalOverflow:))]
        #[unsafe(method_family = none)]
        pub unsafe fn initOverflowEvent_horizontalOverflow_verticalOverflow(
            &self,
            orient: c_ushort,
            horizontal_overflow: bool,
            vertical_overflow: bool,
        );
    );
}

/// Methods declared on superclass `DOMObject`.
#[cfg(all(
    feature = "DOMEvent",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMOverflowEvent {
    extern_methods!(
        #[deprecated]
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(all(
    feature = "DOMEvent",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMOverflowEvent {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}