use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSControl, NSView, NSResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
pub struct NSDatePicker;
);
#[cfg(all(
feature = "NSAccessibilityProtocols",
feature = "NSControl",
feature = "NSResponder",
feature = "NSView"
))]
extern_conformance!(
unsafe impl NSAccessibility for NSDatePicker {}
);
#[cfg(all(
feature = "NSAccessibilityProtocols",
feature = "NSControl",
feature = "NSResponder",
feature = "NSView"
))]
extern_conformance!(
unsafe impl NSAccessibilityElementProtocol for NSDatePicker {}
);
#[cfg(all(
feature = "NSAnimation",
feature = "NSControl",
feature = "NSResponder",
feature = "NSView"
))]
extern_conformance!(
unsafe impl NSAnimatablePropertyContainer for NSDatePicker {}
);
#[cfg(all(
feature = "NSAppearance",
feature = "NSControl",
feature = "NSResponder",
feature = "NSView"
))]
extern_conformance!(
unsafe impl NSAppearanceCustomization for NSDatePicker {}
);
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
extern_conformance!(
unsafe impl NSCoding for NSDatePicker {}
);
#[cfg(all(
feature = "NSControl",
feature = "NSDragging",
feature = "NSResponder",
feature = "NSView"
))]
extern_conformance!(
unsafe impl NSDraggingDestination for NSDatePicker {}
);
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
extern_conformance!(
unsafe impl NSObjectProtocol for NSDatePicker {}
);
#[cfg(all(
feature = "NSControl",
feature = "NSResponder",
feature = "NSUserInterfaceItemIdentification",
feature = "NSView"
))]
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for NSDatePicker {}
);
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
impl NSDatePicker {
extern_methods!(
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(datePickerStyle))]
#[unsafe(method_family = none)]
pub fn datePickerStyle(&self) -> NSDatePickerStyle;
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(setDatePickerStyle:))]
#[unsafe(method_family = none)]
pub fn setDatePickerStyle(&self, date_picker_style: NSDatePickerStyle);
#[unsafe(method(isBezeled))]
#[unsafe(method_family = none)]
pub fn isBezeled(&self) -> bool;
#[unsafe(method(setBezeled:))]
#[unsafe(method_family = none)]
pub fn setBezeled(&self, bezeled: bool);
#[unsafe(method(isBordered))]
#[unsafe(method_family = none)]
pub fn isBordered(&self) -> bool;
#[unsafe(method(setBordered:))]
#[unsafe(method_family = none)]
pub fn setBordered(&self, bordered: bool);
#[unsafe(method(drawsBackground))]
#[unsafe(method_family = none)]
pub fn drawsBackground(&self) -> bool;
#[unsafe(method(setDrawsBackground:))]
#[unsafe(method_family = none)]
pub fn setDrawsBackground(&self, draws_background: bool);
#[cfg(feature = "NSColor")]
#[unsafe(method(backgroundColor))]
#[unsafe(method_family = none)]
pub fn backgroundColor(&self) -> Retained<NSColor>;
#[cfg(feature = "NSColor")]
#[unsafe(method(setBackgroundColor:))]
#[unsafe(method_family = none)]
pub fn setBackgroundColor(&self, background_color: &NSColor);
#[cfg(feature = "NSColor")]
#[unsafe(method(textColor))]
#[unsafe(method_family = none)]
pub fn textColor(&self) -> Retained<NSColor>;
#[cfg(feature = "NSColor")]
#[unsafe(method(setTextColor:))]
#[unsafe(method_family = none)]
pub fn setTextColor(&self, text_color: &NSColor);
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(datePickerMode))]
#[unsafe(method_family = none)]
pub fn datePickerMode(&self) -> NSDatePickerMode;
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(setDatePickerMode:))]
#[unsafe(method_family = none)]
pub fn setDatePickerMode(&self, date_picker_mode: NSDatePickerMode);
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(datePickerElements))]
#[unsafe(method_family = none)]
pub fn datePickerElements(&self) -> NSDatePickerElementFlags;
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(setDatePickerElements:))]
#[unsafe(method_family = none)]
pub fn setDatePickerElements(&self, date_picker_elements: NSDatePickerElementFlags);
#[unsafe(method(calendar))]
#[unsafe(method_family = none)]
pub fn calendar(&self) -> Option<Retained<NSCalendar>>;
#[unsafe(method(setCalendar:))]
#[unsafe(method_family = none)]
pub fn setCalendar(&self, calendar: Option<&NSCalendar>);
#[unsafe(method(locale))]
#[unsafe(method_family = none)]
pub fn locale(&self) -> Option<Retained<NSLocale>>;
#[unsafe(method(setLocale:))]
#[unsafe(method_family = none)]
pub fn setLocale(&self, locale: Option<&NSLocale>);
#[unsafe(method(timeZone))]
#[unsafe(method_family = none)]
pub fn timeZone(&self) -> Option<Retained<NSTimeZone>>;
#[unsafe(method(setTimeZone:))]
#[unsafe(method_family = none)]
pub fn setTimeZone(&self, time_zone: Option<&NSTimeZone>);
#[unsafe(method(dateValue))]
#[unsafe(method_family = none)]
pub fn dateValue(&self) -> Retained<NSDate>;
#[unsafe(method(setDateValue:))]
#[unsafe(method_family = none)]
pub fn setDateValue(&self, date_value: &NSDate);
#[unsafe(method(timeInterval))]
#[unsafe(method_family = none)]
pub fn timeInterval(&self) -> NSTimeInterval;
#[unsafe(method(setTimeInterval:))]
#[unsafe(method_family = none)]
pub fn setTimeInterval(&self, time_interval: NSTimeInterval);
#[unsafe(method(minDate))]
#[unsafe(method_family = none)]
pub fn minDate(&self) -> Option<Retained<NSDate>>;
#[unsafe(method(setMinDate:))]
#[unsafe(method_family = none)]
pub fn setMinDate(&self, min_date: Option<&NSDate>);
#[unsafe(method(maxDate))]
#[unsafe(method_family = none)]
pub fn maxDate(&self) -> Option<Retained<NSDate>>;
#[unsafe(method(setMaxDate:))]
#[unsafe(method_family = none)]
pub fn setMaxDate(&self, max_date: Option<&NSDate>);
#[unsafe(method(presentsCalendarOverlay))]
#[unsafe(method_family = none)]
pub fn presentsCalendarOverlay(&self) -> bool;
#[unsafe(method(setPresentsCalendarOverlay:))]
#[unsafe(method_family = none)]
pub fn setPresentsCalendarOverlay(&self, presents_calendar_overlay: bool);
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(delegate))]
#[unsafe(method_family = none)]
pub fn delegate(&self) -> Option<Retained<ProtocolObject<dyn NSDatePickerCellDelegate>>>;
#[cfg(feature = "NSDatePickerCell")]
#[unsafe(method(setDelegate:))]
#[unsafe(method_family = none)]
pub fn setDelegate(&self, delegate: Option<&ProtocolObject<dyn NSDatePickerCellDelegate>>);
);
}
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
impl NSDatePicker {
extern_methods!(
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
impl NSDatePicker {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "NSControl", feature = "NSResponder", feature = "NSView"))]
impl NSDatePicker {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}