[][src]Trait uikit_sys::UICollectionViewLayout_UISubclassingHooks

pub trait UICollectionViewLayout_UISubclassingHooks: Sized + Deref {
    unsafe fn prepareLayout(self)
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn layoutAttributesForElementsInRect_(self, rect: CGRect) -> NSArray
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn layoutAttributesForItemAtIndexPath_(
        self,
        indexPath: NSIndexPath
    ) -> UICollectionViewLayoutAttributes
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn layoutAttributesForSupplementaryViewOfKind_atIndexPath_(
        self,
        elementKind: NSString,
        indexPath: NSIndexPath
    ) -> UICollectionViewLayoutAttributes
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn layoutAttributesForDecorationViewOfKind_atIndexPath_(
        self,
        elementKind: NSString,
        indexPath: NSIndexPath
    ) -> UICollectionViewLayoutAttributes
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn shouldInvalidateLayoutForBoundsChange_(
        self,
        newBounds: CGRect
    ) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn invalidationContextForBoundsChange_(
        self,
        newBounds: CGRect
    ) -> UICollectionViewLayoutInvalidationContext
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn shouldInvalidateLayoutForPreferredLayoutAttributes_withOriginalAttributes_(
        self,
        preferredAttributes: UICollectionViewLayoutAttributes,
        originalAttributes: UICollectionViewLayoutAttributes
    ) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn invalidationContextForPreferredLayoutAttributes_withOriginalAttributes_(
        self,
        preferredAttributes: UICollectionViewLayoutAttributes,
        originalAttributes: UICollectionViewLayoutAttributes
    ) -> UICollectionViewLayoutInvalidationContext
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn targetContentOffsetForProposedContentOffset_withScrollingVelocity_(
        self,
        proposedContentOffset: CGPoint,
        velocity: CGPoint
    ) -> CGPoint
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn targetContentOffsetForProposedContentOffset_(
        self,
        proposedContentOffset: CGPoint
    ) -> CGPoint
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn collectionViewContentSize(self) -> CGSize
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn developmentLayoutDirection(self) -> UIUserInterfaceLayoutDirection
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn flipsHorizontallyInOppositeLayoutDirection(self) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn layoutAttributesClass() -> Class
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn invalidationContextClass() -> Class
    where
        Self::Target: Message + Sized
, { ... } }

Provided methods

unsafe fn prepareLayout(self) where
    Self::Target: Message + Sized

unsafe fn layoutAttributesForElementsInRect_(self, rect: CGRect) -> NSArray where
    Self::Target: Message + Sized

unsafe fn layoutAttributesForItemAtIndexPath_(
    self,
    indexPath: NSIndexPath
) -> UICollectionViewLayoutAttributes where
    Self::Target: Message + Sized

unsafe fn layoutAttributesForSupplementaryViewOfKind_atIndexPath_(
    self,
    elementKind: NSString,
    indexPath: NSIndexPath
) -> UICollectionViewLayoutAttributes where
    Self::Target: Message + Sized

unsafe fn layoutAttributesForDecorationViewOfKind_atIndexPath_(
    self,
    elementKind: NSString,
    indexPath: NSIndexPath
) -> UICollectionViewLayoutAttributes where
    Self::Target: Message + Sized

unsafe fn shouldInvalidateLayoutForBoundsChange_(
    self,
    newBounds: CGRect
) -> BOOL where
    Self::Target: Message + Sized

unsafe fn invalidationContextForBoundsChange_(
    self,
    newBounds: CGRect
) -> UICollectionViewLayoutInvalidationContext where
    Self::Target: Message + Sized

unsafe fn shouldInvalidateLayoutForPreferredLayoutAttributes_withOriginalAttributes_(
    self,
    preferredAttributes: UICollectionViewLayoutAttributes,
    originalAttributes: UICollectionViewLayoutAttributes
) -> BOOL where
    Self::Target: Message + Sized

unsafe fn invalidationContextForPreferredLayoutAttributes_withOriginalAttributes_(
    self,
    preferredAttributes: UICollectionViewLayoutAttributes,
    originalAttributes: UICollectionViewLayoutAttributes
) -> UICollectionViewLayoutInvalidationContext where
    Self::Target: Message + Sized

unsafe fn targetContentOffsetForProposedContentOffset_withScrollingVelocity_(
    self,
    proposedContentOffset: CGPoint,
    velocity: CGPoint
) -> CGPoint where
    Self::Target: Message + Sized

unsafe fn targetContentOffsetForProposedContentOffset_(
    self,
    proposedContentOffset: CGPoint
) -> CGPoint where
    Self::Target: Message + Sized

unsafe fn collectionViewContentSize(self) -> CGSize where
    Self::Target: Message + Sized

unsafe fn developmentLayoutDirection(self) -> UIUserInterfaceLayoutDirection where
    Self::Target: Message + Sized

unsafe fn flipsHorizontallyInOppositeLayoutDirection(self) -> BOOL where
    Self::Target: Message + Sized

unsafe fn layoutAttributesClass() -> Class where
    Self::Target: Message + Sized

unsafe fn invalidationContextClass() -> Class where
    Self::Target: Message + Sized

Loading content...

Implementors

impl UICollectionViewLayout_UISubclassingHooks for UICollectionViewCompositionalLayout[src]

impl UICollectionViewLayout_UISubclassingHooks for UICollectionViewFlowLayout[src]

impl UICollectionViewLayout_UISubclassingHooks for UICollectionViewLayout[src]

impl UICollectionViewLayout_UISubclassingHooks for UICollectionViewTransitionLayout[src]

Loading content...