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
17unsafe impl NSObjectProtocol for UICalendarSelection {}
18
19impl UICalendarSelection {
20    extern_methods!(
21        /// Called to refresh the selectable dates in the calendar view.
22        #[unsafe(method(updateSelectableDates))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn updateSelectableDates(&self);
25
26        #[unsafe(method(init))]
27        #[unsafe(method_family = init)]
28        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30        #[unsafe(method(new))]
31        #[unsafe(method_family = new)]
32        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
33    );
34}