125 lines
4.1 KiB
Rust
125 lines
4.1 KiB
Rust
//! This file has been automatically generated by `objc2`'s `header-translator`.
|
|
//! DO NOT EDIT
|
|
use objc2::__framework_prelude::*;
|
|
use objc2_foundation::*;
|
|
#[cfg(feature = "objc2-quartz-core")]
|
|
#[cfg(not(target_os = "watchos"))]
|
|
use objc2_quartz_core::*;
|
|
|
|
use crate::*;
|
|
|
|
extern_class!(
|
|
#[derive(Debug, PartialEq, Eq, Hash)]
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
pub struct UIVisualEffectView;
|
|
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl ClassType for UIVisualEffectView {
|
|
#[inherits(UIResponder, NSObject)]
|
|
type Super = UIView;
|
|
type Mutability = MainThreadOnly;
|
|
}
|
|
);
|
|
|
|
#[cfg(all(
|
|
feature = "UIResponder",
|
|
feature = "UIView",
|
|
feature = "objc2-quartz-core"
|
|
))]
|
|
#[cfg(not(target_os = "watchos"))]
|
|
unsafe impl CALayerDelegate for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl NSCoding for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl NSObjectProtocol for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl NSSecureCoding for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIAppearance for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIAppearanceContainer for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UICoordinateSpace for UIVisualEffectView {}
|
|
|
|
#[cfg(all(
|
|
feature = "UIDynamicBehavior",
|
|
feature = "UIResponder",
|
|
feature = "UIView"
|
|
))]
|
|
unsafe impl UIDynamicItem for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIFocusEnvironment for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIFocusItem for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIFocusItemContainer for UIVisualEffectView {}
|
|
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIResponderStandardEditActions for UIVisualEffectView {}
|
|
|
|
#[cfg(all(
|
|
feature = "UIResponder",
|
|
feature = "UITraitCollection",
|
|
feature = "UIView"
|
|
))]
|
|
unsafe impl UITraitEnvironment for UIVisualEffectView {}
|
|
|
|
extern_methods!(
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIVisualEffectView {
|
|
#[method_id(@__retain_semantics Other contentView)]
|
|
pub unsafe fn contentView(&self) -> Retained<UIView>;
|
|
|
|
#[cfg(feature = "UIVisualEffect")]
|
|
#[method_id(@__retain_semantics Other effect)]
|
|
pub unsafe fn effect(&self) -> Option<Retained<UIVisualEffect>>;
|
|
|
|
#[cfg(feature = "UIVisualEffect")]
|
|
#[method(setEffect:)]
|
|
pub unsafe fn setEffect(&self, effect: Option<&UIVisualEffect>);
|
|
|
|
#[cfg(feature = "UIVisualEffect")]
|
|
#[method_id(@__retain_semantics Init initWithEffect:)]
|
|
pub unsafe fn initWithEffect(
|
|
this: Allocated<Self>,
|
|
effect: Option<&UIVisualEffect>,
|
|
) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Init initWithCoder:)]
|
|
pub unsafe fn initWithCoder(
|
|
this: Allocated<Self>,
|
|
coder: &NSCoder,
|
|
) -> Option<Retained<Self>>;
|
|
}
|
|
);
|
|
|
|
extern_methods!(
|
|
/// Methods declared on superclass `UIView`
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIVisualEffectView {
|
|
#[method_id(@__retain_semantics Init initWithFrame:)]
|
|
pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
|
|
}
|
|
);
|
|
|
|
extern_methods!(
|
|
/// Methods declared on superclass `NSObject`
|
|
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
|
|
unsafe impl UIVisualEffectView {
|
|
#[method_id(@__retain_semantics Init init)]
|
|
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics New new)]
|
|
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
|
|
}
|
|
);
|