use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
pub type NSCollectionViewTransitionLayoutAnimatedKey = NSString;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSCollectionViewTransitionLayout;
unsafe impl ClassType for NSCollectionViewTransitionLayout {
#[inherits(NSObject)]
type Super = NSCollectionViewLayout;
}
);
extern_methods!(
unsafe impl NSCollectionViewTransitionLayout {
#[method(transitionProgress)]
pub unsafe fn transitionProgress(&self) -> CGFloat;
#[method(setTransitionProgress:)]
pub unsafe fn setTransitionProgress(&self, transitionProgress: CGFloat);
#[method_id(@__retain_semantics Other currentLayout)]
pub unsafe fn currentLayout(&self) -> Id<NSCollectionViewLayout, Shared>;
#[method_id(@__retain_semantics Other nextLayout)]
pub unsafe fn nextLayout(&self) -> Id<NSCollectionViewLayout, Shared>;
#[method_id(@__retain_semantics Init initWithCurrentLayout:nextLayout:)]
pub unsafe fn initWithCurrentLayout_nextLayout(
this: Option<Allocated<Self>>,
currentLayout: &NSCollectionViewLayout,
newLayout: &NSCollectionViewLayout,
) -> Id<Self, Shared>;
#[method(updateValue:forAnimatedKey:)]
pub unsafe fn updateValue_forAnimatedKey(
&self,
value: CGFloat,
key: &NSCollectionViewTransitionLayoutAnimatedKey,
);
#[method(valueForAnimatedKey:)]
pub unsafe fn valueForAnimatedKey(
&self,
key: &NSCollectionViewTransitionLayoutAnimatedKey,
) -> CGFloat;
}
);