Trait UIContentContainer

Source
pub unsafe trait UIContentContainer: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn preferredContentSize(&self) -> CGSize
       where Self: Sized + Message { ... }
    unsafe fn preferredContentSizeDidChangeForChildContentContainer(
        &self,
        container: &ProtocolObject<dyn UIContentContainer>,
    )
       where Self: Sized + Message { ... }
    unsafe fn systemLayoutFittingSizeDidChangeForChildContentContainer(
        &self,
        container: &ProtocolObject<dyn UIContentContainer>,
    )
       where Self: Sized + Message { ... }
    unsafe fn sizeForChildContentContainer_withParentContainerSize(
        &self,
        container: &ProtocolObject<dyn UIContentContainer>,
        parent_size: CGSize,
    ) -> CGSize
       where Self: Sized + Message { ... }
    unsafe fn viewWillTransitionToSize_withTransitionCoordinator(
        &self,
        size: CGSize,
        coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>,
    )
       where Self: Sized + Message { ... }
    unsafe fn willTransitionToTraitCollection_withTransitionCoordinator(
        &self,
        new_collection: &UITraitCollection,
        coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIViewController only.
Expand description

Provided Methods§

Source

unsafe fn preferredContentSize(&self) -> CGSize
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

unsafe fn preferredContentSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer>, )
where Self: Sized + Message,

Source

unsafe fn systemLayoutFittingSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer>, )
where Self: Sized + Message,

Source

unsafe fn sizeForChildContentContainer_withParentContainerSize( &self, container: &ProtocolObject<dyn UIContentContainer>, parent_size: CGSize, ) -> CGSize
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

unsafe fn viewWillTransitionToSize_withTransitionCoordinator( &self, size: CGSize, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>, )
where Self: Sized + Message,

Available on crate features UIViewControllerTransitionCoordinator and objc2-core-foundation only.
Source

unsafe fn willTransitionToTraitCollection_withTransitionCoordinator( &self, new_collection: &UITraitCollection, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>, )
where Self: Sized + Message,

Available on crate features UITraitCollection and UIViewControllerTransitionCoordinator only.

Trait Implementations§

Source§

impl ProtocolType for dyn UIContentContainer

Source§

const NAME: &'static str = "UIContentContainer"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn UIContentContainer

Implementations on Foreign Types§

Source§

impl<T> UIContentContainer for ProtocolObject<T>

Implementors§

Source§

impl UIContentContainer for UIActivityViewController

Available on crate feature UIActivityViewController only.
Source§

impl UIContentContainer for UIAlertController

Available on crate feature UIAlertController only.
Source§

impl UIContentContainer for UICloudSharingController

Available on crate feature UICloudSharingController only.
Source§

impl UIContentContainer for UICollectionViewController

Available on crate feature UICollectionViewController only.
Source§

impl UIContentContainer for UIColorPickerViewController

Available on crate feature UIColorPickerViewController only.
Source§

impl UIContentContainer for UIDocumentBrowserViewController

Available on crate feature UIDocumentBrowserViewController only.
Source§

impl UIContentContainer for UIDocumentMenuViewController

Available on crate feature UIDocumentMenuViewController only.
Source§

impl UIContentContainer for UIDocumentPickerExtensionViewController

Available on crate feature UIDocumentPickerExtensionViewController only.
Source§

impl UIContentContainer for UIDocumentPickerViewController

Available on crate feature UIDocumentPickerViewController only.
Source§

impl UIContentContainer for UIDocumentViewController

Available on crate feature UIDocumentViewController only.
Source§

impl UIContentContainer for UIFontPickerViewController

Available on crate feature UIFontPickerViewController only.
Source§

impl UIContentContainer for UIImagePickerController

Available on crate feature UIImagePickerController only.
Source§

impl UIContentContainer for UIInputViewController

Available on crate feature UIInputViewController only.
Source§

impl UIContentContainer for UINavigationController

Available on crate feature UINavigationController only.
Source§

impl UIContentContainer for UIPageViewController

Available on crate feature UIPageViewController only.
Source§

impl UIContentContainer for UIPopoverPresentationController

Available on crate feature UIPopoverPresentationController only.
Source§

impl UIContentContainer for UIPresentationController

Available on crate feature UIPresentationController only.
Source§

impl UIContentContainer for UIReferenceLibraryViewController

Available on crate feature UIReferenceLibraryViewController only.
Source§

impl UIContentContainer for UISearchContainerViewController

Available on crate feature UISearchContainerViewController only.
Source§

impl UIContentContainer for UISearchController

Available on crate feature UISearchController only.
Source§

impl UIContentContainer for UISheetPresentationController

Available on crate feature UISheetPresentationController only.
Source§

impl UIContentContainer for UISplitViewController

Available on crate feature UISplitViewController only.
Source§

impl UIContentContainer for UITabBarController

Available on crate feature UITabBarController only.
Source§

impl UIContentContainer for UITableViewController

Available on crate feature UITableViewController only.
Source§

impl UIContentContainer for UITextFormattingViewController

Available on crate feature UITextFormattingViewController only.
Source§

impl UIContentContainer for UIVideoEditorController

Available on crate feature UIVideoEditorController only.
Source§

impl UIContentContainer for UIViewController