objc2_ui_kit/generated/
UICalendarSelection.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uicalendarselection?language=objc)
11    #[unsafe(super(NSObject))]
12    #[thread_kind = MainThreadOnly]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct UICalendarSelection;
15);
16
17extern_conformance!(
18    unsafe impl NSObjectProtocol for UICalendarSelection {}
19);
20
21impl UICalendarSelection {
22    extern_methods!(
23        /// Called to refresh the selectable dates in the calendar view.
24        #[unsafe(method(updateSelectableDates))]
25        #[unsafe(method_family = none)]
26        pub fn updateSelectableDates(&self);
27
28        #[unsafe(method(init))]
29        #[unsafe(method_family = init)]
30        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
31
32        #[unsafe(method(new))]
33        #[unsafe(method_family = new)]
34        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
35    );
36}