mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
* Upgrade to objc2 v0.4.0 and icrate v0.0.3 * Fix `touchBar` method * Use ClassType::alloc * Use #[method_id(...)] functionality in declare_class!
16 lines
409 B
Rust
16 lines
409 B
Rust
use icrate::Foundation::NSObject;
|
|
use objc2::{extern_class, mutability, ClassType};
|
|
|
|
use super::{NSControl, NSResponder, NSView};
|
|
|
|
extern_class!(
|
|
#[derive(Debug, PartialEq, Eq, Hash)]
|
|
pub(crate) struct NSButton;
|
|
|
|
unsafe impl ClassType for NSButton {
|
|
#[inherits(NSView, NSResponder, NSObject)]
|
|
type Super = NSControl;
|
|
type Mutability = mutability::InteriorMutable;
|
|
}
|
|
);
|