1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_protocol!(
    #[cfg(feature = "UIView")]
    pub unsafe trait UITextSelectionHandleView:
        UICoordinateSpace + IsMainThreadOnly
    {
        #[cfg(feature = "UIGeometry")]
        #[method(direction)]
        unsafe fn direction(&self) -> NSDirectionalRectEdge;

        #[cfg(feature = "UIGeometry")]
        #[method(setDirection:)]
        unsafe fn setDirection(&self, direction: NSDirectionalRectEdge);

        #[method(isVertical)]
        unsafe fn isVertical(&self) -> bool;

        #[cfg(feature = "UIBezierPath")]
        #[method_id(@__retain_semantics Other customShape)]
        unsafe fn customShape(&self) -> Option<Retained<UIBezierPath>>;

        #[cfg(feature = "UIBezierPath")]
        #[method(setCustomShape:)]
        unsafe fn setCustomShape(&self, custom_shape: Option<&UIBezierPath>);

        #[method(preferredFrameForRect:)]
        unsafe fn preferredFrameForRect(&self, rect: CGRect) -> CGRect;
    }

    #[cfg(feature = "UIView")]
    unsafe impl ProtocolType for dyn UITextSelectionHandleView {}
);