use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-ui-kit")]
use objc2_ui_kit::*;
use crate::*;
extern_class!(
#[unsafe(super(WKInterfaceObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "WKInterfaceObject")]
pub struct WKInterfaceLabel;
);
#[cfg(feature = "WKInterfaceObject")]
extern_conformance!(
unsafe impl NSObjectProtocol for WKInterfaceLabel {}
);
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceLabel {
extern_methods!(
#[unsafe(method(setText:))]
#[unsafe(method_family = none)]
pub unsafe fn setText(&self, text: Option<&NSString>);
#[cfg(feature = "objc2-ui-kit")]
#[unsafe(method(setTextColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setTextColor(&self, color: Option<&UIColor>);
#[unsafe(method(setAttributedText:))]
#[unsafe(method_family = none)]
pub unsafe fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>);
);
}
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceLabel {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceLabel {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}