use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSStepperCell;
unsafe impl ClassType for NSStepperCell {
#[inherits(NSCell, NSObject)]
type Super = NSActionCell;
}
);
extern_methods!(
unsafe impl NSStepperCell {
#[method(minValue)]
pub unsafe fn minValue(&self) -> c_double;
#[method(setMinValue:)]
pub unsafe fn setMinValue(&self, minValue: c_double);
#[method(maxValue)]
pub unsafe fn maxValue(&self) -> c_double;
#[method(setMaxValue:)]
pub unsafe fn setMaxValue(&self, maxValue: c_double);
#[method(increment)]
pub unsafe fn increment(&self) -> c_double;
#[method(setIncrement:)]
pub unsafe fn setIncrement(&self, increment: c_double);
#[method(valueWraps)]
pub unsafe fn valueWraps(&self) -> bool;
#[method(setValueWraps:)]
pub unsafe fn setValueWraps(&self, valueWraps: bool);
#[method(autorepeat)]
pub unsafe fn autorepeat(&self) -> bool;
#[method(setAutorepeat:)]
pub unsafe fn setAutorepeat(&self, autorepeat: bool);
}
);
extern_methods!(
unsafe impl NSStepperCell {
#[method_id(@__retain_semantics Init initTextCell:)]
pub unsafe fn initTextCell(
this: Option<Allocated<Self>>,
string: &NSString,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initImageCell:)]
pub unsafe fn initImageCell(
this: Option<Allocated<Self>>,
image: Option<&NSImage>,
) -> Id<Self, Shared>;
}
);