#[repr(C)]pub struct NSToolbar { /* private fields */ }👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit and AppKit_NSToolbar only.Implementations§
Source§impl NSToolbar
impl NSToolbar
pub unsafe fn initWithIdentifier( this: Allocated<Self>, identifier: &NSToolbarIdentifier, ) -> Id<Self>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn init(this: Allocated<Self>) -> Id<Self>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn insertItemWithItemIdentifier_atIndex( &self, item_identifier: &NSToolbarItemIdentifier, index: NSInteger, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn removeItemAtIndex(&self, index: NSInteger)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn delegate( &self, ) -> Option<Id<ProtocolObject<dyn NSToolbarDelegate>>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSToolbarDelegate>>, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn isVisible(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setVisible(&self, visible: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn runCustomizationPalette(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn customizationPaletteIsRunning(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn displayMode(&self) -> NSToolbarDisplayMode
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setDisplayMode(&self, display_mode: NSToolbarDisplayMode)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn selectedItemIdentifier( &self, ) -> Option<Id<NSToolbarItemIdentifier>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setSelectedItemIdentifier( &self, selected_item_identifier: Option<&NSToolbarItemIdentifier>, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn sizeMode(&self) -> NSToolbarSizeMode
👎Deprecated: NSToolbarSizeMode is no longer recommended and will be ignored in the future
pub unsafe fn setSizeMode(&self, size_mode: NSToolbarSizeMode)
👎Deprecated: NSToolbarSizeMode is no longer recommended and will be ignored in the future
pub unsafe fn showsBaselineSeparator(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setShowsBaselineSeparator(&self, shows_baseline_separator: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn allowsUserCustomization(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setAllowsUserCustomization(&self, allows_user_customization: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn identifier(&self) -> Id<NSToolbarIdentifier>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn items(&self) -> Id<NSArray<NSToolbarItem>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit_NSToolbarItem and Foundation_NSArray only.pub unsafe fn visibleItems(&self) -> Option<Id<NSArray<NSToolbarItem>>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit_NSToolbarItem and Foundation_NSArray only.pub unsafe fn centeredItemIdentifiers( &self, ) -> Id<NSSet<NSToolbarItemIdentifier>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
Foundation_NSSet only.pub unsafe fn setCenteredItemIdentifiers( &self, centered_item_identifiers: &NSSet<NSToolbarItemIdentifier>, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
Foundation_NSSet only.pub unsafe fn centeredItemIdentifier( &self, ) -> Option<Id<NSToolbarItemIdentifier>>
👎Deprecated: Use the centeredItemIdentifiers property instead
pub unsafe fn setCenteredItemIdentifier( &self, centered_item_identifier: Option<&NSToolbarItemIdentifier>, )
👎Deprecated: Use the centeredItemIdentifiers property instead
pub unsafe fn autosavesConfiguration(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setAutosavesConfiguration(&self, autosaves_configuration: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setConfigurationFromDictionary( &self, config_dict: &NSDictionary<NSString, AnyObject>, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn configurationDictionary( &self, ) -> Id<NSDictionary<NSString, AnyObject>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn validateVisibleItems(&self)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn allowsExtensionItems(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setAllowsExtensionItems(&self, allows_extension_items: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitSource§impl NSToolbar
Methods declared on superclass NSObject
impl NSToolbar
Methods declared on superclass NSObject
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitSource§impl NSToolbar
NSDeprecated
impl NSToolbar
NSDeprecated
pub unsafe fn fullScreenAccessoryView(&self) -> Option<Id<NSView>>
👎Deprecated: Use NSTitlebarAccessoryViewController with NSWindow instead
Available on crate feature
AppKit_NSView only.pub unsafe fn setFullScreenAccessoryView( &self, full_screen_accessory_view: Option<&NSView>, )
👎Deprecated: Use NSTitlebarAccessoryViewController with NSWindow instead
Available on crate feature
AppKit_NSView only.pub unsafe fn fullScreenAccessoryViewMinHeight(&self) -> CGFloat
👎Deprecated: Use NSTitlebarAccessoryViewController and its fullScreenMinHeight property with NSWindow instead.
pub unsafe fn setFullScreenAccessoryViewMinHeight( &self, full_screen_accessory_view_min_height: CGFloat, )
👎Deprecated: Use NSTitlebarAccessoryViewController and its fullScreenMinHeight property with NSWindow instead.
pub unsafe fn fullScreenAccessoryViewMaxHeight(&self) -> CGFloat
👎Deprecated: Use NSTitlebarAccessoryViewController with NSWindow instead. The max height of a titlebar accessory is implied by its view’s height.
pub unsafe fn setFullScreenAccessoryViewMaxHeight( &self, full_screen_accessory_view_max_height: CGFloat, )
👎Deprecated: Use NSTitlebarAccessoryViewController with NSWindow instead. The max height of a titlebar accessory is implied by its view’s height.
Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Available on crate feature AuthenticationServices only.
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
AuthenticationServices only.Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
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.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.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.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.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 BorrowMut<AnyObject> for NSToolbar
impl BorrowMut<AnyObject> for NSToolbar
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<NSObject> for NSToolbar
impl BorrowMut<NSObject> for NSToolbar
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 NSToolbar
impl ClassType for NSToolbar
Source§const NAME: &'static str = "NSToolbar"
const NAME: &'static str = "NSToolbar"
The name of the Objective-C class that this type represents. Read more
Source§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. 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 NSObjectProtocol for NSToolbar
impl NSObjectProtocol for NSToolbar
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) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
A textual representation of the object to use when debugging. Read more
Source§impl RefEncode for NSToolbar
impl RefEncode for NSToolbar
Source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSToolbar
impl Message for NSToolbar
impl StructuralPartialEq for NSToolbar
Auto Trait Implementations§
impl !Freeze for NSToolbar
impl !RefUnwindSafe for NSToolbar
impl !Send for NSToolbar
impl !Sync for NSToolbar
impl !Unpin for NSToolbar
impl !UnwindSafe for NSToolbar
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