177 lines
5.7 KiB
Rust
177 lines
5.7 KiB
Rust
//! 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<Self>,
|
|
string: Option<&NSString>,
|
|
) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Init initWithCoder:)]
|
|
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
|
|
|
|
#[cfg(feature = "NSImage")]
|
|
#[method_id(@__retain_semantics Init initImageCell:)]
|
|
pub unsafe fn initImageCell(
|
|
this: Allocated<Self>,
|
|
image: Option<&NSImage>,
|
|
) -> Retained<Self>;
|
|
|
|
#[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<NSString>;
|
|
|
|
#[method(setTitle:)]
|
|
pub unsafe fn setTitle(&self, title: &NSString);
|
|
|
|
#[cfg(feature = "NSFont")]
|
|
#[method_id(@__retain_semantics Other titleFont)]
|
|
pub unsafe fn titleFont(&self) -> Retained<NSFont>;
|
|
|
|
#[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<Retained<NSString>>;
|
|
|
|
#[method(setPlaceholderString:)]
|
|
pub unsafe fn setPlaceholderString(&self, placeholder_string: Option<&NSString>);
|
|
|
|
#[method_id(@__retain_semantics Other placeholderAttributedString)]
|
|
pub unsafe fn placeholderAttributedString(&self) -> Option<Retained<NSAttributedString>>;
|
|
|
|
#[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<Self>) -> Retained<Self>;
|
|
}
|
|
);
|
|
|
|
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<Self>;
|
|
}
|
|
);
|
|
|
|
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<NSAttributedString>;
|
|
|
|
#[method(setAttributedTitle:)]
|
|
pub unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString);
|
|
}
|
|
);
|