15 lines
341 B
Rust
15 lines
341 B
Rust
|
|
use objc2::foundation::NSObject;
|
||
|
|
use objc2::{extern_class, 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;
|
||
|
|
}
|
||
|
|
);
|