#[repr(C)]pub struct NSCollectionViewFlowLayout { /* private fields */ }
Available on crate features
NSCollectionViewFlowLayout
and NSCollectionViewLayout
only.Implementations§
source§impl NSCollectionViewFlowLayout
impl NSCollectionViewFlowLayout
pub unsafe fn minimumLineSpacing(&self) -> CGFloat
pub unsafe fn setMinimumLineSpacing(&self, minimum_line_spacing: CGFloat)
pub unsafe fn minimumInteritemSpacing(&self) -> CGFloat
pub unsafe fn setMinimumInteritemSpacing( &self, minimum_interitem_spacing: CGFloat )
pub unsafe fn itemSize(&self) -> NSSize
pub unsafe fn setItemSize(&self, item_size: NSSize)
pub unsafe fn estimatedItemSize(&self) -> NSSize
pub unsafe fn setEstimatedItemSize(&self, estimated_item_size: NSSize)
pub unsafe fn scrollDirection(&self) -> NSCollectionViewScrollDirection
pub unsafe fn setScrollDirection( &self, scroll_direction: NSCollectionViewScrollDirection )
pub unsafe fn headerReferenceSize(&self) -> NSSize
pub unsafe fn setHeaderReferenceSize(&self, header_reference_size: NSSize)
pub unsafe fn sectionInset(&self) -> NSEdgeInsets
pub unsafe fn setSectionInset(&self, section_inset: NSEdgeInsets)
pub unsafe fn sectionHeadersPinToVisibleBounds(&self) -> bool
pub unsafe fn setSectionHeadersPinToVisibleBounds( &self, section_headers_pin_to_visible_bounds: bool )
pub unsafe fn sectionAtIndexIsCollapsed( &self, section_index: NSUInteger ) -> bool
pub unsafe fn collapseSectionAtIndex(&self, section_index: NSUInteger)
pub unsafe fn expandSectionAtIndex(&self, section_index: NSUInteger)
Methods from Deref<Target = NSCollectionViewLayout>§
pub unsafe fn collectionView( &self, mtm: MainThreadMarker ) -> Option<Retained<NSCollectionView>>
Available on crate features
NSCollectionView
and NSResponder
and NSView
only.pub unsafe fn invalidateLayout(&self)
pub unsafe fn invalidateLayoutWithContext( &self, context: &NSCollectionViewLayoutInvalidationContext )
pub unsafe fn registerClass_forDecorationViewOfKind( &self, view_class: Option<&AnyClass>, element_kind: &NSCollectionViewDecorationElementKind )
pub unsafe fn registerNib_forDecorationViewOfKind( &self, nib: Option<&NSNib>, element_kind: &NSCollectionViewDecorationElementKind )
Available on crate feature
NSNib
only.pub unsafe fn prepareLayout(&self)
pub unsafe fn layoutAttributesForElementsInRect( &self, rect: NSRect ) -> Retained<NSArray<NSCollectionViewLayoutAttributes>>
pub unsafe fn layoutAttributesForItemAtIndexPath( &self, index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn layoutAttributesForSupplementaryViewOfKind_atIndexPath( &self, element_kind: &NSCollectionViewSupplementaryElementKind, index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
Available on crate feature
NSCollectionView
only.pub unsafe fn layoutAttributesForDecorationViewOfKind_atIndexPath( &self, element_kind: &NSCollectionViewDecorationElementKind, index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn layoutAttributesForDropTargetAtPoint( &self, point_in_collection_view: NSPoint ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn layoutAttributesForInterItemGapBeforeIndexPath( &self, index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn shouldInvalidateLayoutForBoundsChange( &self, new_bounds: NSRect ) -> bool
pub unsafe fn invalidationContextForBoundsChange( &self, new_bounds: NSRect ) -> Retained<NSCollectionViewLayoutInvalidationContext>
pub unsafe fn shouldInvalidateLayoutForPreferredLayoutAttributes_withOriginalAttributes( &self, preferred_attributes: &NSCollectionViewLayoutAttributes, original_attributes: &NSCollectionViewLayoutAttributes ) -> bool
pub unsafe fn invalidationContextForPreferredLayoutAttributes_withOriginalAttributes( &self, preferred_attributes: &NSCollectionViewLayoutAttributes, original_attributes: &NSCollectionViewLayoutAttributes ) -> Retained<NSCollectionViewLayoutInvalidationContext>
pub unsafe fn targetContentOffsetForProposedContentOffset_withScrollingVelocity( &self, proposed_content_offset: NSPoint, velocity: NSPoint ) -> NSPoint
pub unsafe fn targetContentOffsetForProposedContentOffset( &self, proposed_content_offset: NSPoint ) -> NSPoint
pub unsafe fn collectionViewContentSize(&self) -> NSSize
pub unsafe fn prepareForCollectionViewUpdates( &self, update_items: &NSArray<NSCollectionViewUpdateItem> )
pub unsafe fn finalizeCollectionViewUpdates(&self)
pub unsafe fn prepareForAnimatedBoundsChange(&self, old_bounds: NSRect)
pub unsafe fn finalizeAnimatedBoundsChange(&self)
pub unsafe fn prepareForTransitionToLayout( &self, new_layout: &NSCollectionViewLayout )
pub unsafe fn prepareForTransitionFromLayout( &self, old_layout: &NSCollectionViewLayout )
pub unsafe fn finalizeLayoutTransition(&self)
pub unsafe fn initialLayoutAttributesForAppearingItemAtIndexPath( &self, item_index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn finalLayoutAttributesForDisappearingItemAtIndexPath( &self, item_index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn initialLayoutAttributesForAppearingSupplementaryElementOfKind_atIndexPath( &self, element_kind: &NSCollectionViewSupplementaryElementKind, element_index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
Available on crate feature
NSCollectionView
only.pub unsafe fn finalLayoutAttributesForDisappearingSupplementaryElementOfKind_atIndexPath( &self, element_kind: &NSCollectionViewSupplementaryElementKind, element_index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
Available on crate feature
NSCollectionView
only.pub unsafe fn initialLayoutAttributesForAppearingDecorationElementOfKind_atIndexPath( &self, element_kind: &NSCollectionViewDecorationElementKind, decoration_index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn finalLayoutAttributesForDisappearingDecorationElementOfKind_atIndexPath( &self, element_kind: &NSCollectionViewDecorationElementKind, decoration_index_path: &NSIndexPath ) -> Option<Retained<NSCollectionViewLayoutAttributes>>
pub unsafe fn indexPathsToDeleteForSupplementaryViewOfKind( &self, element_kind: &NSCollectionViewSupplementaryElementKind ) -> Retained<NSSet<NSIndexPath>>
Available on crate feature
NSCollectionView
only.pub unsafe fn indexPathsToDeleteForDecorationViewOfKind( &self, element_kind: &NSCollectionViewDecorationElementKind ) -> Retained<NSSet<NSIndexPath>>
pub unsafe fn indexPathsToInsertForSupplementaryViewOfKind( &self, element_kind: &NSCollectionViewSupplementaryElementKind ) -> Retained<NSSet<NSIndexPath>>
Available on crate feature
NSCollectionView
only.pub unsafe fn indexPathsToInsertForDecorationViewOfKind( &self, element_kind: &NSCollectionViewDecorationElementKind ) -> Retained<NSSet<NSIndexPath>>
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
only.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for NSCollectionViewFlowLayout
impl AsMut<AnyObject> for NSCollectionViewFlowLayout
source§impl AsMut<NSCollectionViewLayout> for NSCollectionViewFlowLayout
impl AsMut<NSCollectionViewLayout> for NSCollectionViewFlowLayout
source§fn as_mut(&mut self) -> &mut NSCollectionViewLayout
fn as_mut(&mut self) -> &mut NSCollectionViewLayout
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<NSObject> for NSCollectionViewFlowLayout
impl AsMut<NSObject> for NSCollectionViewFlowLayout
source§impl AsRef<AnyObject> for NSCollectionViewFlowLayout
impl AsRef<AnyObject> for NSCollectionViewFlowLayout
source§impl AsRef<NSCollectionViewLayout> for NSCollectionViewFlowLayout
impl AsRef<NSCollectionViewLayout> for NSCollectionViewFlowLayout
source§fn as_ref(&self) -> &NSCollectionViewLayout
fn as_ref(&self) -> &NSCollectionViewLayout
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<NSObject> for NSCollectionViewFlowLayout
impl AsRef<NSObject> for NSCollectionViewFlowLayout
source§impl Borrow<AnyObject> for NSCollectionViewFlowLayout
impl Borrow<AnyObject> for NSCollectionViewFlowLayout
source§impl Borrow<NSCollectionViewLayout> for NSCollectionViewFlowLayout
impl Borrow<NSCollectionViewLayout> for NSCollectionViewFlowLayout
source§fn borrow(&self) -> &NSCollectionViewLayout
fn borrow(&self) -> &NSCollectionViewLayout
Immutably borrows from an owned value. Read more
source§impl Borrow<NSObject> for NSCollectionViewFlowLayout
impl Borrow<NSObject> for NSCollectionViewFlowLayout
source§impl BorrowMut<AnyObject> for NSCollectionViewFlowLayout
impl BorrowMut<AnyObject> for NSCollectionViewFlowLayout
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSCollectionViewLayout> for NSCollectionViewFlowLayout
impl BorrowMut<NSCollectionViewLayout> for NSCollectionViewFlowLayout
source§fn borrow_mut(&mut self) -> &mut NSCollectionViewLayout
fn borrow_mut(&mut self) -> &mut NSCollectionViewLayout
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for NSCollectionViewFlowLayout
impl BorrowMut<NSObject> for NSCollectionViewFlowLayout
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl ClassType for NSCollectionViewFlowLayout
impl ClassType for NSCollectionViewFlowLayout
§type Super = NSCollectionViewLayout
type Super = NSCollectionViewLayout
The superclass of this class. Read more
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSCollectionViewFlowLayout"
const NAME: &'static str = "NSCollectionViewFlowLayout"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for NSCollectionViewFlowLayout
impl Debug for NSCollectionViewFlowLayout
source§impl Deref for NSCollectionViewFlowLayout
impl Deref for NSCollectionViewFlowLayout
source§impl Hash for NSCollectionViewFlowLayout
impl Hash for NSCollectionViewFlowLayout
source§impl NSObjectProtocol for NSCollectionViewFlowLayout
impl NSObjectProtocol for NSCollectionViewFlowLayout
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for NSCollectionViewFlowLayout
impl PartialEq for NSCollectionViewFlowLayout
source§fn eq(&self, other: &NSCollectionViewFlowLayout) -> bool
fn eq(&self, other: &NSCollectionViewFlowLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSCollectionViewFlowLayout
impl RefEncode for NSCollectionViewFlowLayout
source§const ENCODING_REF: Encoding = <NSCollectionViewLayout as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSCollectionViewLayout as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSCollectionViewFlowLayout
impl Message for NSCollectionViewFlowLayout
impl StructuralPartialEq for NSCollectionViewFlowLayout
Auto Trait Implementations§
impl !Freeze for NSCollectionViewFlowLayout
impl !RefUnwindSafe for NSCollectionViewFlowLayout
impl !Send for NSCollectionViewFlowLayout
impl !Sync for NSCollectionViewFlowLayout
impl !Unpin for NSCollectionViewFlowLayout
impl !UnwindSafe for NSCollectionViewFlowLayout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more