//! This file has been automatically generated by `objc2`'s `header-translator`. //! DO NOT EDIT use objc2::__framework_prelude::*; use objc2_foundation::*; use crate::*; extern_class!( #[derive(Debug, PartialEq, Eq, Hash)] #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] pub struct NSFormCell; #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl ClassType for NSFormCell { #[inherits(NSCell, NSObject)] type Super = NSActionCell; type Mutability = MainThreadOnly; } ); #[cfg(all( feature = "NSAccessibilityProtocols", feature = "NSActionCell", feature = "NSCell" ))] unsafe impl NSAccessibility for NSFormCell {} #[cfg(all( feature = "NSAccessibilityProtocols", feature = "NSActionCell", feature = "NSCell" ))] unsafe impl NSAccessibilityElementProtocol for NSFormCell {} #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSCoding for NSFormCell {} #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSCopying for NSFormCell {} #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSObjectProtocol for NSFormCell {} #[cfg(all( feature = "NSActionCell", feature = "NSCell", feature = "NSUserInterfaceItemIdentification" ))] unsafe impl NSUserInterfaceItemIdentification for NSFormCell {} extern_methods!( #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSFormCell { #[method_id(@__retain_semantics Init initTextCell:)] pub unsafe fn initTextCell( this: Allocated, string: Option<&NSString>, ) -> Retained; #[method_id(@__retain_semantics Init initWithCoder:)] pub unsafe fn initWithCoder(this: Allocated, coder: &NSCoder) -> Retained; #[cfg(feature = "NSImage")] #[method_id(@__retain_semantics Init initImageCell:)] pub unsafe fn initImageCell( this: Allocated, image: Option<&NSImage>, ) -> Retained; #[method(titleWidth:)] pub unsafe fn titleWidth_(&self, size: NSSize) -> CGFloat; #[method(titleWidth)] pub unsafe fn titleWidth(&self) -> CGFloat; #[method(setTitleWidth:)] pub unsafe fn setTitleWidth(&self, title_width: CGFloat); #[method_id(@__retain_semantics Other title)] pub unsafe fn title(&self) -> Retained; #[method(setTitle:)] pub unsafe fn setTitle(&self, title: &NSString); #[cfg(feature = "NSFont")] #[method_id(@__retain_semantics Other titleFont)] pub unsafe fn titleFont(&self) -> Retained; #[cfg(feature = "NSFont")] #[method(setTitleFont:)] pub unsafe fn setTitleFont(&self, title_font: &NSFont); #[method(isOpaque)] pub unsafe fn isOpaque(&self) -> bool; #[method_id(@__retain_semantics Other placeholderString)] pub unsafe fn placeholderString(&self) -> Option>; #[method(setPlaceholderString:)] pub unsafe fn setPlaceholderString(&self, placeholder_string: Option<&NSString>); #[method_id(@__retain_semantics Other placeholderAttributedString)] pub unsafe fn placeholderAttributedString(&self) -> Option>; #[method(setPlaceholderAttributedString:)] pub unsafe fn setPlaceholderAttributedString( &self, placeholder_attributed_string: Option<&NSAttributedString>, ); #[cfg(feature = "NSText")] #[method(titleAlignment)] pub unsafe fn titleAlignment(&self) -> NSTextAlignment; #[cfg(feature = "NSText")] #[method(setTitleAlignment:)] pub unsafe fn setTitleAlignment(&self, title_alignment: NSTextAlignment); #[cfg(feature = "NSText")] #[method(titleBaseWritingDirection)] pub unsafe fn titleBaseWritingDirection(&self) -> NSWritingDirection; #[cfg(feature = "NSText")] #[method(setTitleBaseWritingDirection:)] pub unsafe fn setTitleBaseWritingDirection( &self, title_base_writing_direction: NSWritingDirection, ); #[method(preferredTextFieldWidth)] pub unsafe fn preferredTextFieldWidth(&self) -> CGFloat; #[method(setPreferredTextFieldWidth:)] pub unsafe fn setPreferredTextFieldWidth(&self, preferred_text_field_width: CGFloat); } ); extern_methods!( /// Methods declared on superclass `NSCell` #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSFormCell { #[method_id(@__retain_semantics Init init)] pub unsafe fn init(this: Allocated) -> Retained; } ); extern_methods!( /// Methods declared on superclass `NSObject` #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSFormCell { #[method_id(@__retain_semantics New new)] pub unsafe fn new(mtm: MainThreadMarker) -> Retained; } ); extern_methods!( /// NSKeyboardUI #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSFormCell { #[deprecated] #[method(setTitleWithMnemonic:)] pub unsafe fn setTitleWithMnemonic(&self, string_with_ampersand: Option<&NSString>); } ); extern_methods!( /// NSFormCellAttributedStringMethods #[cfg(all(feature = "NSActionCell", feature = "NSCell"))] unsafe impl NSFormCell { #[method_id(@__retain_semantics Other attributedTitle)] pub unsafe fn attributedTitle(&self) -> Retained; #[method(setAttributedTitle:)] pub unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString); } );