1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12#[repr(transparent)]
15#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
16pub struct NSButtonType(pub NSUInteger);
17impl NSButtonType {
18 #[doc(alias = "NSButtonTypeMomentaryLight")]
19 pub const MomentaryLight: Self = Self(0);
20 #[doc(alias = "NSButtonTypePushOnPushOff")]
21 pub const PushOnPushOff: Self = Self(1);
22 #[doc(alias = "NSButtonTypeToggle")]
23 pub const Toggle: Self = Self(2);
24 #[doc(alias = "NSButtonTypeSwitch")]
25 pub const Switch: Self = Self(3);
26 #[doc(alias = "NSButtonTypeRadio")]
27 pub const Radio: Self = Self(4);
28 #[doc(alias = "NSButtonTypeMomentaryChange")]
29 pub const MomentaryChange: Self = Self(5);
30 #[doc(alias = "NSButtonTypeOnOff")]
31 pub const OnOff: Self = Self(6);
32 #[doc(alias = "NSButtonTypeMomentaryPushIn")]
33 pub const MomentaryPushIn: Self = Self(7);
34 #[doc(alias = "NSButtonTypeAccelerator")]
35 pub const Accelerator: Self = Self(8);
36 #[doc(alias = "NSButtonTypeMultiLevelAccelerator")]
37 pub const MultiLevelAccelerator: Self = Self(9);
38}
39
40unsafe impl Encode for NSButtonType {
41 const ENCODING: Encoding = NSUInteger::ENCODING;
42}
43
44unsafe impl RefEncode for NSButtonType {
45 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
46}
47
48#[repr(transparent)]
51#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
52pub struct NSBezelStyle(pub NSUInteger);
53impl NSBezelStyle {
54 #[doc(alias = "NSBezelStyleAutomatic")]
56 pub const Automatic: Self = Self(0);
57 #[doc(alias = "NSBezelStylePush")]
59 pub const Push: Self = Self(1);
60 #[doc(alias = "NSBezelStyleFlexiblePush")]
62 pub const FlexiblePush: Self = Self(2);
63 #[doc(alias = "NSBezelStyleDisclosure")]
65 pub const Disclosure: Self = Self(5);
66 #[doc(alias = "NSBezelStyleCircular")]
68 pub const Circular: Self = Self(7);
69 #[doc(alias = "NSBezelStyleHelpButton")]
71 pub const HelpButton: Self = Self(9);
72 #[doc(alias = "NSBezelStyleSmallSquare")]
74 pub const SmallSquare: Self = Self(10);
75 #[doc(alias = "NSBezelStyleToolbar")]
77 pub const Toolbar: Self = Self(11);
78 #[doc(alias = "NSBezelStyleAccessoryBarAction")]
80 pub const AccessoryBarAction: Self = Self(12);
81 #[doc(alias = "NSBezelStyleAccessoryBar")]
83 pub const AccessoryBar: Self = Self(13);
84 #[doc(alias = "NSBezelStylePushDisclosure")]
86 pub const PushDisclosure: Self = Self(14);
87 #[doc(alias = "NSBezelStyleBadge")]
89 pub const Badge: Self = Self(15);
90 #[doc(alias = "NSBezelStyleShadowlessSquare")]
92 #[deprecated]
93 pub const ShadowlessSquare: Self = Self(6);
94 #[doc(alias = "NSBezelStyleTexturedSquare")]
96 #[deprecated]
97 pub const TexturedSquare: Self = Self(8);
98 #[doc(alias = "NSBezelStyleRounded")]
100 #[deprecated]
101 pub const Rounded: Self = Self(NSBezelStyle::Push.0);
102 #[doc(alias = "NSBezelStyleRegularSquare")]
104 #[deprecated]
105 pub const RegularSquare: Self = Self(NSBezelStyle::FlexiblePush.0);
106 #[doc(alias = "NSBezelStyleTexturedRounded")]
108 #[deprecated]
109 pub const TexturedRounded: Self = Self(NSBezelStyle::Toolbar.0);
110 #[doc(alias = "NSBezelStyleRoundRect")]
112 #[deprecated]
113 pub const RoundRect: Self = Self(NSBezelStyle::AccessoryBarAction.0);
114 #[doc(alias = "NSBezelStyleRecessed")]
116 #[deprecated]
117 pub const Recessed: Self = Self(NSBezelStyle::AccessoryBar.0);
118 #[doc(alias = "NSBezelStyleRoundedDisclosure")]
120 #[deprecated]
121 pub const RoundedDisclosure: Self = Self(NSBezelStyle::PushDisclosure.0);
122 #[doc(alias = "NSBezelStyleInline")]
124 #[deprecated]
125 pub const Inline: Self = Self(NSBezelStyle::Badge.0);
126}
127
128unsafe impl Encode for NSBezelStyle {
129 const ENCODING: Encoding = NSUInteger::ENCODING;
130}
131
132unsafe impl RefEncode for NSBezelStyle {
133 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
134}
135
136extern_class!(
137 #[unsafe(super(NSActionCell, NSCell, NSObject))]
139 #[derive(Debug, PartialEq, Eq, Hash)]
140 #[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
141 pub struct NSButtonCell;
142);
143
144#[cfg(all(
145 feature = "NSAccessibilityProtocols",
146 feature = "NSActionCell",
147 feature = "NSCell"
148))]
149extern_conformance!(
150 unsafe impl NSAccessibility for NSButtonCell {}
151);
152
153#[cfg(all(
154 feature = "NSAccessibilityProtocols",
155 feature = "NSActionCell",
156 feature = "NSCell"
157))]
158extern_conformance!(
159 unsafe impl NSAccessibilityElementProtocol for NSButtonCell {}
160);
161
162#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
163extern_conformance!(
164 unsafe impl NSCoding for NSButtonCell {}
165);
166
167#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
168extern_conformance!(
169 unsafe impl NSCopying for NSButtonCell {}
170);
171
172#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
173unsafe impl CopyingHelper for NSButtonCell {
174 type Result = Self;
175}
176
177#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
178extern_conformance!(
179 unsafe impl NSObjectProtocol for NSButtonCell {}
180);
181
182#[cfg(all(
183 feature = "NSActionCell",
184 feature = "NSCell",
185 feature = "NSUserInterfaceItemIdentification"
186))]
187extern_conformance!(
188 unsafe impl NSUserInterfaceItemIdentification for NSButtonCell {}
189);
190
191#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
192impl NSButtonCell {
193 extern_methods!(
194 #[unsafe(method(initTextCell:))]
195 #[unsafe(method_family = init)]
196 pub unsafe fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
197
198 #[cfg(feature = "NSImage")]
199 #[unsafe(method(initImageCell:))]
200 #[unsafe(method_family = init)]
201 pub unsafe fn initImageCell(
202 this: Allocated<Self>,
203 image: Option<&NSImage>,
204 ) -> Retained<Self>;
205
206 #[unsafe(method(initWithCoder:))]
207 #[unsafe(method_family = init)]
208 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
209
210 #[unsafe(method(bezelStyle))]
211 #[unsafe(method_family = none)]
212 pub unsafe fn bezelStyle(&self) -> NSBezelStyle;
213
214 #[unsafe(method(setBezelStyle:))]
216 #[unsafe(method_family = none)]
217 pub unsafe fn setBezelStyle(&self, bezel_style: NSBezelStyle);
218
219 #[unsafe(method(setButtonType:))]
220 #[unsafe(method_family = none)]
221 pub unsafe fn setButtonType(&self, r#type: NSButtonType);
222
223 #[unsafe(method(highlightsBy))]
224 #[unsafe(method_family = none)]
225 pub unsafe fn highlightsBy(&self) -> NSCellStyleMask;
226
227 #[unsafe(method(setHighlightsBy:))]
229 #[unsafe(method_family = none)]
230 pub unsafe fn setHighlightsBy(&self, highlights_by: NSCellStyleMask);
231
232 #[unsafe(method(showsStateBy))]
233 #[unsafe(method_family = none)]
234 pub unsafe fn showsStateBy(&self) -> NSCellStyleMask;
235
236 #[unsafe(method(setShowsStateBy:))]
238 #[unsafe(method_family = none)]
239 pub unsafe fn setShowsStateBy(&self, shows_state_by: NSCellStyleMask);
240
241 #[unsafe(method(title))]
242 #[unsafe(method_family = none)]
243 pub unsafe fn title(&self) -> Retained<NSString>;
244
245 #[unsafe(method(setTitle:))]
247 #[unsafe(method_family = none)]
248 pub unsafe fn setTitle(&self, title: Option<&NSString>);
249
250 #[unsafe(method(attributedTitle))]
251 #[unsafe(method_family = none)]
252 pub unsafe fn attributedTitle(&self) -> Retained<NSAttributedString>;
253
254 #[unsafe(method(setAttributedTitle:))]
256 #[unsafe(method_family = none)]
257 pub unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString);
258
259 #[unsafe(method(alternateTitle))]
260 #[unsafe(method_family = none)]
261 pub unsafe fn alternateTitle(&self) -> Retained<NSString>;
262
263 #[unsafe(method(setAlternateTitle:))]
265 #[unsafe(method_family = none)]
266 pub unsafe fn setAlternateTitle(&self, alternate_title: &NSString);
267
268 #[unsafe(method(attributedAlternateTitle))]
269 #[unsafe(method_family = none)]
270 pub unsafe fn attributedAlternateTitle(&self) -> Retained<NSAttributedString>;
271
272 #[unsafe(method(setAttributedAlternateTitle:))]
274 #[unsafe(method_family = none)]
275 pub unsafe fn setAttributedAlternateTitle(
276 &self,
277 attributed_alternate_title: &NSAttributedString,
278 );
279
280 #[cfg(feature = "NSImage")]
281 #[unsafe(method(alternateImage))]
282 #[unsafe(method_family = none)]
283 pub unsafe fn alternateImage(&self) -> Option<Retained<NSImage>>;
284
285 #[cfg(feature = "NSImage")]
286 #[unsafe(method(setAlternateImage:))]
288 #[unsafe(method_family = none)]
289 pub unsafe fn setAlternateImage(&self, alternate_image: Option<&NSImage>);
290
291 #[unsafe(method(imagePosition))]
292 #[unsafe(method_family = none)]
293 pub unsafe fn imagePosition(&self) -> NSCellImagePosition;
294
295 #[unsafe(method(setImagePosition:))]
297 #[unsafe(method_family = none)]
298 pub unsafe fn setImagePosition(&self, image_position: NSCellImagePosition);
299
300 #[unsafe(method(imageScaling))]
301 #[unsafe(method_family = none)]
302 pub unsafe fn imageScaling(&self) -> NSImageScaling;
303
304 #[unsafe(method(setImageScaling:))]
306 #[unsafe(method_family = none)]
307 pub unsafe fn setImageScaling(&self, image_scaling: NSImageScaling);
308
309 #[unsafe(method(keyEquivalent))]
310 #[unsafe(method_family = none)]
311 pub unsafe fn keyEquivalent(&self) -> Retained<NSString>;
312
313 #[unsafe(method(setKeyEquivalent:))]
315 #[unsafe(method_family = none)]
316 pub unsafe fn setKeyEquivalent(&self, key_equivalent: &NSString);
317
318 #[cfg(feature = "NSEvent")]
319 #[unsafe(method(keyEquivalentModifierMask))]
320 #[unsafe(method_family = none)]
321 pub unsafe fn keyEquivalentModifierMask(&self) -> NSEventModifierFlags;
322
323 #[cfg(feature = "NSEvent")]
324 #[unsafe(method(setKeyEquivalentModifierMask:))]
326 #[unsafe(method_family = none)]
327 pub unsafe fn setKeyEquivalentModifierMask(
328 &self,
329 key_equivalent_modifier_mask: NSEventModifierFlags,
330 );
331
332 #[unsafe(method(isTransparent))]
333 #[unsafe(method_family = none)]
334 pub unsafe fn isTransparent(&self) -> bool;
335
336 #[unsafe(method(setTransparent:))]
338 #[unsafe(method_family = none)]
339 pub unsafe fn setTransparent(&self, transparent: bool);
340
341 #[unsafe(method(isOpaque))]
342 #[unsafe(method_family = none)]
343 pub unsafe fn isOpaque(&self) -> bool;
344
345 #[unsafe(method(imageDimsWhenDisabled))]
346 #[unsafe(method_family = none)]
347 pub unsafe fn imageDimsWhenDisabled(&self) -> bool;
348
349 #[unsafe(method(setImageDimsWhenDisabled:))]
351 #[unsafe(method_family = none)]
352 pub unsafe fn setImageDimsWhenDisabled(&self, image_dims_when_disabled: bool);
353
354 #[unsafe(method(showsBorderOnlyWhileMouseInside))]
355 #[unsafe(method_family = none)]
356 pub unsafe fn showsBorderOnlyWhileMouseInside(&self) -> bool;
357
358 #[unsafe(method(setShowsBorderOnlyWhileMouseInside:))]
360 #[unsafe(method_family = none)]
361 pub unsafe fn setShowsBorderOnlyWhileMouseInside(
362 &self,
363 shows_border_only_while_mouse_inside: bool,
364 );
365
366 #[cfg(feature = "NSSound")]
367 #[unsafe(method(sound))]
368 #[unsafe(method_family = none)]
369 pub unsafe fn sound(&self) -> Option<Retained<NSSound>>;
370
371 #[cfg(feature = "NSSound")]
372 #[unsafe(method(setSound:))]
374 #[unsafe(method_family = none)]
375 pub unsafe fn setSound(&self, sound: Option<&NSSound>);
376
377 #[cfg(feature = "NSColor")]
378 #[unsafe(method(backgroundColor))]
379 #[unsafe(method_family = none)]
380 pub unsafe fn backgroundColor(&self) -> Option<Retained<NSColor>>;
381
382 #[cfg(feature = "NSColor")]
383 #[unsafe(method(setBackgroundColor:))]
385 #[unsafe(method_family = none)]
386 pub unsafe fn setBackgroundColor(&self, background_color: Option<&NSColor>);
387
388 #[unsafe(method(setPeriodicDelay:interval:))]
389 #[unsafe(method_family = none)]
390 pub unsafe fn setPeriodicDelay_interval(&self, delay: c_float, interval: c_float);
391
392 #[unsafe(method(getPeriodicDelay:interval:))]
393 #[unsafe(method_family = none)]
394 pub unsafe fn getPeriodicDelay_interval(
395 &self,
396 delay: NonNull<c_float>,
397 interval: NonNull<c_float>,
398 );
399
400 #[unsafe(method(performClick:))]
401 #[unsafe(method_family = none)]
402 pub unsafe fn performClick(&self, sender: Option<&AnyObject>);
403
404 #[cfg(feature = "NSEvent")]
405 #[unsafe(method(mouseEntered:))]
406 #[unsafe(method_family = none)]
407 pub unsafe fn mouseEntered(&self, event: &NSEvent);
408
409 #[cfg(feature = "NSEvent")]
410 #[unsafe(method(mouseExited:))]
411 #[unsafe(method_family = none)]
412 pub unsafe fn mouseExited(&self, event: &NSEvent);
413
414 #[cfg(all(feature = "NSResponder", feature = "NSView"))]
415 #[unsafe(method(drawBezelWithFrame:inView:))]
416 #[unsafe(method_family = none)]
417 pub unsafe fn drawBezelWithFrame_inView(&self, frame: NSRect, control_view: &NSView);
418
419 #[cfg(all(feature = "NSImage", feature = "NSResponder", feature = "NSView"))]
420 #[unsafe(method(drawImage:withFrame:inView:))]
421 #[unsafe(method_family = none)]
422 pub unsafe fn drawImage_withFrame_inView(
423 &self,
424 image: &NSImage,
425 frame: NSRect,
426 control_view: &NSView,
427 );
428
429 #[cfg(all(feature = "NSResponder", feature = "NSView"))]
430 #[unsafe(method(drawTitle:withFrame:inView:))]
431 #[unsafe(method_family = none)]
432 pub unsafe fn drawTitle_withFrame_inView(
433 &self,
434 title: &NSAttributedString,
435 frame: NSRect,
436 control_view: &NSView,
437 ) -> NSRect;
438 );
439}
440
441#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
443impl NSButtonCell {
444 extern_methods!(
445 #[unsafe(method(init))]
446 #[unsafe(method_family = init)]
447 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
448 );
449}
450
451#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
453impl NSButtonCell {
454 extern_methods!(
455 #[unsafe(method(new))]
456 #[unsafe(method_family = new)]
457 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
458 );
459}
460
461#[deprecated]
464#[repr(transparent)]
465#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
466pub struct NSGradientType(pub NSUInteger);
467impl NSGradientType {
468 #[doc(alias = "NSGradientNone")]
469 pub const None: Self = Self(0);
470 #[doc(alias = "NSGradientConcaveWeak")]
471 pub const ConcaveWeak: Self = Self(1);
472 #[doc(alias = "NSGradientConcaveStrong")]
473 pub const ConcaveStrong: Self = Self(2);
474 #[doc(alias = "NSGradientConvexWeak")]
475 pub const ConvexWeak: Self = Self(3);
476 #[doc(alias = "NSGradientConvexStrong")]
477 pub const ConvexStrong: Self = Self(4);
478}
479
480unsafe impl Encode for NSGradientType {
481 const ENCODING: Encoding = NSUInteger::ENCODING;
482}
483
484unsafe impl RefEncode for NSGradientType {
485 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
486}
487
488pub static NSMomentaryLightButton: NSButtonType = NSButtonType(NSButtonType::MomentaryLight.0);
490
491pub static NSPushOnPushOffButton: NSButtonType = NSButtonType(NSButtonType::PushOnPushOff.0);
493
494pub static NSToggleButton: NSButtonType = NSButtonType(NSButtonType::Toggle.0);
496
497pub static NSSwitchButton: NSButtonType = NSButtonType(NSButtonType::Switch.0);
499
500pub static NSRadioButton: NSButtonType = NSButtonType(NSButtonType::Radio.0);
502
503pub static NSMomentaryChangeButton: NSButtonType = NSButtonType(NSButtonType::MomentaryChange.0);
505
506pub static NSOnOffButton: NSButtonType = NSButtonType(NSButtonType::OnOff.0);
508
509pub static NSMomentaryPushInButton: NSButtonType = NSButtonType(NSButtonType::MomentaryPushIn.0);
511
512pub static NSAcceleratorButton: NSButtonType = NSButtonType(NSButtonType::Accelerator.0);
514
515pub static NSMultiLevelAcceleratorButton: NSButtonType =
517 NSButtonType(NSButtonType::MultiLevelAccelerator.0);
518
519pub static NSMomentaryPushButton: NSButtonType = NSButtonType(NSButtonType::MomentaryLight.0);
521
522pub static NSMomentaryLight: NSButtonType = NSButtonType(NSButtonType::MomentaryPushIn.0);
524
525pub static NSRoundedBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::Push.0);
527
528pub static NSRegularSquareBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::FlexiblePush.0);
530
531pub static NSDisclosureBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::Disclosure.0);
533
534pub static NSShadowlessSquareBezelStyle: NSBezelStyle =
536 NSBezelStyle(NSBezelStyle::ShadowlessSquare.0);
537
538pub static NSCircularBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::Circular.0);
540
541pub static NSTexturedSquareBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::TexturedSquare.0);
543
544pub static NSHelpButtonBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::HelpButton.0);
546
547pub static NSSmallSquareBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::SmallSquare.0);
549
550pub static NSTexturedRoundedBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::Toolbar.0);
552
553pub static NSRoundRectBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::AccessoryBarAction.0);
555
556pub static NSRecessedBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::AccessoryBar.0);
558
559pub static NSRoundedDisclosureBezelStyle: NSBezelStyle =
561 NSBezelStyle(NSBezelStyle::PushDisclosure.0);
562
563pub static NSInlineBezelStyle: NSBezelStyle = NSBezelStyle(NSBezelStyle::Badge.0);
565
566pub static NSSmallIconButtonBezelStyle: NSBezelStyle = NSBezelStyle(2);
568
569pub static NSThickSquareBezelStyle: NSBezelStyle = NSBezelStyle(3);
571
572pub static NSThickerSquareBezelStyle: NSBezelStyle = NSBezelStyle(4);
574
575#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
577impl NSButtonCell {
578 extern_methods!(
579 #[deprecated = "The gradientType property is unused, and setting it has no effect."]
580 #[unsafe(method(gradientType))]
581 #[unsafe(method_family = none)]
582 pub unsafe fn gradientType(&self) -> NSGradientType;
583
584 #[deprecated = "The gradientType property is unused, and setting it has no effect."]
586 #[unsafe(method(setGradientType:))]
587 #[unsafe(method_family = none)]
588 pub unsafe fn setGradientType(&self, gradient_type: NSGradientType);
589
590 #[deprecated = "Mnemonics are not used on macOS. Set the title property directly instead."]
591 #[unsafe(method(setTitleWithMnemonic:))]
592 #[unsafe(method_family = none)]
593 pub unsafe fn setTitleWithMnemonic(&self, string_with_ampersand: Option<&NSString>);
594
595 #[deprecated = "Mnemonics are not used on macOS. Set the alternateTitle property directly instead."]
596 #[unsafe(method(setAlternateTitleWithMnemonic:))]
597 #[unsafe(method_family = none)]
598 pub unsafe fn setAlternateTitleWithMnemonic(
599 &self,
600 string_with_ampersand: Option<&NSString>,
601 );
602
603 #[deprecated = "Mnemonics are not used on macOS. Calling this method has no effect."]
604 #[unsafe(method(setAlternateMnemonicLocation:))]
605 #[unsafe(method_family = none)]
606 pub unsafe fn setAlternateMnemonicLocation(&self, location: NSUInteger);
607
608 #[deprecated = "Mnemonics are not used on macOS. This property always returns NSNotFound."]
609 #[unsafe(method(alternateMnemonicLocation))]
610 #[unsafe(method_family = none)]
611 pub unsafe fn alternateMnemonicLocation(&self) -> NSUInteger;
612
613 #[deprecated = "Mnemonics are not used on macOS. This property always returns an empty string."]
614 #[unsafe(method(alternateMnemonic))]
615 #[unsafe(method_family = none)]
616 pub unsafe fn alternateMnemonic(&self) -> Option<Retained<NSString>>;
617
618 #[cfg(feature = "NSFont")]
619 #[deprecated = "The keyEquivalentFont property is no longer used. It always returns the NSButtonCell's font, and setting it has no effect."]
620 #[unsafe(method(keyEquivalentFont))]
621 #[unsafe(method_family = none)]
622 pub unsafe fn keyEquivalentFont(&self) -> Option<Retained<NSFont>>;
623
624 #[cfg(feature = "NSFont")]
625 #[deprecated = "The keyEquivalentFont property is no longer used. It always returns the NSButtonCell's font, and setting it has no effect."]
627 #[unsafe(method(setKeyEquivalentFont:))]
628 #[unsafe(method_family = none)]
629 pub unsafe fn setKeyEquivalentFont(&self, key_equivalent_font: Option<&NSFont>);
630
631 #[cfg(feature = "objc2-core-foundation")]
632 #[deprecated = "The keyEquivalentFont property is no longer used. Setting it has no effect."]
633 #[unsafe(method(setKeyEquivalentFont:size:))]
634 #[unsafe(method_family = none)]
635 pub unsafe fn setKeyEquivalentFont_size(&self, font_name: &NSString, font_size: CGFloat);
636 );
637}