use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSStatusBarButton;
unsafe impl ClassType for NSStatusBarButton {
#[inherits(NSControl, NSView, NSResponder, NSObject)]
type Super = NSButton;
}
);
extern_methods!(
unsafe impl NSStatusBarButton {
#[method(appearsDisabled)]
pub unsafe fn appearsDisabled(&self) -> bool;
#[method(setAppearsDisabled:)]
pub unsafe fn setAppearsDisabled(&self, appearsDisabled: bool);
}
);
extern_methods!(
unsafe impl NSStatusBarButton {
#[method_id(@__retain_semantics Other buttonWithTitle:image:target:action:)]
pub unsafe fn buttonWithTitle_image_target_action(
title: &NSString,
image: &NSImage,
target: Option<&Object>,
action: Option<Sel>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other buttonWithTitle:target:action:)]
pub unsafe fn buttonWithTitle_target_action(
title: &NSString,
target: Option<&Object>,
action: Option<Sel>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other buttonWithImage:target:action:)]
pub unsafe fn buttonWithImage_target_action(
image: &NSImage,
target: Option<&Object>,
action: Option<Sel>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other checkboxWithTitle:target:action:)]
pub unsafe fn checkboxWithTitle_target_action(
title: &NSString,
target: Option<&Object>,
action: Option<Sel>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other radioButtonWithTitle:target:action:)]
pub unsafe fn radioButtonWithTitle_target_action(
title: &NSString,
target: Option<&Object>,
action: Option<Sel>,
) -> Id<Self, Shared>;
}
);
extern_methods!(
unsafe impl NSStatusBarButton {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(
this: Option<Allocated<Self>>,
frameRect: NSRect,
) -> Id<Self, Shared>;
}
);